public final class AttachedDisk extends GeneratedMessageV3 implements AttachedDiskOrBuilderAn instance-attached disk resource.
Protobuf type google.cloud.backupdr.v1.AttachedDisk
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > AttachedDiskImplements
AttachedDiskOrBuilderStatic Fields
AUTO_DELETE_FIELD_NUMBER
public static final int AUTO_DELETE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
BOOT_FIELD_NUMBER
public static final int BOOT_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
DEVICE_NAME_FIELD_NUMBER
public static final int DEVICE_NAME_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
DISK_ENCRYPTION_KEY_FIELD_NUMBER
public static final int DISK_ENCRYPTION_KEY_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
DISK_INTERFACE_FIELD_NUMBER
public static final int DISK_INTERFACE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
DISK_SIZE_GB_FIELD_NUMBER
public static final int DISK_SIZE_GB_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
DISK_TYPE_DEPRECATED_FIELD_NUMBER
public static final int DISK_TYPE_DEPRECATED_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
DISK_TYPE_FIELD_NUMBER
public static final int DISK_TYPE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
GUEST_OS_FEATURE_FIELD_NUMBER
public static final int GUEST_OS_FEATURE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
INDEX_FIELD_NUMBER
public static final int INDEX_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
INITIALIZE_PARAMS_FIELD_NUMBER
public static final int INITIALIZE_PARAMS_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
KIND_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
LICENSE_FIELD_NUMBER
public static final int LICENSE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
MODE_FIELD_NUMBER
public static final int MODE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
SAVED_STATE_FIELD_NUMBER
public static final int SAVED_STATE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
SOURCE_FIELD_NUMBER
public static final int SOURCE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static AttachedDisk getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
AttachedDisk |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static AttachedDisk.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
newBuilder(AttachedDisk prototype)
public static AttachedDisk.Builder newBuilder(AttachedDisk prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
AttachedDisk |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
parseDelimitedFrom(InputStream input)
public static AttachedDisk parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AttachedDisk parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static AttachedDisk parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AttachedDisk parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static AttachedDisk parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AttachedDisk parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static AttachedDisk parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AttachedDisk parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static AttachedDisk parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AttachedDisk parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static AttachedDisk parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AttachedDisk parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<AttachedDisk> parser()| Returns | |
|---|---|
| Type | Description |
Parser<AttachedDisk> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getAutoDelete()
public 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 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. |
getDefaultInstanceForType()
public AttachedDisk getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AttachedDisk |
|
getDeviceName()
public 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 String getKind()Optional. Type of the resource.
optional string kind = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The kind. |
getKindBytes()
public 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 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 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 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 ProtocolStringList getLicenseList()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()
public 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 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. |
getParserForType()
public Parser<AttachedDisk> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<AttachedDisk> |
|
getSavedState()
public 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 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. |
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
getSource()
public 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public AttachedDisk.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AttachedDisk.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)| Parameter | |
|---|---|
| Name | Description |
unused |
UnusedPrivateParameter |
| Returns | |
|---|---|
| Type | Description |
Object |
|
toBuilder()
public AttachedDisk.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|