Class DiskPartition.Builder (0.4.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DiskPartition.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DiskPartition.Builder
Overrides

build()

public DiskPartition build()
Returns
TypeDescription
DiskPartition

buildPartial()

public DiskPartition buildPartial()
Returns
TypeDescription
DiskPartition

clear()

public DiskPartition.Builder clear()
Returns
TypeDescription
DiskPartition.Builder
Overrides

clearCapacityBytes()

public DiskPartition.Builder clearCapacityBytes()

Partition capacity.

int64 capacity_bytes = 4;

Returns
TypeDescription
DiskPartition.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DiskPartition.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DiskPartition.Builder
Overrides

clearFileSystem()

public DiskPartition.Builder clearFileSystem()

Partition file system.

string file_system = 2;

Returns
TypeDescription
DiskPartition.Builder

This builder for chaining.

clearFreeBytes()

public DiskPartition.Builder clearFreeBytes()

Partition free space.

int64 free_bytes = 5;

Returns
TypeDescription
DiskPartition.Builder

This builder for chaining.

clearMountPoint()

public DiskPartition.Builder clearMountPoint()

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

string mount_point = 3;

Returns
TypeDescription
DiskPartition.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DiskPartition.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DiskPartition.Builder
Overrides

clearSubPartitions()

public DiskPartition.Builder clearSubPartitions()

Sub-partitions.

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

Returns
TypeDescription
DiskPartition.Builder

clearType()

public DiskPartition.Builder clearType()

Partition type.

string type = 1;

Returns
TypeDescription
DiskPartition.Builder

This builder for chaining.

clearUuid()

public DiskPartition.Builder clearUuid()

Partition UUID.

string uuid = 6;

Returns
TypeDescription
DiskPartition.Builder

This builder for chaining.

clone()

public DiskPartition.Builder clone()
Returns
TypeDescription
DiskPartition.Builder
Overrides

getCapacityBytes()

public long getCapacityBytes()

Partition capacity.

int64 capacity_bytes = 4;

Returns
TypeDescription
long

The capacityBytes.

getDefaultInstanceForType()

public DiskPartition getDefaultInstanceForType()
Returns
TypeDescription
DiskPartition

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

getSubPartitions()

public DiskPartitionList getSubPartitions()

Sub-partitions.

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

Returns
TypeDescription
DiskPartitionList

The subPartitions.

getSubPartitionsBuilder()

public DiskPartitionList.Builder getSubPartitionsBuilder()

Sub-partitions.

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

Returns
TypeDescription
DiskPartitionList.Builder

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DiskPartition other)

public DiskPartition.Builder mergeFrom(DiskPartition other)
Parameter
NameDescription
otherDiskPartition
Returns
TypeDescription
DiskPartition.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DiskPartition.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DiskPartition.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DiskPartition.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DiskPartition.Builder
Overrides

mergeSubPartitions(DiskPartitionList value)

public DiskPartition.Builder mergeSubPartitions(DiskPartitionList value)

Sub-partitions.

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

Parameter
NameDescription
valueDiskPartitionList
Returns
TypeDescription
DiskPartition.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DiskPartition.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DiskPartition.Builder
Overrides

setCapacityBytes(long value)

public DiskPartition.Builder setCapacityBytes(long value)

Partition capacity.

int64 capacity_bytes = 4;

Parameter
NameDescription
valuelong

The capacityBytes to set.

Returns
TypeDescription
DiskPartition.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DiskPartition.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DiskPartition.Builder
Overrides

setFileSystem(String value)

public DiskPartition.Builder setFileSystem(String value)

Partition file system.

string file_system = 2;

Parameter
NameDescription
valueString

The fileSystem to set.

Returns
TypeDescription
DiskPartition.Builder

This builder for chaining.

setFileSystemBytes(ByteString value)

public DiskPartition.Builder setFileSystemBytes(ByteString value)

Partition file system.

string file_system = 2;

Parameter
NameDescription
valueByteString

The bytes for fileSystem to set.

Returns
TypeDescription
DiskPartition.Builder

This builder for chaining.

setFreeBytes(long value)

public DiskPartition.Builder setFreeBytes(long value)

Partition free space.

int64 free_bytes = 5;

Parameter
NameDescription
valuelong

The freeBytes to set.

Returns
TypeDescription
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
NameDescription
valueString

The mountPoint to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for mountPoint to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DiskPartition.Builder
Overrides

setSubPartitions(DiskPartitionList value)

public DiskPartition.Builder setSubPartitions(DiskPartitionList value)

Sub-partitions.

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

Parameter
NameDescription
valueDiskPartitionList
Returns
TypeDescription
DiskPartition.Builder

setSubPartitions(DiskPartitionList.Builder builderForValue)

public DiskPartition.Builder setSubPartitions(DiskPartitionList.Builder builderForValue)

Sub-partitions.

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

Parameter
NameDescription
builderForValueDiskPartitionList.Builder
Returns
TypeDescription
DiskPartition.Builder

setType(String value)

public DiskPartition.Builder setType(String value)

Partition type.

string type = 1;

Parameter
NameDescription
valueString

The type to set.

Returns
TypeDescription
DiskPartition.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public DiskPartition.Builder setTypeBytes(ByteString value)

Partition type.

string type = 1;

Parameter
NameDescription
valueByteString

The bytes for type to set.

Returns
TypeDescription
DiskPartition.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final DiskPartition.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DiskPartition.Builder
Overrides

setUuid(String value)

public DiskPartition.Builder setUuid(String value)

Partition UUID.

string uuid = 6;

Parameter
NameDescription
valueString

The uuid to set.

Returns
TypeDescription
DiskPartition.Builder

This builder for chaining.

setUuidBytes(ByteString value)

public DiskPartition.Builder setUuidBytes(ByteString value)

Partition UUID.

string uuid = 6;

Parameter
NameDescription
valueByteString

The bytes for uuid to set.

Returns
TypeDescription
DiskPartition.Builder

This builder for chaining.