Package com.google.cloud.compute.v1
Class AttachedDisk
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.compute.v1.AttachedDisk
-
- All Implemented Interfaces:
AttachedDiskOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class AttachedDisk extends com.google.protobuf.GeneratedMessageV3 implements AttachedDiskOrBuilder
An instance-attached disk resource.
Protobuf typegoogle.cloud.compute.v1.AttachedDisk- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAttachedDisk.Architecture[Output Only] The architecture of the attached disk.static classAttachedDisk.BuilderAn instance-attached disk resource.static classAttachedDisk.InterfaceSpecifies the disk interface to use for attaching this disk, which is either SCSI or NVME.static classAttachedDisk.ModeThe mode in which to attach this disk, either READ_WRITE or READ_ONLY.static classAttachedDisk.SavedStateFor 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.static classAttachedDisk.TypeSpecifies the type of the disk, either SCRATCH or PERSISTENT.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intARCHITECTURE_FIELD_NUMBERstatic intAUTO_DELETE_FIELD_NUMBERstatic intBOOT_FIELD_NUMBERstatic intDEVICE_NAME_FIELD_NUMBERstatic intDISK_ENCRYPTION_KEY_FIELD_NUMBERstatic intDISK_SIZE_GB_FIELD_NUMBERstatic intFORCE_ATTACH_FIELD_NUMBERstatic intGUEST_OS_FEATURES_FIELD_NUMBERstatic intINDEX_FIELD_NUMBERstatic intINITIALIZE_PARAMS_FIELD_NUMBERstatic intINTERFACE_FIELD_NUMBERstatic intKIND_FIELD_NUMBERstatic intLICENSES_FIELD_NUMBERstatic intMODE_FIELD_NUMBERstatic intSAVED_STATE_FIELD_NUMBERstatic intSHIELDED_INSTANCE_INITIAL_STATE_FIELD_NUMBERstatic intSOURCE_FIELD_NUMBERstatic intTYPE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetArchitecture()[Output Only] The architecture of the attached disk.com.google.protobuf.ByteStringgetArchitectureBytes()[Output Only] The architecture of the attached disk.booleangetAutoDelete()Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).booleangetBoot()Indicates that this is a boot disk.static AttachedDiskgetDefaultInstance()AttachedDiskgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetDeviceName()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.ByteStringgetDeviceNameBytes()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.CustomerEncryptionKeygetDiskEncryptionKey()Encrypts or decrypts a disk using a customer-supplied encryption key.CustomerEncryptionKeyOrBuildergetDiskEncryptionKeyOrBuilder()Encrypts or decrypts a disk using a customer-supplied encryption key.longgetDiskSizeGb()The size of the disk in GB.booleangetForceAttach()[Input Only] Whether to force attach the regional disk even if it's currently attached to another instance.GuestOsFeaturegetGuestOsFeatures(int index)A list of features to enable on the guest operating system.intgetGuestOsFeaturesCount()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.GuestOsFeatureOrBuildergetGuestOsFeaturesOrBuilder(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.intgetIndex()[Output Only] A zero-based index to this disk, where 0 is reserved for the boot disk.AttachedDiskInitializeParamsgetInitializeParams()[Input Only] Specifies the parameters for a new disk that will be created alongside the new instance.AttachedDiskInitializeParamsOrBuildergetInitializeParamsOrBuilder()[Input Only] Specifies the parameters for a new disk that will be created alongside the new instance.StringgetInterface()Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.com.google.protobuf.ByteStringgetInterfaceBytes()Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.StringgetKind()[Output Only] Type of the resource.com.google.protobuf.ByteStringgetKindBytes()[Output Only] Type of the resource.StringgetLicenses(int index)[Output Only] Any valid publicly visible licenses.com.google.protobuf.ByteStringgetLicensesBytes(int index)[Output Only] Any valid publicly visible licenses.intgetLicensesCount()[Output Only] Any valid publicly visible licenses.com.google.protobuf.ProtocolStringListgetLicensesList()[Output Only] Any valid publicly visible licenses.StringgetMode()The mode in which to attach this disk, either READ_WRITE or READ_ONLY.com.google.protobuf.ByteStringgetModeBytes()The mode in which to attach this disk, either READ_WRITE or READ_ONLY.com.google.protobuf.Parser<AttachedDisk>getParserForType()StringgetSavedState()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.ByteStringgetSavedStateBytes()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.intgetSerializedSize()InitialStateConfiggetShieldedInstanceInitialState()[Output Only] shielded vm initial state stored on diskInitialStateConfigOrBuildergetShieldedInstanceInitialStateOrBuilder()[Output Only] shielded vm initial state stored on diskStringgetSource()Specifies a valid partial or full URL to an existing Persistent Disk resource.com.google.protobuf.ByteStringgetSourceBytes()Specifies a valid partial or full URL to an existing Persistent Disk resource.StringgetType()Specifies the type of the disk, either SCRATCH or PERSISTENT.com.google.protobuf.ByteStringgetTypeBytes()Specifies the type of the disk, either SCRATCH or PERSISTENT.booleanhasArchitecture()[Output Only] The architecture of the attached disk.booleanhasAutoDelete()Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).booleanhasBoot()Indicates that this is a boot disk.booleanhasDeviceName()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.booleanhasDiskEncryptionKey()Encrypts or decrypts a disk using a customer-supplied encryption key.booleanhasDiskSizeGb()The size of the disk in GB.booleanhasForceAttach()[Input Only] Whether to force attach the regional disk even if it's currently attached to another instance.inthashCode()booleanhasIndex()[Output Only] A zero-based index to this disk, where 0 is reserved for the boot disk.booleanhasInitializeParams()[Input Only] Specifies the parameters for a new disk that will be created alongside the new instance.booleanhasInterface()Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.booleanhasKind()[Output Only] Type of the resource.booleanhasMode()The mode in which to attach this disk, either READ_WRITE or READ_ONLY.booleanhasSavedState()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.booleanhasShieldedInstanceInitialState()[Output Only] shielded vm initial state stored on diskbooleanhasSource()Specifies a valid partial or full URL to an existing Persistent Disk resource.booleanhasType()Specifies the type of the disk, either SCRATCH or PERSISTENT.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static AttachedDisk.BuildernewBuilder()static AttachedDisk.BuildernewBuilder(AttachedDisk prototype)AttachedDisk.BuildernewBuilderForType()protected AttachedDisk.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static AttachedDiskparseDelimitedFrom(InputStream input)static AttachedDiskparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AttachedDiskparseFrom(byte[] data)static AttachedDiskparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AttachedDiskparseFrom(com.google.protobuf.ByteString data)static AttachedDiskparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AttachedDiskparseFrom(com.google.protobuf.CodedInputStream input)static AttachedDiskparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AttachedDiskparseFrom(InputStream input)static AttachedDiskparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AttachedDiskparseFrom(ByteBuffer data)static AttachedDiskparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<AttachedDisk>parser()AttachedDisk.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
ARCHITECTURE_FIELD_NUMBER
public static final int ARCHITECTURE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
AUTO_DELETE_FIELD_NUMBER
public static final int AUTO_DELETE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BOOT_FIELD_NUMBER
public static final int BOOT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DEVICE_NAME_FIELD_NUMBER
public static final int DEVICE_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISK_ENCRYPTION_KEY_FIELD_NUMBER
public static final int DISK_ENCRYPTION_KEY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISK_SIZE_GB_FIELD_NUMBER
public static final int DISK_SIZE_GB_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FORCE_ATTACH_FIELD_NUMBER
public static final int FORCE_ATTACH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GUEST_OS_FEATURES_FIELD_NUMBER
public static final int GUEST_OS_FEATURES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INDEX_FIELD_NUMBER
public static final int INDEX_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INITIALIZE_PARAMS_FIELD_NUMBER
public static final int INITIALIZE_PARAMS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INTERFACE_FIELD_NUMBER
public static final int INTERFACE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
KIND_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LICENSES_FIELD_NUMBER
public static final int LICENSES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MODE_FIELD_NUMBER
public static final int MODE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SAVED_STATE_FIELD_NUMBER
public static final int SAVED_STATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SHIELDED_INSTANCE_INITIAL_STATE_FIELD_NUMBER
public static final int SHIELDED_INSTANCE_INITIAL_STATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SOURCE_FIELD_NUMBER
public static final int SOURCE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
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:
hasArchitecturein 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:
getArchitecturein 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:
getArchitectureBytesin interfaceAttachedDiskOrBuilder- Returns:
- The bytes for architecture.
-
hasAutoDelete
public boolean hasAutoDelete()
Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
optional bool auto_delete = 464761403;- Specified by:
hasAutoDeletein interfaceAttachedDiskOrBuilder- Returns:
- Whether the autoDelete field is set.
-
getAutoDelete
public boolean getAutoDelete()
Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
optional bool auto_delete = 464761403;- Specified by:
getAutoDeletein interfaceAttachedDiskOrBuilder- Returns:
- The autoDelete.
-
hasBoot
public boolean hasBoot()
Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
optional bool boot = 3029746;- Specified by:
hasBootin interfaceAttachedDiskOrBuilder- Returns:
- Whether the boot field is set.
-
getBoot
public boolean getBoot()
Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
optional bool boot = 3029746;- Specified by:
getBootin interfaceAttachedDiskOrBuilder- Returns:
- The boot.
-
hasDeviceName
public boolean hasDeviceName()
Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks.
optional string device_name = 67541716;- Specified by:
hasDeviceNamein interfaceAttachedDiskOrBuilder- Returns:
- Whether the deviceName field is set.
-
getDeviceName
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:
getDeviceNamein interfaceAttachedDiskOrBuilder- Returns:
- The deviceName.
-
getDeviceNameBytes
public com.google.protobuf.ByteString getDeviceNameBytes()
Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks.
optional string device_name = 67541716;- Specified by:
getDeviceNameBytesin interfaceAttachedDiskOrBuilder- Returns:
- The bytes for deviceName.
-
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:
hasDiskEncryptionKeyin 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:
getDiskEncryptionKeyin interfaceAttachedDiskOrBuilder- Returns:
- The diskEncryptionKey.
-
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:
getDiskEncryptionKeyOrBuilderin interfaceAttachedDiskOrBuilder
-
hasDiskSizeGb
public boolean hasDiskSizeGb()
The size of the disk in GB.
optional int64 disk_size_gb = 316263735;- Specified by:
hasDiskSizeGbin interfaceAttachedDiskOrBuilder- Returns:
- Whether the diskSizeGb field is set.
-
getDiskSizeGb
public long getDiskSizeGb()
The size of the disk in GB.
optional int64 disk_size_gb = 316263735;- Specified by:
getDiskSizeGbin interfaceAttachedDiskOrBuilder- Returns:
- The diskSizeGb.
-
hasForceAttach
public boolean hasForceAttach()
[Input Only] Whether to force attach the regional disk even if it's currently attached to another instance. If you try to force attach a zonal disk to an instance, you will receive an error.
optional bool force_attach = 142758425;- Specified by:
hasForceAttachin interfaceAttachedDiskOrBuilder- Returns:
- Whether the forceAttach field is set.
-
getForceAttach
public boolean getForceAttach()
[Input Only] Whether to force attach the regional disk even if it's currently attached to another instance. If you try to force attach a zonal disk to an instance, you will receive an error.
optional bool force_attach = 142758425;- Specified by:
getForceAttachin interfaceAttachedDiskOrBuilder- Returns:
- The forceAttach.
-
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:
getGuestOsFeaturesListin 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:
getGuestOsFeaturesOrBuilderListin interfaceAttachedDiskOrBuilder
-
getGuestOsFeaturesCount
public int getGuestOsFeaturesCount()
A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;- Specified by:
getGuestOsFeaturesCountin interfaceAttachedDiskOrBuilder
-
getGuestOsFeatures
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:
getGuestOsFeaturesin interfaceAttachedDiskOrBuilder
-
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:
getGuestOsFeaturesOrBuilderin interfaceAttachedDiskOrBuilder
-
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:
hasIndexin 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:
getIndexin interfaceAttachedDiskOrBuilder- Returns:
- The index.
-
hasInitializeParams
public boolean hasInitializeParams()
[Input Only] Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. This property is mutually exclusive with the source property; you can only define one or the other, but not both.
optional .google.cloud.compute.v1.AttachedDiskInitializeParams initialize_params = 17697045;- Specified by:
hasInitializeParamsin interfaceAttachedDiskOrBuilder- Returns:
- Whether the initializeParams field is set.
-
getInitializeParams
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:
getInitializeParamsin interfaceAttachedDiskOrBuilder- Returns:
- The initializeParams.
-
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:
getInitializeParamsOrBuilderin interfaceAttachedDiskOrBuilder
-
hasInterface
public boolean hasInterface()
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. For most machine types, the default is SCSI. Local SSDs can use either NVME or SCSI. In certain configurations, persistent disks can use NVMe. For more information, see About persistent disks. Check the Interface enum for the list of possible values.
optional string interface = 502623545;- Specified by:
hasInterfacein interfaceAttachedDiskOrBuilder- Returns:
- Whether the interface field is set.
-
getInterface
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:
getInterfacein interfaceAttachedDiskOrBuilder- Returns:
- The interface.
-
getInterfaceBytes
public com.google.protobuf.ByteString getInterfaceBytes()
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. For most machine types, the default is SCSI. Local SSDs can use either NVME or SCSI. In certain configurations, persistent disks can use NVMe. For more information, see About persistent disks. Check the Interface enum for the list of possible values.
optional string interface = 502623545;- Specified by:
getInterfaceBytesin interfaceAttachedDiskOrBuilder- Returns:
- The bytes for interface.
-
hasKind
public boolean hasKind()
[Output Only] Type of the resource. Always compute#attachedDisk for attached disks.
optional string kind = 3292052;- Specified by:
hasKindin 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:
getKindin 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:
getKindBytesin interfaceAttachedDiskOrBuilder- Returns:
- The bytes for kind.
-
getLicensesList
public com.google.protobuf.ProtocolStringList getLicensesList()
[Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;- Specified by:
getLicensesListin interfaceAttachedDiskOrBuilder- Returns:
- A list containing the licenses.
-
getLicensesCount
public int getLicensesCount()
[Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;- Specified by:
getLicensesCountin 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:
getLicensesin interfaceAttachedDiskOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The licenses at the given index.
-
getLicensesBytes
public com.google.protobuf.ByteString getLicensesBytes(int index)
[Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;- Specified by:
getLicensesBytesin interfaceAttachedDiskOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the licenses at the given index.
-
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:
hasModein 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:
getModein 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:
getModeBytesin interfaceAttachedDiskOrBuilder- Returns:
- The bytes for mode.
-
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:
hasSavedStatein 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:
getSavedStatein 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:
getSavedStateBytesin interfaceAttachedDiskOrBuilder- Returns:
- The bytes for savedState.
-
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:
hasShieldedInstanceInitialStatein 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:
getShieldedInstanceInitialStatein interfaceAttachedDiskOrBuilder- Returns:
- The shieldedInstanceInitialState.
-
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:
getShieldedInstanceInitialStateOrBuilderin 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:
hasSourcein 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:
getSourcein interfaceAttachedDiskOrBuilder- Returns:
- The source.
-
getSourceBytes
public com.google.protobuf.ByteString getSourceBytes()
Specifies a valid partial or full URL to an existing Persistent Disk resource. When creating a new instance, 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:
getSourceBytesin interfaceAttachedDiskOrBuilder- Returns:
- The bytes for source.
-
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:
hasTypein 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:
getTypein 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:
getTypeBytesin interfaceAttachedDiskOrBuilder- Returns:
- The bytes for type.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static AttachedDisk parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AttachedDisk parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AttachedDisk parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AttachedDisk parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AttachedDisk parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AttachedDisk parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AttachedDisk parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AttachedDisk parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AttachedDisk parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AttachedDisk parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static AttachedDisk parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AttachedDisk parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public AttachedDisk.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static AttachedDisk.Builder newBuilder()
-
newBuilder
public static AttachedDisk.Builder newBuilder(AttachedDisk prototype)
-
toBuilder
public AttachedDisk.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AttachedDisk.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static AttachedDisk getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<AttachedDisk> parser()
-
getParserForType
public com.google.protobuf.Parser<AttachedDisk> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public AttachedDisk getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-