Class MachineDiskDetails.Builder (0.24.0)

public static final class MachineDiskDetails.Builder extends GeneratedMessageV3.Builder<MachineDiskDetails.Builder> implements MachineDiskDetailsOrBuilder

Details of machine disks.

Protobuf type google.cloud.migrationcenter.v1.MachineDiskDetails

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MachineDiskDetails build()
Returns
Type Description
MachineDiskDetails

buildPartial()

public MachineDiskDetails buildPartial()
Returns
Type Description
MachineDiskDetails

clear()

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

clearDisks()

public MachineDiskDetails.Builder clearDisks()

List of disks.

.google.cloud.migrationcenter.v1.DiskEntryList disks = 3;

Returns
Type Description
MachineDiskDetails.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTotalCapacityBytes()

public MachineDiskDetails.Builder clearTotalCapacityBytes()

Disk total Capacity.

int64 total_capacity_bytes = 1;

Returns
Type Description
MachineDiskDetails.Builder

This builder for chaining.

clearTotalFreeBytes()

public MachineDiskDetails.Builder clearTotalFreeBytes()

Total disk free space.

int64 total_free_bytes = 2;

Returns
Type Description
MachineDiskDetails.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public MachineDiskDetails getDefaultInstanceForType()
Returns
Type Description
MachineDiskDetails

getDescriptorForType()

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

getDisks()

public DiskEntryList getDisks()

List of disks.

.google.cloud.migrationcenter.v1.DiskEntryList disks = 3;

Returns
Type Description
DiskEntryList

The disks.

getDisksBuilder()

public DiskEntryList.Builder getDisksBuilder()

List of disks.

.google.cloud.migrationcenter.v1.DiskEntryList disks = 3;

Returns
Type Description
DiskEntryList.Builder

getDisksOrBuilder()

public DiskEntryListOrBuilder getDisksOrBuilder()

List of disks.

.google.cloud.migrationcenter.v1.DiskEntryList disks = 3;

Returns
Type Description
DiskEntryListOrBuilder

getTotalCapacityBytes()

public long getTotalCapacityBytes()

Disk total Capacity.

int64 total_capacity_bytes = 1;

Returns
Type Description
long

The totalCapacityBytes.

getTotalFreeBytes()

public long getTotalFreeBytes()

Total disk free space.

int64 total_free_bytes = 2;

Returns
Type Description
long

The totalFreeBytes.

hasDisks()

public boolean hasDisks()

List of disks.

.google.cloud.migrationcenter.v1.DiskEntryList disks = 3;

Returns
Type Description
boolean

Whether the disks field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDisks(DiskEntryList value)

public MachineDiskDetails.Builder mergeDisks(DiskEntryList value)

List of disks.

.google.cloud.migrationcenter.v1.DiskEntryList disks = 3;

Parameter
Name Description
value DiskEntryList
Returns
Type Description
MachineDiskDetails.Builder

mergeFrom(MachineDiskDetails other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDisks(DiskEntryList value)

public MachineDiskDetails.Builder setDisks(DiskEntryList value)

List of disks.

.google.cloud.migrationcenter.v1.DiskEntryList disks = 3;

Parameter
Name Description
value DiskEntryList
Returns
Type Description
MachineDiskDetails.Builder

setDisks(DiskEntryList.Builder builderForValue)

public MachineDiskDetails.Builder setDisks(DiskEntryList.Builder builderForValue)

List of disks.

.google.cloud.migrationcenter.v1.DiskEntryList disks = 3;

Parameter
Name Description
builderForValue DiskEntryList.Builder
Returns
Type Description
MachineDiskDetails.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setTotalCapacityBytes(long value)

public MachineDiskDetails.Builder setTotalCapacityBytes(long value)

Disk total Capacity.

int64 total_capacity_bytes = 1;

Parameter
Name Description
value long

The totalCapacityBytes to set.

Returns
Type Description
MachineDiskDetails.Builder

This builder for chaining.

setTotalFreeBytes(long value)

public MachineDiskDetails.Builder setTotalFreeBytes(long value)

Total disk free space.

int64 total_free_bytes = 2;

Parameter
Name Description
value long

The totalFreeBytes to set.

Returns
Type Description
MachineDiskDetails.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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