public static final class DiskRestoreProperties.Builder extends GeneratedMessageV3.Builder<DiskRestoreProperties.Builder> implements DiskRestorePropertiesOrBuilder
DiskRestoreProperties represents the properties of a Disk restore.
Protobuf type google.cloud.backupdr.v1.DiskRestoreProperties
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > DiskRestoreProperties.BuilderImplements
DiskRestorePropertiesOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllGuestOsFeature(Iterable<? extends GuestOsFeature> values)
public DiskRestoreProperties.Builder addAllGuestOsFeature(Iterable<? extends GuestOsFeature> values)
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 |
values |
Iterable<? extends com.google.cloud.backupdr.v1.GuestOsFeature> |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
addAllLicenses(Iterable<String> values)
public DiskRestoreProperties.Builder addAllLicenses(Iterable<String> values)
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 |
values |
Iterable<String> The licenses to add. |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
This builder for chaining. |
addAllResourcePolicy(Iterable<String> values)
public DiskRestoreProperties.Builder addAllResourcePolicy(Iterable<String> values)
Optional. Resource policies applied to this disk.
repeated string resource_policy = 15 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
values |
Iterable<String> The resourcePolicy to add. |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
This builder for chaining. |
addGuestOsFeature(GuestOsFeature value)
public DiskRestoreProperties.Builder addGuestOsFeature(GuestOsFeature value)
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 |
value |
GuestOsFeature |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
addGuestOsFeature(GuestOsFeature.Builder builderForValue)
public DiskRestoreProperties.Builder addGuestOsFeature(GuestOsFeature.Builder builderForValue)
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 |
builderForValue |
GuestOsFeature.Builder |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
addGuestOsFeature(int index, GuestOsFeature value)
public DiskRestoreProperties.Builder addGuestOsFeature(int index, GuestOsFeature value)
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];
Parameters | |
---|---|
Name | Description |
index |
int |
value |
GuestOsFeature |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
addGuestOsFeature(int index, GuestOsFeature.Builder builderForValue)
public DiskRestoreProperties.Builder addGuestOsFeature(int index, GuestOsFeature.Builder builderForValue)
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];
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
GuestOsFeature.Builder |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
addGuestOsFeatureBuilder()
public GuestOsFeature.Builder addGuestOsFeatureBuilder()
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 |
GuestOsFeature.Builder |
addGuestOsFeatureBuilder(int index)
public GuestOsFeature.Builder addGuestOsFeatureBuilder(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.Builder |
addLicenses(String value)
public DiskRestoreProperties.Builder addLicenses(String value)
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 |
value |
String The licenses to add. |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
This builder for chaining. |
addLicensesBytes(ByteString value)
public DiskRestoreProperties.Builder addLicensesBytes(ByteString value)
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 |
value |
ByteString The bytes of the licenses to add. |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DiskRestoreProperties.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
addResourcePolicy(String value)
public DiskRestoreProperties.Builder addResourcePolicy(String value)
Optional. Resource policies applied to this disk.
repeated string resource_policy = 15 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
String The resourcePolicy to add. |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
This builder for chaining. |
addResourcePolicyBytes(ByteString value)
public DiskRestoreProperties.Builder addResourcePolicyBytes(ByteString value)
Optional. Resource policies applied to this disk.
repeated string resource_policy = 15 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes of the resourcePolicy to add. |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
This builder for chaining. |
build()
public DiskRestoreProperties build()
Returns | |
---|---|
Type | Description |
DiskRestoreProperties |
buildPartial()
public DiskRestoreProperties buildPartial()
Returns | |
---|---|
Type | Description |
DiskRestoreProperties |
clear()
public DiskRestoreProperties.Builder clear()
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
clearAccessMode()
public DiskRestoreProperties.Builder clearAccessMode()
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.Builder |
This builder for chaining. |
clearArchitecture()
public DiskRestoreProperties.Builder clearArchitecture()
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.Builder |
This builder for chaining. |
clearDescription()
public DiskRestoreProperties.Builder clearDescription()
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 |
DiskRestoreProperties.Builder |
This builder for chaining. |
clearDiskEncryptionKey()
public DiskRestoreProperties.Builder clearDiskEncryptionKey()
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 |
DiskRestoreProperties.Builder |
clearEnableConfidentialCompute()
public DiskRestoreProperties.Builder clearEnableConfidentialCompute()
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 |
DiskRestoreProperties.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public DiskRestoreProperties.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
clearGuestOsFeature()
public DiskRestoreProperties.Builder clearGuestOsFeature()
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 |
DiskRestoreProperties.Builder |
clearLabels()
public DiskRestoreProperties.Builder clearLabels()
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
clearLicenses()
public DiskRestoreProperties.Builder clearLicenses()
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 |
DiskRestoreProperties.Builder |
This builder for chaining. |
clearName()
public DiskRestoreProperties.Builder clearName()
Required. Name of the disk.
optional string name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public DiskRestoreProperties.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
clearPhysicalBlockSizeBytes()
public DiskRestoreProperties.Builder clearPhysicalBlockSizeBytes()
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 |
DiskRestoreProperties.Builder |
This builder for chaining. |
clearProvisionedIops()
public DiskRestoreProperties.Builder clearProvisionedIops()
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 |
DiskRestoreProperties.Builder |
This builder for chaining. |
clearProvisionedThroughput()
public DiskRestoreProperties.Builder clearProvisionedThroughput()
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 |
DiskRestoreProperties.Builder |
This builder for chaining. |
clearResourceManagerTags()
public DiskRestoreProperties.Builder clearResourceManagerTags()
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
clearResourcePolicy()
public DiskRestoreProperties.Builder clearResourcePolicy()
Optional. Resource policies applied to this disk.
repeated string resource_policy = 15 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
This builder for chaining. |
clearSizeGb()
public DiskRestoreProperties.Builder clearSizeGb()
Required. The size of the disk in GB.
optional int64 size_gb = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
This builder for chaining. |
clearStoragePool()
public DiskRestoreProperties.Builder clearStoragePool()
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 |
DiskRestoreProperties.Builder |
This builder for chaining. |
clearType()
public DiskRestoreProperties.Builder clearType()
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 |
DiskRestoreProperties.Builder |
This builder for chaining. |
clone()
public DiskRestoreProperties.Builder clone()
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
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 |
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. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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. |
getDiskEncryptionKeyBuilder()
public CustomerEncryptionKey.Builder getDiskEncryptionKeyBuilder()
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.Builder |
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 |
getGuestOsFeatureBuilder(int index)
public GuestOsFeature.Builder getGuestOsFeatureBuilder(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.Builder |
getGuestOsFeatureBuilderList()
public List<GuestOsFeature.Builder> getGuestOsFeatureBuilderList()
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<Builder> |
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 |
int The 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 |
int The 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. |
getMutableLabels() (deprecated)
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getMutableResourceManagerTags() (deprecated)
public Map<String,String> getMutableResourceManagerTags()
Use alternate mutation accessors instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
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. |
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 |
int The 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 |
int The 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. |
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. |
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 |
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter | |
---|---|
Name | Description |
number |
int |
Returns | |
---|---|
Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeDiskEncryptionKey(CustomerEncryptionKey value)
public DiskRestoreProperties.Builder mergeDiskEncryptionKey(CustomerEncryptionKey value)
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];
Parameter | |
---|---|
Name | Description |
value |
CustomerEncryptionKey |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
mergeFrom(DiskRestoreProperties other)
public DiskRestoreProperties.Builder mergeFrom(DiskRestoreProperties other)
Parameter | |
---|---|
Name | Description |
other |
DiskRestoreProperties |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DiskRestoreProperties.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public DiskRestoreProperties.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DiskRestoreProperties.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
putAllLabels(Map<String,String> values)
public DiskRestoreProperties.Builder putAllLabels(Map<String,String> values)
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 |
values |
Map<String,String> |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
putAllResourceManagerTags(Map<String,String> values)
public DiskRestoreProperties.Builder putAllResourceManagerTags(Map<String,String> values)
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 |
values |
Map<String,String> |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
putLabels(String key, String value)
public DiskRestoreProperties.Builder putLabels(String key, String value)
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 |
value |
String |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
putResourceManagerTags(String key, String value)
public DiskRestoreProperties.Builder putResourceManagerTags(String key, String value)
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 |
value |
String |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
removeGuestOsFeature(int index)
public DiskRestoreProperties.Builder removeGuestOsFeature(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 |
DiskRestoreProperties.Builder |
removeLabels(String key)
public DiskRestoreProperties.Builder removeLabels(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 |
DiskRestoreProperties.Builder |
removeResourceManagerTags(String key)
public DiskRestoreProperties.Builder removeResourceManagerTags(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 |
DiskRestoreProperties.Builder |
setAccessMode(DiskRestoreProperties.AccessMode value)
public DiskRestoreProperties.Builder setAccessMode(DiskRestoreProperties.AccessMode value)
Optional. The access mode of the disk.
optional .google.cloud.backupdr.v1.DiskRestoreProperties.AccessMode access_mode = 12 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
DiskRestoreProperties.AccessMode The accessMode to set. |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
This builder for chaining. |
setAccessModeValue(int value)
public DiskRestoreProperties.Builder setAccessModeValue(int value)
Optional. The access mode of the disk.
optional .google.cloud.backupdr.v1.DiskRestoreProperties.AccessMode access_mode = 12 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
int The enum numeric value on the wire for accessMode to set. |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
This builder for chaining. |
setArchitecture(DiskRestoreProperties.Architecture value)
public DiskRestoreProperties.Builder setArchitecture(DiskRestoreProperties.Architecture value)
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];
Parameter | |
---|---|
Name | Description |
value |
DiskRestoreProperties.Architecture The architecture to set. |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
This builder for chaining. |
setArchitectureValue(int value)
public DiskRestoreProperties.Builder setArchitectureValue(int value)
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];
Parameter | |
---|---|
Name | Description |
value |
int The enum numeric value on the wire for architecture to set. |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
This builder for chaining. |
setDescription(String value)
public DiskRestoreProperties.Builder setDescription(String value)
Optional. An optional description of this resource. Provide this property when you create the resource.
optional string description = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
String The description to set. |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
This builder for chaining. |
setDescriptionBytes(ByteString value)
public DiskRestoreProperties.Builder setDescriptionBytes(ByteString value)
Optional. An optional description of this resource. Provide this property when you create the resource.
optional string description = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for description to set. |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
This builder for chaining. |
setDiskEncryptionKey(CustomerEncryptionKey value)
public DiskRestoreProperties.Builder setDiskEncryptionKey(CustomerEncryptionKey value)
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];
Parameter | |
---|---|
Name | Description |
value |
CustomerEncryptionKey |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
setDiskEncryptionKey(CustomerEncryptionKey.Builder builderForValue)
public DiskRestoreProperties.Builder setDiskEncryptionKey(CustomerEncryptionKey.Builder builderForValue)
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];
Parameter | |
---|---|
Name | Description |
builderForValue |
CustomerEncryptionKey.Builder |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
setEnableConfidentialCompute(boolean value)
public DiskRestoreProperties.Builder setEnableConfidentialCompute(boolean value)
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];
Parameter | |
---|---|
Name | Description |
value |
boolean The enableConfidentialCompute to set. |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public DiskRestoreProperties.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
setGuestOsFeature(int index, GuestOsFeature value)
public DiskRestoreProperties.Builder setGuestOsFeature(int index, GuestOsFeature value)
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];
Parameters | |
---|---|
Name | Description |
index |
int |
value |
GuestOsFeature |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
setGuestOsFeature(int index, GuestOsFeature.Builder builderForValue)
public DiskRestoreProperties.Builder setGuestOsFeature(int index, GuestOsFeature.Builder builderForValue)
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];
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
GuestOsFeature.Builder |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
setLicenses(int index, String value)
public DiskRestoreProperties.Builder setLicenses(int index, String value)
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];
Parameters | |
---|---|
Name | Description |
index |
int The index to set the value at. |
value |
String The licenses to set. |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
This builder for chaining. |
setName(String value)
public DiskRestoreProperties.Builder setName(String value)
Required. Name of the disk.
optional string name = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
String The name to set. |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public DiskRestoreProperties.Builder setNameBytes(ByteString value)
Required. Name of the disk.
optional string name = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
This builder for chaining. |
setPhysicalBlockSizeBytes(long value)
public DiskRestoreProperties.Builder setPhysicalBlockSizeBytes(long value)
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];
Parameter | |
---|---|
Name | Description |
value |
long The physicalBlockSizeBytes to set. |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
This builder for chaining. |
setProvisionedIops(long value)
public DiskRestoreProperties.Builder setProvisionedIops(long value)
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];
Parameter | |
---|---|
Name | Description |
value |
long The provisionedIops to set. |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
This builder for chaining. |
setProvisionedThroughput(long value)
public DiskRestoreProperties.Builder setProvisionedThroughput(long value)
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];
Parameter | |
---|---|
Name | Description |
value |
long The provisionedThroughput to set. |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DiskRestoreProperties.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
setResourcePolicy(int index, String value)
public DiskRestoreProperties.Builder setResourcePolicy(int index, String value)
Optional. Resource policies applied to this disk.
repeated string resource_policy = 15 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int The index to set the value at. |
value |
String The resourcePolicy to set. |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
This builder for chaining. |
setSizeGb(long value)
public DiskRestoreProperties.Builder setSizeGb(long value)
Required. The size of the disk in GB.
optional int64 size_gb = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
long The sizeGb to set. |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
This builder for chaining. |
setStoragePool(String value)
public DiskRestoreProperties.Builder setStoragePool(String value)
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) = { ... }
Parameter | |
---|---|
Name | Description |
value |
String The storagePool to set. |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
This builder for chaining. |
setStoragePoolBytes(ByteString value)
public DiskRestoreProperties.Builder setStoragePoolBytes(ByteString value)
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) = { ... }
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for storagePool to set. |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
This builder for chaining. |
setType(String value)
public DiskRestoreProperties.Builder setType(String value)
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];
Parameter | |
---|---|
Name | Description |
value |
String The type to set. |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
This builder for chaining. |
setTypeBytes(ByteString value)
public DiskRestoreProperties.Builder setTypeBytes(ByteString value)
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];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for type to set. |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final DiskRestoreProperties.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
DiskRestoreProperties.Builder |