public final class DiskRestoreProperties extends GeneratedMessageV3 implements DiskRestorePropertiesOrBuilderDiskRestoreProperties represents the properties of a Disk restore.
Protobuf type google.cloud.backupdr.v1.DiskRestoreProperties
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > DiskRestorePropertiesImplements
DiskRestorePropertiesOrBuilderStatic Fields
ACCESS_MODE_FIELD_NUMBER
public static final int ACCESS_MODE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
ARCHITECTURE_FIELD_NUMBER
public static final int ARCHITECTURE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_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 |
|
ENABLE_CONFIDENTIAL_COMPUTE_FIELD_NUMBER
public static final int ENABLE_CONFIDENTIAL_COMPUTE_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 |
|
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
LICENSES_FIELD_NUMBER
public static final int LICENSES_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
PHYSICAL_BLOCK_SIZE_BYTES_FIELD_NUMBER
public static final int PHYSICAL_BLOCK_SIZE_BYTES_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
PROVISIONED_IOPS_FIELD_NUMBER
public static final int PROVISIONED_IOPS_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
PROVISIONED_THROUGHPUT_FIELD_NUMBER
public static final int PROVISIONED_THROUGHPUT_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
RESOURCE_MANAGER_TAGS_FIELD_NUMBER
public static final int RESOURCE_MANAGER_TAGS_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
RESOURCE_POLICY_FIELD_NUMBER
public static final int RESOURCE_POLICY_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
SIZE_GB_FIELD_NUMBER
public static final int SIZE_GB_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
STORAGE_POOL_FIELD_NUMBER
public static final int STORAGE_POOL_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 DiskRestoreProperties getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
DiskRestoreProperties |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static DiskRestoreProperties.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
DiskRestoreProperties.Builder |
|
newBuilder(DiskRestoreProperties prototype)
public static DiskRestoreProperties.Builder newBuilder(DiskRestoreProperties prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
DiskRestoreProperties |
| Returns | |
|---|---|
| Type | Description |
DiskRestoreProperties.Builder |
|
parseDelimitedFrom(InputStream input)
public static DiskRestoreProperties parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
DiskRestoreProperties |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static DiskRestoreProperties parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DiskRestoreProperties |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static DiskRestoreProperties parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
DiskRestoreProperties |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static DiskRestoreProperties parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DiskRestoreProperties |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static DiskRestoreProperties parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
DiskRestoreProperties |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DiskRestoreProperties parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DiskRestoreProperties |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static DiskRestoreProperties parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
DiskRestoreProperties |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static DiskRestoreProperties parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DiskRestoreProperties |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static DiskRestoreProperties parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
DiskRestoreProperties |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static DiskRestoreProperties parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DiskRestoreProperties |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static DiskRestoreProperties parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
DiskRestoreProperties |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static DiskRestoreProperties parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DiskRestoreProperties |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<DiskRestoreProperties> parser()| Returns | |
|---|---|
| Type | Description |
Parser<DiskRestoreProperties> |
|
Methods
containsLabels(String key)
public boolean containsLabels(String key)Optional. Labels to apply to this disk. These can be modified later using <code>setLabels</code> method. Label values can be empty.
map<string, string> labels = 17 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
containsResourceManagerTags(String key)
public boolean containsResourceManagerTags(String key)Optional. Resource manager tags to be bound to the disk.
map<string, string> resource_manager_tags = 18 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getAccessMode()
public DiskRestoreProperties.AccessMode getAccessMode()Optional. The access mode of the disk.
optional .google.cloud.backupdr.v1.DiskRestoreProperties.AccessMode access_mode = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
DiskRestoreProperties.AccessMode |
The accessMode. |
getAccessModeValue()
public int getAccessModeValue()Optional. The access mode of the disk.
optional .google.cloud.backupdr.v1.DiskRestoreProperties.AccessMode access_mode = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for accessMode. |
getArchitecture()
public DiskRestoreProperties.Architecture getArchitecture()Optional. The architecture of the source disk. Valid values are ARM64 or X86_64.
optional .google.cloud.backupdr.v1.DiskRestoreProperties.Architecture architecture = 14 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
DiskRestoreProperties.Architecture |
The architecture. |
getArchitectureValue()
public int getArchitectureValue()Optional. The architecture of the source disk. Valid values are ARM64 or X86_64.
optional .google.cloud.backupdr.v1.DiskRestoreProperties.Architecture architecture = 14 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for architecture. |
getDefaultInstanceForType()
public DiskRestoreProperties getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
DiskRestoreProperties |
|
getDescription()
public String getDescription()Optional. An optional description of this resource. Provide this property when you create the resource.
optional string description = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()Optional. An optional description of this resource. Provide this property when you create the resource.
optional string description = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for description. |
getDiskEncryptionKey()
public CustomerEncryptionKey getDiskEncryptionKey()Optional. Encrypts the disk using a customer-supplied encryption key or a customer-managed encryption key.
optional .google.cloud.backupdr.v1.CustomerEncryptionKey disk_encryption_key = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CustomerEncryptionKey |
The diskEncryptionKey. |
getDiskEncryptionKeyOrBuilder()
public CustomerEncryptionKeyOrBuilder getDiskEncryptionKeyOrBuilder()Optional. Encrypts the disk using a customer-supplied encryption key or a customer-managed encryption key.
optional .google.cloud.backupdr.v1.CustomerEncryptionKey disk_encryption_key = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CustomerEncryptionKeyOrBuilder |
|
getEnableConfidentialCompute()
public boolean getEnableConfidentialCompute()Optional. Indicates whether this disk is using confidential compute mode. Encryption with a Cloud KMS key is required to enable this option.
optional bool enable_confidential_compute = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The enableConfidentialCompute. |
getGuestOsFeature(int index)
public GuestOsFeature getGuestOsFeature(int index)Optional. A list of features to enable in the guest operating system. This is applicable only for bootable images.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 5 [(.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 in the guest operating system. This is applicable only for bootable images.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getGuestOsFeatureList()
public List<GuestOsFeature> getGuestOsFeatureList()Optional. A list of features to enable in the guest operating system. This is applicable only for bootable images.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 5 [(.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 in the guest operating system. This is applicable only for bootable images.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 5 [(.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 in the guest operating system. This is applicable only for bootable images.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.backupdr.v1.GuestOsFeatureOrBuilder> |
|
getLabels() (deprecated)
public Map<String,String> getLabels()Use #getLabelsMap() instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getLabelsCount()
public int getLabelsCount()Optional. Labels to apply to this disk. These can be modified later using <code>setLabels</code> method. Label values can be empty.
map<string, string> labels = 17 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getLabelsMap()
public Map<String,String> getLabelsMap()Optional. Labels to apply to this disk. These can be modified later using <code>setLabels</code> method. Label values can be empty.
map<string, string> labels = 17 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)Optional. Labels to apply to this disk. These can be modified later using <code>setLabels</code> method. Label values can be empty.
map<string, string> labels = 17 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
key |
String |
defaultValue |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)Optional. Labels to apply to this disk. These can be modified later using <code>setLabels</code> method. Label values can be empty.
map<string, string> labels = 17 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getLicenses(int index)
public String getLicenses(int index)Optional. A list of publicly available licenses that are applicable to this backup. This is applicable if the original image had licenses attached, e.g. Windows image
repeated string licenses = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The licenses at the given index. |
getLicensesBytes(int index)
public ByteString getLicensesBytes(int index)Optional. A list of publicly available licenses that are applicable to this backup. This is applicable if the original image had licenses attached, e.g. Windows image
repeated string licenses = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the licenses at the given index. |
getLicensesCount()
public int getLicensesCount()Optional. A list of publicly available licenses that are applicable to this backup. This is applicable if the original image had licenses attached, e.g. Windows image
repeated string licenses = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The count of licenses. |
getLicensesList()
public ProtocolStringList getLicensesList()Optional. A list of publicly available licenses that are applicable to this backup. This is applicable if the original image had licenses attached, e.g. Windows image
repeated string licenses = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the licenses. |
getName()
public String getName()Required. Name of the disk.
optional string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()Required. Name of the disk.
optional string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getParserForType()
public Parser<DiskRestoreProperties> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<DiskRestoreProperties> |
|
getPhysicalBlockSizeBytes()
public long getPhysicalBlockSizeBytes()Optional. Physical block size of the persistent disk, in bytes. If not present in a request, a default value is used. Currently, the supported size is 4096.
optional int64 physical_block_size_bytes = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
long |
The physicalBlockSizeBytes. |
getProvisionedIops()
public long getProvisionedIops()Optional. Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle.
optional int64 provisioned_iops = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
long |
The provisionedIops. |
getProvisionedThroughput()
public long getProvisionedThroughput()Optional. Indicates how much throughput to provision for the disk. This sets the number of throughput MB per second that the disk can handle.
optional int64 provisioned_throughput = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
long |
The provisionedThroughput. |
getResourceManagerTags() (deprecated)
public Map<String,String> getResourceManagerTags()Use #getResourceManagerTagsMap() instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getResourceManagerTagsCount()
public int getResourceManagerTagsCount()Optional. Resource manager tags to be bound to the disk.
map<string, string> resource_manager_tags = 18 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getResourceManagerTagsMap()
public Map<String,String> getResourceManagerTagsMap()Optional. Resource manager tags to be bound to the disk.
map<string, string> resource_manager_tags = 18 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getResourceManagerTagsOrDefault(String key, String defaultValue)
public String getResourceManagerTagsOrDefault(String key, String defaultValue)Optional. Resource manager tags to be bound to the disk.
map<string, string> resource_manager_tags = 18 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
key |
String |
defaultValue |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getResourceManagerTagsOrThrow(String key)
public String getResourceManagerTagsOrThrow(String key)Optional. Resource manager tags to be bound to the disk.
map<string, string> resource_manager_tags = 18 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getResourcePolicy(int index)
public String getResourcePolicy(int index)Optional. Resource policies applied to this disk.
repeated string resource_policy = 15 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The resourcePolicy at the given index. |
getResourcePolicyBytes(int index)
public ByteString getResourcePolicyBytes(int index)Optional. Resource policies applied to this disk.
repeated string resource_policy = 15 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the resourcePolicy at the given index. |
getResourcePolicyCount()
public int getResourcePolicyCount()Optional. Resource policies applied to this disk.
repeated string resource_policy = 15 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The count of resourcePolicy. |
getResourcePolicyList()
public ProtocolStringList getResourcePolicyList()Optional. Resource policies applied to this disk.
repeated string resource_policy = 15 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the resourcePolicy. |
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
getSizeGb()
public long getSizeGb()Required. The size of the disk in GB.
optional int64 size_gb = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
long |
The sizeGb. |
getStoragePool()
public String getStoragePool()Optional. The storage pool in which the new disk is created. You can provide this as a partial or full URL to the resource.
optional string storage_pool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The storagePool. |
getStoragePoolBytes()
public ByteString getStoragePoolBytes()Optional. The storage pool in which the new disk is created. You can provide this as a partial or full URL to the resource.
optional string storage_pool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for storagePool. |
getType()
public String getType()Required. URL of the disk type resource describing which disk type to use to create the disk.
optional string type = 16 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The type. |
getTypeBytes()
public ByteString getTypeBytes()Required. URL of the disk type resource describing which disk type to use to create the disk.
optional string type = 16 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for type. |
hasAccessMode()
public boolean hasAccessMode()Optional. The access mode of the disk.
optional .google.cloud.backupdr.v1.DiskRestoreProperties.AccessMode access_mode = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the accessMode field is set. |
hasArchitecture()
public boolean hasArchitecture()Optional. The architecture of the source disk. Valid values are ARM64 or X86_64.
optional .google.cloud.backupdr.v1.DiskRestoreProperties.Architecture architecture = 14 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the architecture field is set. |
hasDescription()
public boolean hasDescription()Optional. An optional description of this resource. Provide this property when you create the resource.
optional string description = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the description field is set. |
hasDiskEncryptionKey()
public boolean hasDiskEncryptionKey()Optional. Encrypts the disk using a customer-supplied encryption key or a customer-managed encryption key.
optional .google.cloud.backupdr.v1.CustomerEncryptionKey disk_encryption_key = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the diskEncryptionKey field is set. |
hasEnableConfidentialCompute()
public boolean hasEnableConfidentialCompute()Optional. Indicates whether this disk is using confidential compute mode. Encryption with a Cloud KMS key is required to enable this option.
optional bool enable_confidential_compute = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the enableConfidentialCompute field is set. |
hasName()
public boolean hasName()Required. Name of the disk.
optional string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the name field is set. |
hasPhysicalBlockSizeBytes()
public boolean hasPhysicalBlockSizeBytes()Optional. Physical block size of the persistent disk, in bytes. If not present in a request, a default value is used. Currently, the supported size is 4096.
optional int64 physical_block_size_bytes = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the physicalBlockSizeBytes field is set. |
hasProvisionedIops()
public boolean hasProvisionedIops()Optional. Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle.
optional int64 provisioned_iops = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the provisionedIops field is set. |
hasProvisionedThroughput()
public boolean hasProvisionedThroughput()Optional. Indicates how much throughput to provision for the disk. This sets the number of throughput MB per second that the disk can handle.
optional int64 provisioned_throughput = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the provisionedThroughput field is set. |
hasSizeGb()
public boolean hasSizeGb()Required. The size of the disk in GB.
optional int64 size_gb = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the sizeGb field is set. |
hasStoragePool()
public boolean hasStoragePool()Optional. The storage pool in which the new disk is created. You can provide this as a partial or full URL to the resource.
optional string storage_pool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the storagePool field is set. |
hasType()
public boolean hasType()Required. URL of the disk type resource describing which disk type to use to create the disk.
optional string type = 16 [(.google.api.field_behavior) = REQUIRED];
| 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 |
|
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public DiskRestoreProperties.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
DiskRestoreProperties.Builder |
|
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected DiskRestoreProperties.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
DiskRestoreProperties.Builder |
|
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)| Parameter | |
|---|---|
| Name | Description |
unused |
UnusedPrivateParameter |
| Returns | |
|---|---|
| Type | Description |
Object |
|
toBuilder()
public DiskRestoreProperties.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
DiskRestoreProperties.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|