Class AttachedDisk (0.26.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicfinalclass AttachedDiskextendsGeneratedMessageV3implementsAttachedDiskOrBuilderAn instance-attached disk resource.
Protobuf type google.cloud.backupdr.v1.AttachedDisk
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > AttachedDiskImplements
AttachedDiskOrBuilderInherited Members
Static Fields
AUTO_DELETE_FIELD_NUMBER
publicstaticfinalintAUTO_DELETE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
BOOT_FIELD_NUMBER
publicstaticfinalintBOOT_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
DEVICE_NAME_FIELD_NUMBER
publicstaticfinalintDEVICE_NAME_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
DISK_ENCRYPTION_KEY_FIELD_NUMBER
publicstaticfinalintDISK_ENCRYPTION_KEY_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
DISK_INTERFACE_FIELD_NUMBER
publicstaticfinalintDISK_INTERFACE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
DISK_SIZE_GB_FIELD_NUMBER
publicstaticfinalintDISK_SIZE_GB_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
DISK_TYPE_DEPRECATED_FIELD_NUMBER
publicstaticfinalintDISK_TYPE_DEPRECATED_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
DISK_TYPE_FIELD_NUMBER
publicstaticfinalintDISK_TYPE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
GUEST_OS_FEATURE_FIELD_NUMBER
publicstaticfinalintGUEST_OS_FEATURE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
INDEX_FIELD_NUMBER
publicstaticfinalintINDEX_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
INITIALIZE_PARAMS_FIELD_NUMBER
publicstaticfinalintINITIALIZE_PARAMS_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
KIND_FIELD_NUMBER
publicstaticfinalintKIND_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
LICENSE_FIELD_NUMBER
publicstaticfinalintLICENSE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
MODE_FIELD_NUMBER
publicstaticfinalintMODE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
SAVED_STATE_FIELD_NUMBER
publicstaticfinalintSAVED_STATE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
SOURCE_FIELD_NUMBER
publicstaticfinalintSOURCE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
TYPE_FIELD_NUMBER
publicstaticfinalintTYPE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
publicstaticAttachedDiskgetDefaultInstance()| Returns | |
|---|---|
| Type | Description |
AttachedDisk |
|
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
publicstaticAttachedDisk.BuildernewBuilder()| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
newBuilder(AttachedDisk prototype)
publicstaticAttachedDisk.BuildernewBuilder(AttachedDiskprototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
AttachedDisk |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
parseDelimitedFrom(InputStream input)
publicstaticAttachedDiskparseDelimitedFrom(InputStreaminput)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticAttachedDiskparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
publicstaticAttachedDiskparseFrom(byte[]data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticAttachedDiskparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
publicstaticAttachedDiskparseFrom(ByteStringdata)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticAttachedDiskparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
publicstaticAttachedDiskparseFrom(CodedInputStreaminput)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticAttachedDiskparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
publicstaticAttachedDiskparseFrom(InputStreaminput)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticAttachedDiskparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
publicstaticAttachedDiskparseFrom(ByteBufferdata)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticAttachedDiskparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
publicstaticParser<AttachedDisk>parser()| Returns | |
|---|---|
| Type | Description |
Parser<AttachedDisk> |
|
Methods
equals(Object obj)
publicbooleanequals(Objectobj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getAutoDelete()
publicbooleangetAutoDelete()Optional. 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 = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The autoDelete. |
getBoot()
publicbooleangetBoot()Optional. 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 = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The boot. |
getDefaultInstanceForType()
publicAttachedDiskgetDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AttachedDisk |
|
getDeviceName()
publicStringgetDeviceName()Optional. This is used as an identifier for the disks. This is the unique name has to provided to modify disk parameters like disk_name and replica_zones (in case of RePDs)
optional string device_name = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The deviceName. |
getDeviceNameBytes()
publicByteStringgetDeviceNameBytes()Optional. This is used as an identifier for the disks. This is the unique name has to provided to modify disk parameters like disk_name and replica_zones (in case of RePDs)
optional string device_name = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for deviceName. |
getDiskEncryptionKey()
publicCustomerEncryptionKeygetDiskEncryptionKey()Optional. Encrypts or decrypts a disk using a customer-supplied encryption key.
optional .google.cloud.backupdr.v1.CustomerEncryptionKey disk_encryption_key = 15 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CustomerEncryptionKey |
The diskEncryptionKey. |
getDiskEncryptionKeyOrBuilder()
publicCustomerEncryptionKeyOrBuildergetDiskEncryptionKeyOrBuilder()Optional. Encrypts or decrypts a disk using a customer-supplied encryption key.
optional .google.cloud.backupdr.v1.CustomerEncryptionKey disk_encryption_key = 15 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CustomerEncryptionKeyOrBuilder |
|
getDiskInterface()
publicAttachedDisk.DiskInterfacegetDiskInterface()Optional. Specifies the disk interface to use for attaching this disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskInterface disk_interface = 13 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.DiskInterface |
The diskInterface. |
getDiskInterfaceValue()
publicintgetDiskInterfaceValue()Optional. Specifies the disk interface to use for attaching this disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskInterface disk_interface = 13 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for diskInterface. |
getDiskSizeGb()
publiclonggetDiskSizeGb()Optional. The size of the disk in GB.
optional int64 disk_size_gb = 16 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
long |
The diskSizeGb. |
getDiskType()
publicStringgetDiskType()Optional. Output only. The URI of the disk type resource. For example: projects/project/zones/zone/diskTypes/pd-standard or pd-ssd
optional string disk_type = 18 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The diskType. |
getDiskTypeBytes()
publicByteStringgetDiskTypeBytes()Optional. Output only. The URI of the disk type resource. For example: projects/project/zones/zone/diskTypes/pd-standard or pd-ssd
optional string disk_type = 18 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for diskType. |
getDiskTypeDeprecated() (deprecated)
publicAttachedDisk.DiskTypegetDiskTypeDeprecated()Deprecated. google.cloud.backupdr.v1.AttachedDisk.disk_type_deprecated is deprecated. See google/cloud/backupdr/v1/backupvault_gce.proto;l=824
Specifies the type of the disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskType disk_type_deprecated = 6 [deprecated = true];
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.DiskType |
The diskTypeDeprecated. |
getDiskTypeDeprecatedValue() (deprecated)
publicintgetDiskTypeDeprecatedValue()Deprecated. google.cloud.backupdr.v1.AttachedDisk.disk_type_deprecated is deprecated. See google/cloud/backupdr/v1/backupvault_gce.proto;l=824
Specifies the type of the disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskType disk_type_deprecated = 6 [deprecated = true];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for diskTypeDeprecated. |
getGuestOsFeature(int index)
publicGuestOsFeaturegetGuestOsFeature(intindex)Optional. A list of features to enable on the guest operating system. Applicable only for bootable images.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 14 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
GuestOsFeature |
|
getGuestOsFeatureCount()
publicintgetGuestOsFeatureCount()Optional. A list of features to enable on the guest operating system. Applicable only for bootable images.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 14 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getGuestOsFeatureList()
publicList<GuestOsFeature>getGuestOsFeatureList()Optional. A list of features to enable on the guest operating system. Applicable only for bootable images.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 14 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<GuestOsFeature> |
|
getGuestOsFeatureOrBuilder(int index)
publicGuestOsFeatureOrBuildergetGuestOsFeatureOrBuilder(intindex)Optional. A list of features to enable on the guest operating system. Applicable only for bootable images.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 14 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
GuestOsFeatureOrBuilder |
|
getGuestOsFeatureOrBuilderList()
publicList<?extendsGuestOsFeatureOrBuilder>getGuestOsFeatureOrBuilderList()Optional. A list of features to enable on the guest operating system. Applicable only for bootable images.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 14 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.backupdr.v1.GuestOsFeatureOrBuilder> |
|
getIndex()
publiclonggetIndex()Optional. A zero-based index to this disk, where 0 is reserved for the boot disk.
optional int64 index = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
long |
The index. |
getInitializeParams()
publicAttachedDisk.InitializeParamsgetInitializeParams()Optional. Specifies the parameters to initialize this disk.
optional .google.cloud.backupdr.v1.AttachedDisk.InitializeParams initialize_params = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.InitializeParams |
The initializeParams. |
getInitializeParamsOrBuilder()
publicAttachedDisk.InitializeParamsOrBuildergetInitializeParamsOrBuilder()Optional. Specifies the parameters to initialize this disk.
optional .google.cloud.backupdr.v1.AttachedDisk.InitializeParams initialize_params = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.InitializeParamsOrBuilder |
|
getKind()
publicStringgetKind()Optional. Type of the resource.
optional string kind = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The kind. |
getKindBytes()
publicByteStringgetKindBytes()Optional. Type of the resource.
optional string kind = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for kind. |
getLicense(int index)
publicStringgetLicense(intindex)Optional. Any valid publicly visible licenses.
repeated string license = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int The index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The license at the given index. |
getLicenseBytes(int index)
publicByteStringgetLicenseBytes(intindex)Optional. Any valid publicly visible licenses.
repeated string license = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int The index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the license at the given index. |
getLicenseCount()
publicintgetLicenseCount()Optional. Any valid publicly visible licenses.
repeated string license = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The count of license. |
getLicenseList()
publicProtocolStringListgetLicenseList()Optional. Any valid publicly visible licenses.
repeated string license = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the license. |
getMode()
publicAttachedDisk.DiskModegetMode()Optional. The mode in which to attach this disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskMode mode = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.DiskMode |
The mode. |
getModeValue()
publicintgetModeValue()Optional. The mode in which to attach this disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskMode mode = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for mode. |
getParserForType()
publicParser<AttachedDisk>getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<AttachedDisk> |
|
getSavedState()
publicAttachedDisk.DiskSavedStategetSavedState()Optional. Output only. The state of the disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskSavedState saved_state = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.DiskSavedState |
The savedState. |
getSavedStateValue()
publicintgetSavedStateValue()Optional. Output only. The state of the disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskSavedState saved_state = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for savedState. |
getSerializedSize()
publicintgetSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
getSource()
publicStringgetSource()Optional. Specifies a valid partial or full URL to an existing Persistent Disk resource.
optional string source = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The source. |
getSourceBytes()
publicByteStringgetSourceBytes()Optional. Specifies a valid partial or full URL to an existing Persistent Disk resource.
optional string source = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for source. |
getType()
publicAttachedDisk.DiskTypegetType()Optional. Specifies the type of the disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskType type = 19 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.DiskType |
The type. |
getTypeValue()
publicintgetTypeValue()Optional. Specifies the type of the disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskType type = 19 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for type. |
hasAutoDelete()
publicbooleanhasAutoDelete()Optional. 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 = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the autoDelete field is set. |
hasBoot()
publicbooleanhasBoot()Optional. 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 = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the boot field is set. |
hasDeviceName()
publicbooleanhasDeviceName()Optional. This is used as an identifier for the disks. This is the unique name has to provided to modify disk parameters like disk_name and replica_zones (in case of RePDs)
optional string device_name = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the deviceName field is set. |
hasDiskEncryptionKey()
publicbooleanhasDiskEncryptionKey()Optional. Encrypts or decrypts a disk using a customer-supplied encryption key.
optional .google.cloud.backupdr.v1.CustomerEncryptionKey disk_encryption_key = 15 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the diskEncryptionKey field is set. |
hasDiskInterface()
publicbooleanhasDiskInterface()Optional. Specifies the disk interface to use for attaching this disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskInterface disk_interface = 13 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the diskInterface field is set. |
hasDiskSizeGb()
publicbooleanhasDiskSizeGb()Optional. The size of the disk in GB.
optional int64 disk_size_gb = 16 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the diskSizeGb field is set. |
hasDiskType()
publicbooleanhasDiskType()Optional. Output only. The URI of the disk type resource. For example: projects/project/zones/zone/diskTypes/pd-standard or pd-ssd
optional string disk_type = 18 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the diskType field is set. |
hasDiskTypeDeprecated() (deprecated)
publicbooleanhasDiskTypeDeprecated()Deprecated. google.cloud.backupdr.v1.AttachedDisk.disk_type_deprecated is deprecated. See google/cloud/backupdr/v1/backupvault_gce.proto;l=824
Specifies the type of the disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskType disk_type_deprecated = 6 [deprecated = true];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the diskTypeDeprecated field is set. |
hasIndex()
publicbooleanhasIndex()Optional. A zero-based index to this disk, where 0 is reserved for the boot disk.
optional int64 index = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the index field is set. |
hasInitializeParams()
publicbooleanhasInitializeParams()Optional. Specifies the parameters to initialize this disk.
optional .google.cloud.backupdr.v1.AttachedDisk.InitializeParams initialize_params = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the initializeParams field is set. |
hasKind()
publicbooleanhasKind()Optional. Type of the resource.
optional string kind = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the kind field is set. |
hasMode()
publicbooleanhasMode()Optional. The mode in which to attach this disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskMode mode = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the mode field is set. |
hasSavedState()
publicbooleanhasSavedState()Optional. Output only. The state of the disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskSavedState saved_state = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the savedState field is set. |
hasSource()
publicbooleanhasSource()Optional. Specifies a valid partial or full URL to an existing Persistent Disk resource.
optional string source = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the source field is set. |
hasType()
publicbooleanhasType()Optional. Specifies the type of the disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskType type = 19 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the type field is set. |
hashCode()
publicinthashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
publicfinalbooleanisInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
publicAttachedDisk.BuildernewBuilderForType()| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedAttachedDisk.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)| Parameter | |
|---|---|
| Name | Description |
unused |
UnusedPrivateParameter |
| Returns | |
|---|---|
| Type | Description |
Object |
|
toBuilder()
publicAttachedDisk.BuildertoBuilder()| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|