Class DiskRestoreProperties (0.35.0)

publicfinalclass DiskRestorePropertiesextendsGeneratedMessageV3implementsDiskRestorePropertiesOrBuilder

DiskRestoreProperties represents the properties of a Disk restore.

Protobuf type google.cloud.backupdr.v1.DiskRestoreProperties

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

ACCESS_MODE_FIELD_NUMBER

publicstaticfinalintACCESS_MODE_FIELD_NUMBER
Field Value
Type Description
int

ARCHITECTURE_FIELD_NUMBER

publicstaticfinalintARCHITECTURE_FIELD_NUMBER
Field Value
Type Description
int

DESCRIPTION_FIELD_NUMBER

publicstaticfinalintDESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

DISK_ENCRYPTION_KEY_FIELD_NUMBER

publicstaticfinalintDISK_ENCRYPTION_KEY_FIELD_NUMBER
Field Value
Type Description
int

ENABLE_CONFIDENTIAL_COMPUTE_FIELD_NUMBER

publicstaticfinalintENABLE_CONFIDENTIAL_COMPUTE_FIELD_NUMBER
Field Value
Type Description
int

GUEST_OS_FEATURE_FIELD_NUMBER

publicstaticfinalintGUEST_OS_FEATURE_FIELD_NUMBER
Field Value
Type Description
int

LABELS_FIELD_NUMBER

publicstaticfinalintLABELS_FIELD_NUMBER
Field Value
Type Description
int

LICENSES_FIELD_NUMBER

publicstaticfinalintLICENSES_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

publicstaticfinalintNAME_FIELD_NUMBER
Field Value
Type Description
int

PHYSICAL_BLOCK_SIZE_BYTES_FIELD_NUMBER

publicstaticfinalintPHYSICAL_BLOCK_SIZE_BYTES_FIELD_NUMBER
Field Value
Type Description
int

PROVISIONED_IOPS_FIELD_NUMBER

publicstaticfinalintPROVISIONED_IOPS_FIELD_NUMBER
Field Value
Type Description
int

PROVISIONED_THROUGHPUT_FIELD_NUMBER

publicstaticfinalintPROVISIONED_THROUGHPUT_FIELD_NUMBER
Field Value
Type Description
int

RESOURCE_MANAGER_TAGS_FIELD_NUMBER

publicstaticfinalintRESOURCE_MANAGER_TAGS_FIELD_NUMBER
Field Value
Type Description
int

RESOURCE_POLICY_FIELD_NUMBER

publicstaticfinalintRESOURCE_POLICY_FIELD_NUMBER
Field Value
Type Description
int

SIZE_GB_FIELD_NUMBER

publicstaticfinalintSIZE_GB_FIELD_NUMBER
Field Value
Type Description
int

STORAGE_POOL_FIELD_NUMBER

publicstaticfinalintSTORAGE_POOL_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

publicstaticfinalintTYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticDiskRestorePropertiesgetDefaultInstance()
Returns
Type Description
DiskRestoreProperties

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticDiskRestoreProperties.BuildernewBuilder()
Returns
Type Description
DiskRestoreProperties.Builder

newBuilder(DiskRestoreProperties prototype)

publicstaticDiskRestoreProperties.BuildernewBuilder(DiskRestorePropertiesprototype)
Parameter
Name Description
prototype DiskRestoreProperties
Returns
Type Description
DiskRestoreProperties.Builder

parseDelimitedFrom(InputStream input)

publicstaticDiskRestorePropertiesparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
DiskRestoreProperties
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticDiskRestorePropertiesparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiskRestoreProperties
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticDiskRestorePropertiesparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
DiskRestoreProperties
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticDiskRestorePropertiesparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiskRestoreProperties
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticDiskRestorePropertiesparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
DiskRestoreProperties
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticDiskRestorePropertiesparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiskRestoreProperties
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticDiskRestorePropertiesparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
DiskRestoreProperties
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticDiskRestorePropertiesparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiskRestoreProperties
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticDiskRestorePropertiesparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
DiskRestoreProperties
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticDiskRestorePropertiesparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiskRestoreProperties
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticDiskRestorePropertiesparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
DiskRestoreProperties
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticDiskRestorePropertiesparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiskRestoreProperties
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<DiskRestoreProperties>parser()
Returns
Type Description
Parser<DiskRestoreProperties>

Methods

containsLabels(String key)

publicbooleancontainsLabels(Stringkey)

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)

publicbooleancontainsResourceManagerTags(Stringkey)

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)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAccessMode()

publicDiskRestoreProperties.AccessModegetAccessMode()

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()

publicintgetAccessModeValue()

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()

publicDiskRestoreProperties.ArchitecturegetArchitecture()

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()

publicintgetArchitectureValue()

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()

publicDiskRestorePropertiesgetDefaultInstanceForType()
Returns
Type Description
DiskRestoreProperties

getDescription()

publicStringgetDescription()

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()

publicByteStringgetDescriptionBytes()

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()

publicCustomerEncryptionKeygetDiskEncryptionKey()

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()

publicCustomerEncryptionKeyOrBuildergetDiskEncryptionKeyOrBuilder()

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()

publicbooleangetEnableConfidentialCompute()

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)

publicGuestOsFeaturegetGuestOsFeature(intindex)

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()

publicintgetGuestOsFeatureCount()

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()

publicList<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)

publicGuestOsFeatureOrBuildergetGuestOsFeatureOrBuilder(intindex)

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()

publicList<?extendsGuestOsFeatureOrBuilder>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)

publicMap<String,String>getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

publicintgetLabelsCount()

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()

publicMap<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)

publicStringgetLabelsOrDefault(Stringkey,StringdefaultValue)

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)

publicStringgetLabelsOrThrow(Stringkey)

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)

publicStringgetLicenses(intindex)

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 int

The index of the element to return.

Returns
Type Description
String

The licenses at the given index.

getLicensesBytes(int index)

publicByteStringgetLicensesBytes(intindex)

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 int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the licenses at the given index.

getLicensesCount()

publicintgetLicensesCount()

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()

publicProtocolStringListgetLicensesList()

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()

publicStringgetName()

Required. Name of the disk.

optional string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The name.

getNameBytes()

publicByteStringgetNameBytes()

Required. Name of the disk.

optional string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

publicParser<DiskRestoreProperties>getParserForType()
Returns
Type Description
Parser<DiskRestoreProperties>
Overrides

getPhysicalBlockSizeBytes()

publiclonggetPhysicalBlockSizeBytes()

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()

publiclonggetProvisionedIops()

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()

publiclonggetProvisionedThroughput()

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)

publicMap<String,String>getResourceManagerTags()
Returns
Type Description
Map<String,String>

getResourceManagerTagsCount()

publicintgetResourceManagerTagsCount()

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()

publicMap<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)

publicStringgetResourceManagerTagsOrDefault(Stringkey,StringdefaultValue)

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)

publicStringgetResourceManagerTagsOrThrow(Stringkey)

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)

publicStringgetResourcePolicy(intindex)

Optional. Resource policies applied to this disk.

repeated string resource_policy = 15 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The resourcePolicy at the given index.

getResourcePolicyBytes(int index)

publicByteStringgetResourcePolicyBytes(intindex)

Optional. Resource policies applied to this disk.

repeated string resource_policy = 15 [(.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 resourcePolicy at the given index.

getResourcePolicyCount()

publicintgetResourcePolicyCount()

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()

publicProtocolStringListgetResourcePolicyList()

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()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getSizeGb()

publiclonggetSizeGb()

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()

publicStringgetStoragePool()

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()

publicByteStringgetStoragePoolBytes()

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()

publicStringgetType()

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()

publicByteStringgetTypeBytes()

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()

publicbooleanhasAccessMode()

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()

publicbooleanhasArchitecture()

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()

publicbooleanhasDescription()

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()

publicbooleanhasDiskEncryptionKey()

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()

publicbooleanhasEnableConfidentialCompute()

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()

publicbooleanhasName()

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()

publicbooleanhasPhysicalBlockSizeBytes()

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()

publicbooleanhasProvisionedIops()

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()

publicbooleanhasProvisionedThroughput()

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()

publicbooleanhasSizeGb()

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()

publicbooleanhasStoragePool()

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()

publicbooleanhasType()

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()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protectedMapFieldReflectionAccessorinternalGetMapFieldReflection(intnumber)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicDiskRestoreProperties.BuildernewBuilderForType()
Returns
Type Description
DiskRestoreProperties.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedDiskRestoreProperties.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
DiskRestoreProperties.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicDiskRestoreProperties.BuildertoBuilder()
Returns
Type Description
DiskRestoreProperties.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.