Class DiskPartition (0.18.0)

public final class DiskPartition extends GeneratedMessageV3 implements DiskPartitionOrBuilder

Disk Partition details.

Protobuf type google.cloud.migrationcenter.v1.DiskPartition

Static Fields

CAPACITY_BYTES_FIELD_NUMBER

public static final int CAPACITY_BYTES_FIELD_NUMBER
Field Value
TypeDescription
int

FILE_SYSTEM_FIELD_NUMBER

public static final int FILE_SYSTEM_FIELD_NUMBER
Field Value
TypeDescription
int

FREE_BYTES_FIELD_NUMBER

public static final int FREE_BYTES_FIELD_NUMBER
Field Value
TypeDescription
int

MOUNT_POINT_FIELD_NUMBER

public static final int MOUNT_POINT_FIELD_NUMBER
Field Value
TypeDescription
int

SUB_PARTITIONS_FIELD_NUMBER

public static final int SUB_PARTITIONS_FIELD_NUMBER
Field Value
TypeDescription
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

UUID_FIELD_NUMBER

public static final int UUID_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static DiskPartition getDefaultInstance()
Returns
TypeDescription
DiskPartition

getDescriptor()

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

newBuilder()

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

newBuilder(DiskPartition prototype)

public static DiskPartition.Builder newBuilder(DiskPartition prototype)
Parameter
NameDescription
prototypeDiskPartition
Returns
TypeDescription
DiskPartition.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getCapacityBytes()

public long getCapacityBytes()

Partition capacity.

int64 capacity_bytes = 4;

Returns
TypeDescription
long

The capacityBytes.

getDefaultInstanceForType()

public DiskPartition getDefaultInstanceForType()
Returns
TypeDescription
DiskPartition

getFileSystem()

public String getFileSystem()

Partition file system.

string file_system = 2;

Returns
TypeDescription
String

The fileSystem.

getFileSystemBytes()

public ByteString getFileSystemBytes()

Partition file system.

string file_system = 2;

Returns
TypeDescription
ByteString

The bytes for fileSystem.

getFreeBytes()

public long getFreeBytes()

Partition free space.

int64 free_bytes = 5;

Returns
TypeDescription
long

The freeBytes.

getMountPoint()

public String getMountPoint()

Mount pount (Linux/Windows) or drive letter (Windows).

string mount_point = 3;

Returns
TypeDescription
String

The mountPoint.

getMountPointBytes()

public ByteString getMountPointBytes()

Mount pount (Linux/Windows) or drive letter (Windows).

string mount_point = 3;

Returns
TypeDescription
ByteString

The bytes for mountPoint.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSubPartitions()

public DiskPartitionList getSubPartitions()

Sub-partitions.

.google.cloud.migrationcenter.v1.DiskPartitionList sub_partitions = 7;

Returns
TypeDescription
DiskPartitionList

The subPartitions.

getSubPartitionsOrBuilder()

public DiskPartitionListOrBuilder getSubPartitionsOrBuilder()

Sub-partitions.

.google.cloud.migrationcenter.v1.DiskPartitionList sub_partitions = 7;

Returns
TypeDescription
DiskPartitionListOrBuilder

getType()

public String getType()

Partition type.

string type = 1;

Returns
TypeDescription
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

Partition type.

string type = 1;

Returns
TypeDescription
ByteString

The bytes for type.

getUuid()

public String getUuid()

Partition UUID.

string uuid = 6;

Returns
TypeDescription
String

The uuid.

getUuidBytes()

public ByteString getUuidBytes()

Partition UUID.

string uuid = 6;

Returns
TypeDescription
ByteString

The bytes for uuid.

hasSubPartitions()

public boolean hasSubPartitions()

Sub-partitions.

.google.cloud.migrationcenter.v1.DiskPartitionList sub_partitions = 7;

Returns
TypeDescription
boolean

Whether the subPartitions 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 DiskPartition.Builder newBuilderForType()
Returns
TypeDescription
DiskPartition.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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