Class DiskPartition.Builder (0.36.0)

public static final class DiskPartition.Builder extends GeneratedMessageV3.Builder<DiskPartition.Builder> implements DiskPartitionOrBuilder

Disk Partition details.

Protobuf type google.cloud.migrationcenter.v1.DiskPartition

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DiskPartition.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DiskPartition.Builder
Overrides

build()

public DiskPartition build()
Returns
Type Description
DiskPartition

buildPartial()

public DiskPartition buildPartial()
Returns
Type Description
DiskPartition

clear()

public DiskPartition.Builder clear()
Returns
Type Description
DiskPartition.Builder
Overrides

clearCapacityBytes()

public DiskPartition.Builder clearCapacityBytes()

Partition capacity.

int64 capacity_bytes = 4;

Returns
Type Description
DiskPartition.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DiskPartition.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DiskPartition.Builder
Overrides

clearFileSystem()

public DiskPartition.Builder clearFileSystem()

Partition file system.

string file_system = 2;

Returns
Type Description
DiskPartition.Builder

This builder for chaining.

clearFreeBytes()

public DiskPartition.Builder clearFreeBytes()

Partition free space.

int64 free_bytes = 5;

Returns
Type Description
DiskPartition.Builder

This builder for chaining.

clearMountPoint()

public DiskPartition.Builder clearMountPoint()

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

string mount_point = 3;

Returns
Type Description
DiskPartition.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DiskPartition.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DiskPartition.Builder
Overrides

clearSubPartitions()

public DiskPartition.Builder clearSubPartitions()

Sub-partitions.

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

Returns
Type Description
DiskPartition.Builder

clearType()

public DiskPartition.Builder clearType()

Partition type.

string type = 1;

Returns
Type Description
DiskPartition.Builder

This builder for chaining.

clearUuid()

public DiskPartition.Builder clearUuid()

Partition UUID.

string uuid = 6;

Returns
Type Description
DiskPartition.Builder

This builder for chaining.

clone()

public DiskPartition.Builder clone()
Returns
Type Description
DiskPartition.Builder
Overrides

getCapacityBytes()

public long getCapacityBytes()

Partition capacity.

int64 capacity_bytes = 4;

Returns
Type Description
long

The capacityBytes.

getDefaultInstanceForType()

public DiskPartition getDefaultInstanceForType()
Returns
Type Description
DiskPartition

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFileSystem()

public String getFileSystem()

Partition file system.

string file_system = 2;

Returns
Type Description
String

The fileSystem.

getFileSystemBytes()

public ByteString getFileSystemBytes()

Partition file system.

string file_system = 2;

Returns
Type Description
ByteString

The bytes for fileSystem.

getFreeBytes()

public long getFreeBytes()

Partition free space.

int64 free_bytes = 5;

Returns
Type Description
long

The freeBytes.

getMountPoint()

public String getMountPoint()

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

string mount_point = 3;

Returns
Type Description
String

The mountPoint.

getMountPointBytes()

public ByteString getMountPointBytes()

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

string mount_point = 3;

Returns
Type Description
ByteString

The bytes for mountPoint.

getSubPartitions()

public DiskPartitionList getSubPartitions()

Sub-partitions.

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

Returns
Type Description
DiskPartitionList

The subPartitions.

getSubPartitionsBuilder()

public DiskPartitionList.Builder getSubPartitionsBuilder()

Sub-partitions.

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

Returns
Type Description
DiskPartitionList.Builder

getSubPartitionsOrBuilder()

public DiskPartitionListOrBuilder getSubPartitionsOrBuilder()

Sub-partitions.

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

Returns
Type Description
DiskPartitionListOrBuilder

getType()

public String getType()

Partition type.

string type = 1;

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

Partition type.

string type = 1;

Returns
Type Description
ByteString

The bytes for type.

getUuid()

public String getUuid()

Partition UUID.

string uuid = 6;

Returns
Type Description
String

The uuid.

getUuidBytes()

public ByteString getUuidBytes()

Partition UUID.

string uuid = 6;

Returns
Type Description
ByteString

The bytes for uuid.

hasSubPartitions()

public boolean hasSubPartitions()

Sub-partitions.

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

Returns
Type Description
boolean

Whether the subPartitions field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DiskPartition other)

public DiskPartition.Builder mergeFrom(DiskPartition other)
Parameter
Name Description
other DiskPartition
Returns
Type Description
DiskPartition.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DiskPartition.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiskPartition.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DiskPartition.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DiskPartition.Builder
Overrides

mergeSubPartitions(DiskPartitionList value)

public DiskPartition.Builder mergeSubPartitions(DiskPartitionList value)

Sub-partitions.

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

Parameter
Name Description
value DiskPartitionList
Returns
Type Description
DiskPartition.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DiskPartition.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DiskPartition.Builder
Overrides

setCapacityBytes(long value)

public DiskPartition.Builder setCapacityBytes(long value)

Partition capacity.

int64 capacity_bytes = 4;

Parameter
Name Description
value long

The capacityBytes to set.

Returns
Type Description
DiskPartition.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DiskPartition.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DiskPartition.Builder
Overrides

setFileSystem(String value)

public DiskPartition.Builder setFileSystem(String value)

Partition file system.

string file_system = 2;

Parameter
Name Description
value String

The fileSystem to set.

Returns
Type Description
DiskPartition.Builder

This builder for chaining.

setFileSystemBytes(ByteString value)

public DiskPartition.Builder setFileSystemBytes(ByteString value)

Partition file system.

string file_system = 2;

Parameter
Name Description
value ByteString

The bytes for fileSystem to set.

Returns
Type Description
DiskPartition.Builder

This builder for chaining.

setFreeBytes(long value)

public DiskPartition.Builder setFreeBytes(long value)

Partition free space.

int64 free_bytes = 5;

Parameter
Name Description
value long

The freeBytes to set.

Returns
Type Description
DiskPartition.Builder

This builder for chaining.

setMountPoint(String value)

public DiskPartition.Builder setMountPoint(String value)

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

string mount_point = 3;

Parameter
Name Description
value String

The mountPoint to set.

Returns
Type Description
DiskPartition.Builder

This builder for chaining.

setMountPointBytes(ByteString value)

public DiskPartition.Builder setMountPointBytes(ByteString value)

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

string mount_point = 3;

Parameter
Name Description
value ByteString

The bytes for mountPoint to set.

Returns
Type Description
DiskPartition.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DiskPartition.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DiskPartition.Builder
Overrides

setSubPartitions(DiskPartitionList value)

public DiskPartition.Builder setSubPartitions(DiskPartitionList value)

Sub-partitions.

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

Parameter
Name Description
value DiskPartitionList
Returns
Type Description
DiskPartition.Builder

setSubPartitions(DiskPartitionList.Builder builderForValue)

public DiskPartition.Builder setSubPartitions(DiskPartitionList.Builder builderForValue)

Sub-partitions.

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

Parameter
Name Description
builderForValue DiskPartitionList.Builder
Returns
Type Description
DiskPartition.Builder

setType(String value)

public DiskPartition.Builder setType(String value)

Partition type.

string type = 1;

Parameter
Name Description
value String

The type to set.

Returns
Type Description
DiskPartition.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public DiskPartition.Builder setTypeBytes(ByteString value)

Partition type.

string type = 1;

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
DiskPartition.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final DiskPartition.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DiskPartition.Builder
Overrides

setUuid(String value)

public DiskPartition.Builder setUuid(String value)

Partition UUID.

string uuid = 6;

Parameter
Name Description
value String

The uuid to set.

Returns
Type Description
DiskPartition.Builder

This builder for chaining.

setUuidBytes(ByteString value)

public DiskPartition.Builder setUuidBytes(ByteString value)

Partition UUID.

string uuid = 6;

Parameter
Name Description
value ByteString

The bytes for uuid to set.

Returns
Type Description
DiskPartition.Builder

This builder for chaining.