Class DiskBackupProperties (0.29.0)

public final class DiskBackupProperties extends GeneratedMessageV3 implements DiskBackupPropertiesOrBuilder

DiskBackupProperties represents the properties of a Disk backup.

Protobuf type google.cloud.backupdr.v1.DiskBackupProperties

Static Fields

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

GUEST_OS_FEATURE_FIELD_NUMBER

public static final int GUEST_OS_FEATURE_FIELD_NUMBER
Field Value
Type Description
int

LICENSES_FIELD_NUMBER

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

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

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getArchitecture()

public DiskBackupProperties.Architecture getArchitecture()

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

optional .google.cloud.backupdr.v1.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.v1.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.

getGuestOsFeature(int index)

public GuestOsFeature getGuestOsFeature(int index)

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

repeated .google.cloud.backupdr.v1.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.v1.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.v1.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.v1.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.v1.GuestOsFeature guest_os_feature = 3;

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

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

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.

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.

hasArchitecture()

public boolean hasArchitecture()

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

optional .google.cloud.backupdr.v1.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.

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.

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
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