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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MachineDiskDetails build()
Returns
TypeDescription
MachineDiskDetails

buildPartial()

public MachineDiskDetails buildPartial()
Returns
TypeDescription
MachineDiskDetails

clear()

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

clearDisks()

public MachineDiskDetails.Builder clearDisks()

List of disks.

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

Returns
TypeDescription
MachineDiskDetails.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTotalCapacityBytes()

public MachineDiskDetails.Builder clearTotalCapacityBytes()

Disk total Capacity.

int64 total_capacity_bytes = 1;

Returns
TypeDescription
MachineDiskDetails.Builder

This builder for chaining.

clearTotalFreeBytes()

public MachineDiskDetails.Builder clearTotalFreeBytes()

Total disk free space.

int64 total_free_bytes = 2;

Returns
TypeDescription
MachineDiskDetails.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public MachineDiskDetails getDefaultInstanceForType()
Returns
TypeDescription
MachineDiskDetails

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisks()

public DiskEntryList getDisks()

List of disks.

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

Returns
TypeDescription
DiskEntryList

The disks.

getDisksBuilder()

public DiskEntryList.Builder getDisksBuilder()

List of disks.

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

Returns
TypeDescription
DiskEntryList.Builder

getDisksOrBuilder()

public DiskEntryListOrBuilder getDisksOrBuilder()

List of disks.

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

Returns
TypeDescription
DiskEntryListOrBuilder

getTotalCapacityBytes()

public long getTotalCapacityBytes()

Disk total Capacity.

int64 total_capacity_bytes = 1;

Returns
TypeDescription
long

The totalCapacityBytes.

getTotalFreeBytes()

public long getTotalFreeBytes()

Total disk free space.

int64 total_free_bytes = 2;

Returns
TypeDescription
long

The totalFreeBytes.

hasDisks()

public boolean hasDisks()

List of disks.

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

Returns
TypeDescription
boolean

Whether the disks field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeDisks(DiskEntryList value)

public MachineDiskDetails.Builder mergeDisks(DiskEntryList value)

List of disks.

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

Parameter
NameDescription
valueDiskEntryList
Returns
TypeDescription
MachineDiskDetails.Builder

mergeFrom(MachineDiskDetails other)

public MachineDiskDetails.Builder mergeFrom(MachineDiskDetails other)
Parameter
NameDescription
otherMachineDiskDetails
Returns
TypeDescription
MachineDiskDetails.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDisks(DiskEntryList value)

public MachineDiskDetails.Builder setDisks(DiskEntryList value)

List of disks.

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

Parameter
NameDescription
valueDiskEntryList
Returns
TypeDescription
MachineDiskDetails.Builder

setDisks(DiskEntryList.Builder builderForValue)

public MachineDiskDetails.Builder setDisks(DiskEntryList.Builder builderForValue)

List of disks.

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

Parameter
NameDescription
builderForValueDiskEntryList.Builder
Returns
TypeDescription
MachineDiskDetails.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setTotalCapacityBytes(long value)

public MachineDiskDetails.Builder setTotalCapacityBytes(long value)

Disk total Capacity.

int64 total_capacity_bytes = 1;

Parameter
NameDescription
valuelong

The totalCapacityBytes to set.

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

The totalFreeBytes to set.

Returns
TypeDescription
MachineDiskDetails.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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