Class DiskEntry (0.6.0)

public final class DiskEntry extends GeneratedMessageV3 implements DiskEntryOrBuilder

Single disk entry.

Protobuf type google.cloud.migrationcenter.v1.DiskEntry

Implements

DiskEntryOrBuilder

Static Fields

CAPACITY_BYTES_FIELD_NUMBER

public static final int CAPACITY_BYTES_FIELD_NUMBER
Field Value
TypeDescription
int

DISK_LABEL_FIELD_NUMBER

public static final int DISK_LABEL_FIELD_NUMBER
Field Value
TypeDescription
int

DISK_LABEL_TYPE_FIELD_NUMBER

public static final int DISK_LABEL_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

FREE_BYTES_FIELD_NUMBER

public static final int FREE_BYTES_FIELD_NUMBER
Field Value
TypeDescription
int

HW_ADDRESS_FIELD_NUMBER

public static final int HW_ADDRESS_FIELD_NUMBER
Field Value
TypeDescription
int

INTERFACE_TYPE_FIELD_NUMBER

public static final int INTERFACE_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

PARTITIONS_FIELD_NUMBER

public static final int PARTITIONS_FIELD_NUMBER
Field Value
TypeDescription
int

VMWARE_FIELD_NUMBER

public static final int VMWARE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static DiskEntry getDefaultInstance()
Returns
TypeDescription
DiskEntry

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static DiskEntry.Builder newBuilder()
Returns
TypeDescription
DiskEntry.Builder

newBuilder(DiskEntry prototype)

public static DiskEntry.Builder newBuilder(DiskEntry prototype)
Parameter
NameDescription
prototypeDiskEntry
Returns
TypeDescription
DiskEntry.Builder

parseDelimitedFrom(InputStream input)

public static DiskEntry parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DiskEntry
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DiskEntry parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DiskEntry
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static DiskEntry parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
DiskEntry
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DiskEntry parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DiskEntry
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DiskEntry parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
DiskEntry
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DiskEntry parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DiskEntry
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DiskEntry parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
DiskEntry
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DiskEntry parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DiskEntry
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static DiskEntry parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DiskEntry
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DiskEntry parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DiskEntry
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static DiskEntry parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
DiskEntry
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DiskEntry parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DiskEntry
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<DiskEntry> parser()
Returns
TypeDescription
Parser<DiskEntry>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCapacityBytes()

public long getCapacityBytes()

Disk capacity.

int64 capacity_bytes = 1;

Returns
TypeDescription
long

The capacityBytes.

getDefaultInstanceForType()

public DiskEntry getDefaultInstanceForType()
Returns
TypeDescription
DiskEntry

getDiskLabel()

public String getDiskLabel()

Disk label.

string disk_label = 3;

Returns
TypeDescription
String

The diskLabel.

getDiskLabelBytes()

public ByteString getDiskLabelBytes()

Disk label.

string disk_label = 3;

Returns
TypeDescription
ByteString

The bytes for diskLabel.

getDiskLabelType()

public String getDiskLabelType()

Disk label type (e.g. BIOS/GPT)

string disk_label_type = 4;

Returns
TypeDescription
String

The diskLabelType.

getDiskLabelTypeBytes()

public ByteString getDiskLabelTypeBytes()

Disk label type (e.g. BIOS/GPT)

string disk_label_type = 4;

Returns
TypeDescription
ByteString

The bytes for diskLabelType.

getFreeBytes()

public long getFreeBytes()

Disk free space.

int64 free_bytes = 2;

Returns
TypeDescription
long

The freeBytes.

getHwAddress()

public String getHwAddress()

Disk hardware address (e.g. 0:1 for SCSI).

string hw_address = 7;

Returns
TypeDescription
String

The hwAddress.

getHwAddressBytes()

public ByteString getHwAddressBytes()

Disk hardware address (e.g. 0:1 for SCSI).

string hw_address = 7;

Returns
TypeDescription
ByteString

The bytes for hwAddress.

getInterfaceType()

public DiskEntry.InterfaceType getInterfaceType()

Disks interface type.

.google.cloud.migrationcenter.v1.DiskEntry.InterfaceType interface_type = 5;

Returns
TypeDescription
DiskEntry.InterfaceType

The interfaceType.

getInterfaceTypeValue()

public int getInterfaceTypeValue()

Disks interface type.

.google.cloud.migrationcenter.v1.DiskEntry.InterfaceType interface_type = 5;

Returns
TypeDescription
int

The enum numeric value on the wire for interfaceType.

getParserForType()

public Parser<DiskEntry> getParserForType()
Returns
TypeDescription
Parser<DiskEntry>
Overrides

getPartitions()

public DiskPartitionList getPartitions()

Partition layout.

.google.cloud.migrationcenter.v1.DiskPartitionList partitions = 6;

Returns
TypeDescription
DiskPartitionList

The partitions.

getPartitionsOrBuilder()

public DiskPartitionListOrBuilder getPartitionsOrBuilder()

Partition layout.

.google.cloud.migrationcenter.v1.DiskPartitionList partitions = 6;

Returns
TypeDescription
DiskPartitionListOrBuilder

getPlatformSpecificCase()

public DiskEntry.PlatformSpecificCase getPlatformSpecificCase()
Returns
TypeDescription
DiskEntry.PlatformSpecificCase

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getVmware()

public VmwareDiskConfig getVmware()

VMware disk details.

.google.cloud.migrationcenter.v1.VmwareDiskConfig vmware = 20;

Returns
TypeDescription
VmwareDiskConfig

The vmware.

getVmwareOrBuilder()

public VmwareDiskConfigOrBuilder getVmwareOrBuilder()

VMware disk details.

.google.cloud.migrationcenter.v1.VmwareDiskConfig vmware = 20;

Returns
TypeDescription
VmwareDiskConfigOrBuilder

hasPartitions()

public boolean hasPartitions()

Partition layout.

.google.cloud.migrationcenter.v1.DiskPartitionList partitions = 6;

Returns
TypeDescription
boolean

Whether the partitions field is set.

hasVmware()

public boolean hasVmware()

VMware disk details.

.google.cloud.migrationcenter.v1.VmwareDiskConfig vmware = 20;

Returns
TypeDescription
boolean

Whether the vmware field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public DiskEntry.Builder newBuilderForType()
Returns
TypeDescription
DiskEntry.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected DiskEntry.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
DiskEntry.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public DiskEntry.Builder toBuilder()
Returns
TypeDescription
DiskEntry.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException