Class DiskBackupProperties (0.58.0)

public final class DiskBackupProperties extends GeneratedMessage implements DiskBackupPropertiesOrBuilder

DiskBackupProperties represents the properties of a Disk backup.

Protobuf type google.cloud.backupdr.v1beta.DiskBackupProperties

Static 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

ENABLE_CONFIDENTIAL_COMPUTE_FIELD_NUMBER

public static final int ENABLE_CONFIDENTIAL_COMPUTE_FIELD_NUMBER
Field Value
Type Description
int

GUEST_FLUSH_FIELD_NUMBER

public static final int GUEST_FLUSH_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

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

REGION_FIELD_NUMBER

public static final int REGION_FIELD_NUMBER
Field Value
Type Description
int

REPLICA_ZONES_FIELD_NUMBER

public static final int REPLICA_ZONES_FIELD_NUMBER
Field Value
Type Description
int

SIZE_GB_FIELD_NUMBER

public static final int SIZE_GB_FIELD_NUMBER
Field Value
Type Description
int

SOURCE_DISK_FIELD_NUMBER

public static final int SOURCE_DISK_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

ZONE_FIELD_NUMBER

public static final int ZONE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DiskBackupProperties getDefaultInstance()
Returns
Type Description
DiskBackupProperties

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static DiskBackupProperties.Builder newBuilder()
Returns
Type Description
DiskBackupProperties.Builder

newBuilder(DiskBackupProperties prototype)

public static DiskBackupProperties.Builder newBuilder(DiskBackupProperties prototype)
Parameter
Name Description
prototype DiskBackupProperties
Returns
Type Description
DiskBackupProperties.Builder

parseDelimitedFrom(InputStream input)

public static DiskBackupProperties parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DiskBackupProperties
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DiskBackupProperties parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiskBackupProperties
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static DiskBackupProperties parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
DiskBackupProperties
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DiskBackupProperties parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiskBackupProperties
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DiskBackupProperties parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
DiskBackupProperties
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DiskBackupProperties parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiskBackupProperties
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DiskBackupProperties parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
DiskBackupProperties
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DiskBackupProperties parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiskBackupProperties
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static DiskBackupProperties parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DiskBackupProperties
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DiskBackupProperties parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiskBackupProperties
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static DiskBackupProperties parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
DiskBackupProperties
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DiskBackupProperties parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiskBackupProperties
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<DiskBackupProperties> parser()
Returns
Type Description
Parser<DiskBackupProperties>

Methods

containsLabels(String key)

public boolean containsLabels(String key)

The labels of the source disk.

map<string, string> labels = 17;

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
Overrides

getAccessMode()

public String getAccessMode()

The access mode of the source disk.

optional string access_mode = 11;

Returns
Type Description
String

The accessMode.

getAccessModeBytes()

public ByteString getAccessModeBytes()

The access mode of the source disk.

optional string access_mode = 11;

Returns
Type Description
ByteString

The bytes for accessMode.

getArchitecture()

public DiskBackupProperties.Architecture getArchitecture()

The architecture of the source disk. Valid values are ARM64 or X86_64.

optional .google.cloud.backupdr.v1beta.DiskBackupProperties.Architecture architecture = 4;

Returns
Type Description
DiskBackupProperties.Architecture

The architecture.

getArchitectureValue()

public int getArchitectureValue()

The architecture of the source disk. Valid values are ARM64 or X86_64.

optional .google.cloud.backupdr.v1beta.DiskBackupProperties.Architecture architecture = 4;

Returns
Type Description
int

The enum numeric value on the wire for architecture.

getDefaultInstanceForType()

public DiskBackupProperties getDefaultInstanceForType()
Returns
Type Description
DiskBackupProperties

getDescription()

public String getDescription()

A description of the source disk.

optional string description = 1;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

A description of the source disk.

optional string description = 1;

Returns
Type Description
ByteString

The bytes for description.

getEnableConfidentialCompute()

public boolean getEnableConfidentialCompute()

Indicates whether the source disk is using confidential compute mode.

optional bool enable_confidential_compute = 15;

Returns
Type Description
boolean

The enableConfidentialCompute.

getGuestFlush()

public boolean getGuestFlush()

Optional. Defines if the guest flush is enabled for the source disk. Default value is false.

bool guest_flush = 18 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The guestFlush.

getGuestOsFeature(int index)

public GuestOsFeature getGuestOsFeature(int index)

A list of guest OS features that are applicable to this backup.

repeated .google.cloud.backupdr.v1beta.GuestOsFeature guest_os_feature = 3;

Parameter
Name Description
index int
Returns
Type Description
GuestOsFeature

getGuestOsFeatureCount()

public int getGuestOsFeatureCount()

A list of guest OS features that are applicable to this backup.

repeated .google.cloud.backupdr.v1beta.GuestOsFeature guest_os_feature = 3;

Returns
Type Description
int

getGuestOsFeatureList()

public List<GuestOsFeature> getGuestOsFeatureList()

A list of guest OS features that are applicable to this backup.

repeated .google.cloud.backupdr.v1beta.GuestOsFeature guest_os_feature = 3;

Returns
Type Description
List<GuestOsFeature>

getGuestOsFeatureOrBuilder(int index)

public GuestOsFeatureOrBuilder getGuestOsFeatureOrBuilder(int index)

A list of guest OS features that are applicable to this backup.

repeated .google.cloud.backupdr.v1beta.GuestOsFeature guest_os_feature = 3;

Parameter
Name Description
index int
Returns
Type Description
GuestOsFeatureOrBuilder

getGuestOsFeatureOrBuilderList()

public List<? extends GuestOsFeatureOrBuilder> getGuestOsFeatureOrBuilderList()

A list of guest OS features that are applicable to this backup.

repeated .google.cloud.backupdr.v1beta.GuestOsFeature guest_os_feature = 3;

Returns
Type Description
List<? extends com.google.cloud.backupdr.v1beta.GuestOsFeatureOrBuilder>

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

The labels of the source disk.

map<string, string> labels = 17;

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

The labels of the source disk.

map<string, string> labels = 17;

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

The labels of the source disk.

map<string, string> labels = 17;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

The labels of the source disk.

map<string, string> labels = 17;

Parameter
Name Description
key String
Returns
Type Description
String

getLicenses(int index)

public String getLicenses(int index)

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 = 2;

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)

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 = 2;

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

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 = 2;

Returns
Type Description
int

The count of licenses.

getLicensesList()

public ProtocolStringList getLicensesList()

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 = 2;

Returns
Type Description
ProtocolStringList

A list containing the licenses.

getParserForType()

public Parser<DiskBackupProperties> getParserForType()
Returns
Type Description
Parser<DiskBackupProperties>
Overrides

getPhysicalBlockSizeBytes()

public long getPhysicalBlockSizeBytes()

The physical block size of the source disk.

optional int64 physical_block_size_bytes = 14;

Returns
Type Description
long

The physicalBlockSizeBytes.

getProvisionedIops()

public long getProvisionedIops()

The number of IOPS provisioned for the source disk.

optional int64 provisioned_iops = 12;

Returns
Type Description
long

The provisionedIops.

getProvisionedThroughput()

public long getProvisionedThroughput()

The number of throughput provisioned for the source disk.

optional int64 provisioned_throughput = 13;

Returns
Type Description
long

The provisionedThroughput.

getRegion()

public String getRegion()

Region and zone are mutually exclusive fields. The URL of the region of the source disk.

optional string region = 7;

Returns
Type Description
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

Region and zone are mutually exclusive fields. The URL of the region of the source disk.

optional string region = 7;

Returns
Type Description
ByteString

The bytes for region.

getReplicaZones(int index)

public String getReplicaZones(int index)

The URL of the Zones where the source disk should be replicated.

repeated string replica_zones = 9;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The replicaZones at the given index.

getReplicaZonesBytes(int index)

public ByteString getReplicaZonesBytes(int index)

The URL of the Zones where the source disk should be replicated.

repeated string replica_zones = 9;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the replicaZones at the given index.

getReplicaZonesCount()

public int getReplicaZonesCount()

The URL of the Zones where the source disk should be replicated.

repeated string replica_zones = 9;

Returns
Type Description
int

The count of replicaZones.

getReplicaZonesList()

public ProtocolStringList getReplicaZonesList()

The URL of the Zones where the source disk should be replicated.

repeated string replica_zones = 9;

Returns
Type Description
ProtocolStringList

A list containing the replicaZones.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSizeGb()

public long getSizeGb()

Size(in GB) of the source disk.

optional int64 size_gb = 6;

Returns
Type Description
long

The sizeGb.

getSourceDisk()

public String getSourceDisk()

The source disk used to create this backup.

optional string source_disk = 10;

Returns
Type Description
String

The sourceDisk.

getSourceDiskBytes()

public ByteString getSourceDiskBytes()

The source disk used to create this backup.

optional string source_disk = 10;

Returns
Type Description
ByteString

The bytes for sourceDisk.

getStoragePool()

public String getStoragePool()

The storage pool of the source disk.

optional string storage_pool = 16;

Returns
Type Description
String

The storagePool.

getStoragePoolBytes()

public ByteString getStoragePoolBytes()

The storage pool of the source disk.

optional string storage_pool = 16;

Returns
Type Description
ByteString

The bytes for storagePool.

getType()

public String getType()

The URL of the type of the disk.

optional string type = 5;

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

The URL of the type of the disk.

optional string type = 5;

Returns
Type Description
ByteString

The bytes for type.

getZone()

public String getZone()

The URL of the Zone where the source disk.

optional string zone = 8;

Returns
Type Description
String

The zone.

getZoneBytes()

public ByteString getZoneBytes()

The URL of the Zone where the source disk.

optional string zone = 8;

Returns
Type Description
ByteString

The bytes for zone.

hasAccessMode()

public boolean hasAccessMode()

The access mode of the source disk.

optional string access_mode = 11;

Returns
Type Description
boolean

Whether the accessMode field is set.

hasArchitecture()

public boolean hasArchitecture()

The architecture of the source disk. Valid values are ARM64 or X86_64.

optional .google.cloud.backupdr.v1beta.DiskBackupProperties.Architecture architecture = 4;

Returns
Type Description
boolean

Whether the architecture field is set.

hasDescription()

public boolean hasDescription()

A description of the source disk.

optional string description = 1;

Returns
Type Description
boolean

Whether the description field is set.

hasEnableConfidentialCompute()

public boolean hasEnableConfidentialCompute()

Indicates whether the source disk is using confidential compute mode.

optional bool enable_confidential_compute = 15;

Returns
Type Description
boolean

Whether the enableConfidentialCompute field is set.

hasPhysicalBlockSizeBytes()

public boolean hasPhysicalBlockSizeBytes()

The physical block size of the source disk.

optional int64 physical_block_size_bytes = 14;

Returns
Type Description
boolean

Whether the physicalBlockSizeBytes field is set.

hasProvisionedIops()

public boolean hasProvisionedIops()

The number of IOPS provisioned for the source disk.

optional int64 provisioned_iops = 12;

Returns
Type Description
boolean

Whether the provisionedIops field is set.

hasProvisionedThroughput()

public boolean hasProvisionedThroughput()

The number of throughput provisioned for the source disk.

optional int64 provisioned_throughput = 13;

Returns
Type Description
boolean

Whether the provisionedThroughput field is set.

hasRegion()

public boolean hasRegion()

Region and zone are mutually exclusive fields. The URL of the region of the source disk.

optional string region = 7;

Returns
Type Description
boolean

Whether the region field is set.

hasSizeGb()

public boolean hasSizeGb()

Size(in GB) of the source disk.

optional int64 size_gb = 6;

Returns
Type Description
boolean

Whether the sizeGb field is set.

hasSourceDisk()

public boolean hasSourceDisk()

The source disk used to create this backup.

optional string source_disk = 10;

Returns
Type Description
boolean

Whether the sourceDisk field is set.

hasStoragePool()

public boolean hasStoragePool()

The storage pool of the source disk.

optional string storage_pool = 16;

Returns
Type Description
boolean

Whether the storagePool field is set.

hasType()

public boolean hasType()

The URL of the type of the disk.

optional string type = 5;

Returns
Type Description
boolean

Whether the type field is set.

hasZone()

public boolean hasZone()

The URL of the Zone where the source disk.

optional string zone = 8;

Returns
Type Description
boolean

Whether the zone field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public DiskBackupProperties.Builder newBuilderForType()
Returns
Type Description
DiskBackupProperties.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected DiskBackupProperties.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
DiskBackupProperties.Builder
Overrides

toBuilder()

public DiskBackupProperties.Builder toBuilder()
Returns
Type Description
DiskBackupProperties.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException