Class DiskEntry.Builder (0.12.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DiskEntry build()
Returns
TypeDescription
DiskEntry

buildPartial()

public DiskEntry buildPartial()
Returns
TypeDescription
DiskEntry

clear()

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

clearCapacityBytes()

public DiskEntry.Builder clearCapacityBytes()

Disk capacity.

int64 capacity_bytes = 1;

Returns
TypeDescription
DiskEntry.Builder

This builder for chaining.

clearDiskLabel()

public DiskEntry.Builder clearDiskLabel()

Disk label.

string disk_label = 3;

Returns
TypeDescription
DiskEntry.Builder

This builder for chaining.

clearDiskLabelType()

public DiskEntry.Builder clearDiskLabelType()

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

string disk_label_type = 4;

Returns
TypeDescription
DiskEntry.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearFreeBytes()

public DiskEntry.Builder clearFreeBytes()

Disk free space.

int64 free_bytes = 2;

Returns
TypeDescription
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
TypeDescription
DiskEntry.Builder

This builder for chaining.

clearInterfaceType()

public DiskEntry.Builder clearInterfaceType()

Disks interface type.

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

Returns
TypeDescription
DiskEntry.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPartitions()

public DiskEntry.Builder clearPartitions()

Partition layout.

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

Returns
TypeDescription
DiskEntry.Builder

clearPlatformSpecific()

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

clearVmware()

public DiskEntry.Builder clearVmware()

VMware disk details.

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

Returns
TypeDescription
DiskEntry.Builder

clone()

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

getCapacityBytes()

public long getCapacityBytes()

Disk capacity.

int64 capacity_bytes = 1;

Returns
TypeDescription
long

The capacityBytes.

getDefaultInstanceForType()

public DiskEntry getDefaultInstanceForType()
Returns
TypeDescription
DiskEntry

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

getPartitions()

public DiskPartitionList getPartitions()

Partition layout.

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

Returns
TypeDescription
DiskPartitionList

The partitions.

getPartitionsBuilder()

public DiskPartitionList.Builder getPartitionsBuilder()

Partition layout.

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

Returns
TypeDescription
DiskPartitionList.Builder

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

getVmware()

public VmwareDiskConfig getVmware()

VMware disk details.

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

Returns
TypeDescription
VmwareDiskConfig

The vmware.

getVmwareBuilder()

public VmwareDiskConfig.Builder getVmwareBuilder()

VMware disk details.

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

Returns
TypeDescription
VmwareDiskConfig.Builder

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DiskEntry other)

public DiskEntry.Builder mergeFrom(DiskEntry other)
Parameter
NameDescription
otherDiskEntry
Returns
TypeDescription
DiskEntry.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePartitions(DiskPartitionList value)

public DiskEntry.Builder mergePartitions(DiskPartitionList value)

Partition layout.

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

Parameter
NameDescription
valueDiskPartitionList
Returns
TypeDescription
DiskEntry.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeVmware(VmwareDiskConfig value)

public DiskEntry.Builder mergeVmware(VmwareDiskConfig value)

VMware disk details.

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

Parameter
NameDescription
valueVmwareDiskConfig
Returns
TypeDescription
DiskEntry.Builder

setCapacityBytes(long value)

public DiskEntry.Builder setCapacityBytes(long value)

Disk capacity.

int64 capacity_bytes = 1;

Parameter
NameDescription
valuelong

The capacityBytes to set.

Returns
TypeDescription
DiskEntry.Builder

This builder for chaining.

setDiskLabel(String value)

public DiskEntry.Builder setDiskLabel(String value)

Disk label.

string disk_label = 3;

Parameter
NameDescription
valueString

The diskLabel to set.

Returns
TypeDescription
DiskEntry.Builder

This builder for chaining.

setDiskLabelBytes(ByteString value)

public DiskEntry.Builder setDiskLabelBytes(ByteString value)

Disk label.

string disk_label = 3;

Parameter
NameDescription
valueByteString

The bytes for diskLabel to set.

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

The diskLabelType to set.

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

The bytes for diskLabelType to set.

Returns
TypeDescription
DiskEntry.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setFreeBytes(long value)

public DiskEntry.Builder setFreeBytes(long value)

Disk free space.

int64 free_bytes = 2;

Parameter
NameDescription
valuelong

The freeBytes to set.

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

The hwAddress to set.

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

The bytes for hwAddress to set.

Returns
TypeDescription
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
NameDescription
valueDiskEntry.InterfaceType

The interfaceType to set.

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

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

Returns
TypeDescription
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
NameDescription
valueDiskPartitionList
Returns
TypeDescription
DiskEntry.Builder

setPartitions(DiskPartitionList.Builder builderForValue)

public DiskEntry.Builder setPartitions(DiskPartitionList.Builder builderForValue)

Partition layout.

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

Parameter
NameDescription
builderForValueDiskPartitionList.Builder
Returns
TypeDescription
DiskEntry.Builder

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

public DiskEntry.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DiskEntry.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setVmware(VmwareDiskConfig value)

public DiskEntry.Builder setVmware(VmwareDiskConfig value)

VMware disk details.

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

Parameter
NameDescription
valueVmwareDiskConfig
Returns
TypeDescription
DiskEntry.Builder

setVmware(VmwareDiskConfig.Builder builderForValue)

public DiskEntry.Builder setVmware(VmwareDiskConfig.Builder builderForValue)

VMware disk details.

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

Parameter
NameDescription
builderForValueVmwareDiskConfig.Builder
Returns
TypeDescription
DiskEntry.Builder