public interface AttachedDiskOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getAutoDelete()
public abstract boolean getAutoDelete()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()
public abstract boolean getBoot()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. | 
getDeviceName()
public abstract String getDeviceName()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()
public abstract ByteString getDeviceNameBytes()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()
public abstract CustomerEncryptionKey getDiskEncryptionKey()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()
public abstract CustomerEncryptionKeyOrBuilder getDiskEncryptionKeyOrBuilder()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()
public abstract AttachedDisk.DiskInterface getDiskInterface()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()
public abstract int getDiskInterfaceValue()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()
public abstract long getDiskSizeGb()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()
public abstract String getDiskType()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()
public abstract ByteString getDiskTypeBytes()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)
public abstract AttachedDisk.DiskType getDiskTypeDeprecated()Deprecated. google.cloud.backupdr.v1.AttachedDisk.disk_type_deprecated is deprecated. See google/cloud/backupdr/v1/backupvault_gce.proto;l=832
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)
public abstract int getDiskTypeDeprecatedValue()Deprecated. google.cloud.backupdr.v1.AttachedDisk.disk_type_deprecated is deprecated. See google/cloud/backupdr/v1/backupvault_gce.proto;l=832
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)
public abstract GuestOsFeature getGuestOsFeature(int index)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()
public abstract int getGuestOsFeatureCount()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()
public abstract List<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)
public abstract GuestOsFeatureOrBuilder getGuestOsFeatureOrBuilder(int index)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()
public abstract List<? extends GuestOsFeatureOrBuilder> 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()
public abstract long getIndex()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()
public abstract AttachedDisk.InitializeParams getInitializeParams()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()
public abstract AttachedDisk.InitializeParamsOrBuilder getInitializeParamsOrBuilder()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()
public abstract String getKind()Optional. Type of the resource.
 optional string kind = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description | 
| String | The kind. | 
getKindBytes()
public abstract ByteString getKindBytes()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)
public abstract String getLicense(int index)Optional. Any valid publicly visible licenses.
 repeated string license = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description | 
| index | intThe index of the element to return. | 
| Returns | |
|---|---|
| Type | Description | 
| String | The license at the given index. | 
getLicenseBytes(int index)
public abstract ByteString getLicenseBytes(int index)Optional. Any valid publicly visible licenses.
 repeated string license = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description | 
| index | intThe index of the value to return. | 
| Returns | |
|---|---|
| Type | Description | 
| ByteString | The bytes of the license at the given index. | 
getLicenseCount()
public abstract int getLicenseCount()Optional. Any valid publicly visible licenses.
 repeated string license = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description | 
| int | The count of license. | 
getLicenseList()
public abstract List<String> getLicenseList()Optional. Any valid publicly visible licenses.
 repeated string license = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description | 
| List<String> | A list containing the license. | 
getMode()
public abstract AttachedDisk.DiskMode getMode()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()
public abstract int getModeValue()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. | 
getSavedState()
public abstract AttachedDisk.DiskSavedState getSavedState()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()
public abstract int getSavedStateValue()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. | 
getSource()
public abstract String getSource()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()
public abstract ByteString getSourceBytes()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()
public abstract AttachedDisk.DiskType getType()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()
public abstract int getTypeValue()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()
public abstract boolean hasAutoDelete()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()
public abstract boolean hasBoot()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()
public abstract boolean hasDeviceName()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()
public abstract boolean hasDiskEncryptionKey()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()
public abstract boolean hasDiskInterface()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()
public abstract boolean hasDiskSizeGb()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()
public abstract boolean hasDiskType()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)
public abstract boolean hasDiskTypeDeprecated()Deprecated. google.cloud.backupdr.v1.AttachedDisk.disk_type_deprecated is deprecated. See google/cloud/backupdr/v1/backupvault_gce.proto;l=832
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()
public abstract boolean hasIndex()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()
public abstract boolean hasInitializeParams()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()
public abstract boolean hasKind()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()
public abstract boolean hasMode()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()
public abstract boolean hasSavedState()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()
public abstract boolean hasSource()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()
public abstract boolean hasType()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. |