Class DiskEntry.Builder (0.37.0)

public static final class DiskEntry.Builder extends GeneratedMessageV3.Builder<DiskEntry.Builder> implements DiskEntryOrBuilder

Single disk entry.

Protobuf type google.cloud.migrationcenter.v1.DiskEntry

Implements

DiskEntryOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DiskEntry build()
Returns
Type Description
DiskEntry

buildPartial()

public DiskEntry buildPartial()
Returns
Type Description
DiskEntry

clear()

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

clearCapacityBytes()

public DiskEntry.Builder clearCapacityBytes()

Disk capacity.

int64 capacity_bytes = 1;

Returns
Type Description
DiskEntry.Builder

This builder for chaining.

clearDiskLabel()

public DiskEntry.Builder clearDiskLabel()

Disk label.

string disk_label = 3;

Returns
Type Description
DiskEntry.Builder

This builder for chaining.

clearDiskLabelType()

public DiskEntry.Builder clearDiskLabelType()

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

string disk_label_type = 4;

Returns
Type Description
DiskEntry.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearFreeBytes()

public DiskEntry.Builder clearFreeBytes()

Disk free space.

int64 free_bytes = 2;

Returns
Type Description
DiskEntry.Builder

This builder for chaining.

clearHwAddress()

public DiskEntry.Builder clearHwAddress()

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

string hw_address = 7;

Returns
Type Description
DiskEntry.Builder

This builder for chaining.

clearInterfaceType()

public DiskEntry.Builder clearInterfaceType()

Disks interface type.

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

Returns
Type Description
DiskEntry.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPartitions()

public DiskEntry.Builder clearPartitions()

Partition layout.

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

Returns
Type Description
DiskEntry.Builder

clearPlatformSpecific()

public DiskEntry.Builder clearPlatformSpecific()
Returns
Type Description
DiskEntry.Builder

clearVmware()

public DiskEntry.Builder clearVmware()

VMware disk details.

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

Returns
Type Description
DiskEntry.Builder

clone()

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

getCapacityBytes()

public long getCapacityBytes()

Disk capacity.

int64 capacity_bytes = 1;

Returns
Type Description
long

The capacityBytes.

getDefaultInstanceForType()

public DiskEntry getDefaultInstanceForType()
Returns
Type Description
DiskEntry

getDescriptorForType()

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

getDiskLabel()

public String getDiskLabel()

Disk label.

string disk_label = 3;

Returns
Type Description
String

The diskLabel.

getDiskLabelBytes()

public ByteString getDiskLabelBytes()

Disk label.

string disk_label = 3;

Returns
Type Description
ByteString

The bytes for diskLabel.

getDiskLabelType()

public String getDiskLabelType()

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

string disk_label_type = 4;

Returns
Type Description
String

The diskLabelType.

getDiskLabelTypeBytes()

public ByteString getDiskLabelTypeBytes()

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

string disk_label_type = 4;

Returns
Type Description
ByteString

The bytes for diskLabelType.

getFreeBytes()

public long getFreeBytes()

Disk free space.

int64 free_bytes = 2;

Returns
Type Description
long

The freeBytes.

getHwAddress()

public String getHwAddress()

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

string hw_address = 7;

Returns
Type Description
String

The hwAddress.

getHwAddressBytes()

public ByteString getHwAddressBytes()

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

string hw_address = 7;

Returns
Type Description
ByteString

The bytes for hwAddress.

getInterfaceType()

public DiskEntry.InterfaceType getInterfaceType()

Disks interface type.

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

Returns
Type Description
DiskEntry.InterfaceType

The interfaceType.

getInterfaceTypeValue()

public int getInterfaceTypeValue()

Disks interface type.

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

Returns
Type Description
int

The enum numeric value on the wire for interfaceType.

getPartitions()

public DiskPartitionList getPartitions()

Partition layout.

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

Returns
Type Description
DiskPartitionList

The partitions.

getPartitionsBuilder()

public DiskPartitionList.Builder getPartitionsBuilder()

Partition layout.

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

Returns
Type Description
DiskPartitionList.Builder

getPartitionsOrBuilder()

public DiskPartitionListOrBuilder getPartitionsOrBuilder()

Partition layout.

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

Returns
Type Description
DiskPartitionListOrBuilder

getPlatformSpecificCase()

public DiskEntry.PlatformSpecificCase getPlatformSpecificCase()
Returns
Type Description
DiskEntry.PlatformSpecificCase

getVmware()

public VmwareDiskConfig getVmware()

VMware disk details.

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

Returns
Type Description
VmwareDiskConfig

The vmware.

getVmwareBuilder()

public VmwareDiskConfig.Builder getVmwareBuilder()

VMware disk details.

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

Returns
Type Description
VmwareDiskConfig.Builder

getVmwareOrBuilder()

public VmwareDiskConfigOrBuilder getVmwareOrBuilder()

VMware disk details.

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

Returns
Type Description
VmwareDiskConfigOrBuilder

hasPartitions()

public boolean hasPartitions()

Partition layout.

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

Returns
Type Description
boolean

Whether the partitions field is set.

hasVmware()

public boolean hasVmware()

VMware disk details.

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

Returns
Type Description
boolean

Whether the vmware field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DiskEntry other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePartitions(DiskPartitionList value)

public DiskEntry.Builder mergePartitions(DiskPartitionList value)

Partition layout.

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

Parameter
Name Description
value DiskPartitionList
Returns
Type Description
DiskEntry.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeVmware(VmwareDiskConfig value)

public DiskEntry.Builder mergeVmware(VmwareDiskConfig value)

VMware disk details.

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

Parameter
Name Description
value VmwareDiskConfig
Returns
Type Description
DiskEntry.Builder

setCapacityBytes(long value)

public DiskEntry.Builder setCapacityBytes(long value)

Disk capacity.

int64 capacity_bytes = 1;

Parameter
Name Description
value long

The capacityBytes to set.

Returns
Type Description
DiskEntry.Builder

This builder for chaining.

setDiskLabel(String value)

public DiskEntry.Builder setDiskLabel(String value)

Disk label.

string disk_label = 3;

Parameter
Name Description
value String

The diskLabel to set.

Returns
Type Description
DiskEntry.Builder

This builder for chaining.

setDiskLabelBytes(ByteString value)

public DiskEntry.Builder setDiskLabelBytes(ByteString value)

Disk label.

string disk_label = 3;

Parameter
Name Description
value ByteString

The bytes for diskLabel to set.

Returns
Type Description
DiskEntry.Builder

This builder for chaining.

setDiskLabelType(String value)

public DiskEntry.Builder setDiskLabelType(String value)

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

string disk_label_type = 4;

Parameter
Name Description
value String

The diskLabelType to set.

Returns
Type Description
DiskEntry.Builder

This builder for chaining.

setDiskLabelTypeBytes(ByteString value)

public DiskEntry.Builder setDiskLabelTypeBytes(ByteString value)

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

string disk_label_type = 4;

Parameter
Name Description
value ByteString

The bytes for diskLabelType to set.

Returns
Type Description
DiskEntry.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setFreeBytes(long value)

public DiskEntry.Builder setFreeBytes(long value)

Disk free space.

int64 free_bytes = 2;

Parameter
Name Description
value long

The freeBytes to set.

Returns
Type Description
DiskEntry.Builder

This builder for chaining.

setHwAddress(String value)

public DiskEntry.Builder setHwAddress(String value)

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

string hw_address = 7;

Parameter
Name Description
value String

The hwAddress to set.

Returns
Type Description
DiskEntry.Builder

This builder for chaining.

setHwAddressBytes(ByteString value)

public DiskEntry.Builder setHwAddressBytes(ByteString value)

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

string hw_address = 7;

Parameter
Name Description
value ByteString

The bytes for hwAddress to set.

Returns
Type Description
DiskEntry.Builder

This builder for chaining.

setInterfaceType(DiskEntry.InterfaceType value)

public DiskEntry.Builder setInterfaceType(DiskEntry.InterfaceType value)

Disks interface type.

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

Parameter
Name Description
value DiskEntry.InterfaceType

The interfaceType to set.

Returns
Type Description
DiskEntry.Builder

This builder for chaining.

setInterfaceTypeValue(int value)

public DiskEntry.Builder setInterfaceTypeValue(int value)

Disks interface type.

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

Parameter
Name Description
value int

The enum numeric value on the wire for interfaceType to set.

Returns
Type Description
DiskEntry.Builder

This builder for chaining.

setPartitions(DiskPartitionList value)

public DiskEntry.Builder setPartitions(DiskPartitionList value)

Partition layout.

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

Parameter
Name Description
value DiskPartitionList
Returns
Type Description
DiskEntry.Builder

setPartitions(DiskPartitionList.Builder builderForValue)

public DiskEntry.Builder setPartitions(DiskPartitionList.Builder builderForValue)

Partition layout.

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

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setVmware(VmwareDiskConfig value)

public DiskEntry.Builder setVmware(VmwareDiskConfig value)

VMware disk details.

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

Parameter
Name Description
value VmwareDiskConfig
Returns
Type Description
DiskEntry.Builder

setVmware(VmwareDiskConfig.Builder builderForValue)

public DiskEntry.Builder setVmware(VmwareDiskConfig.Builder builderForValue)

VMware disk details.

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

Parameter
Name Description
builderForValue VmwareDiskConfig.Builder
Returns
Type Description
DiskEntry.Builder