Class MachineDetails.Builder (0.26.0)

public static final class MachineDetails.Builder extends GeneratedMessageV3.Builder<MachineDetails.Builder> implements MachineDetailsOrBuilder

Details of a machine.

Protobuf type google.cloud.migrationcenter.v1.MachineDetails

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MachineDetails build()
Returns
Type Description
MachineDetails

buildPartial()

public MachineDetails buildPartial()
Returns
Type Description
MachineDetails

clear()

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

clearArchitecture()

public MachineDetails.Builder clearArchitecture()

Architecture details (vendor, CPU architecture).

.google.cloud.migrationcenter.v1.MachineArchitectureDetails architecture = 7;

Returns
Type Description
MachineDetails.Builder

clearCoreCount()

public MachineDetails.Builder clearCoreCount()

Number of CPU cores in the machine. Must be non-negative.

int32 core_count = 4;

Returns
Type Description
MachineDetails.Builder

This builder for chaining.

clearCreateTime()

public MachineDetails.Builder clearCreateTime()

Machine creation time.

.google.protobuf.Timestamp create_time = 3;

Returns
Type Description
MachineDetails.Builder

clearDisks()

public MachineDetails.Builder clearDisks()

Disk details.

.google.cloud.migrationcenter.v1.MachineDiskDetails disks = 10;

Returns
Type Description
MachineDetails.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearGuestOs()

public MachineDetails.Builder clearGuestOs()

Guest OS information.

.google.cloud.migrationcenter.v1.GuestOsDetails guest_os = 8;

Returns
Type Description
MachineDetails.Builder

clearMachineName()

public MachineDetails.Builder clearMachineName()

Machine name.

string machine_name = 2;

Returns
Type Description
MachineDetails.Builder

This builder for chaining.

clearMemoryMb()

public MachineDetails.Builder clearMemoryMb()

The amount of memory in the machine. Must be non-negative.

int32 memory_mb = 5;

Returns
Type Description
MachineDetails.Builder

This builder for chaining.

clearNetwork()

public MachineDetails.Builder clearNetwork()

Network details.

.google.cloud.migrationcenter.v1.MachineNetworkDetails network = 9;

Returns
Type Description
MachineDetails.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPlatform()

public MachineDetails.Builder clearPlatform()

Platform specific information.

.google.cloud.migrationcenter.v1.PlatformDetails platform = 11;

Returns
Type Description
MachineDetails.Builder

clearPowerState()

public MachineDetails.Builder clearPowerState()

Power state of the machine.

.google.cloud.migrationcenter.v1.MachineDetails.PowerState power_state = 6;

Returns
Type Description
MachineDetails.Builder

This builder for chaining.

clearUuid()

public MachineDetails.Builder clearUuid()

Machine unique identifier.

string uuid = 1;

Returns
Type Description
MachineDetails.Builder

This builder for chaining.

clone()

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

getArchitecture()

public MachineArchitectureDetails getArchitecture()

Architecture details (vendor, CPU architecture).

.google.cloud.migrationcenter.v1.MachineArchitectureDetails architecture = 7;

Returns
Type Description
MachineArchitectureDetails

The architecture.

getArchitectureBuilder()

public MachineArchitectureDetails.Builder getArchitectureBuilder()

Architecture details (vendor, CPU architecture).

.google.cloud.migrationcenter.v1.MachineArchitectureDetails architecture = 7;

Returns
Type Description
MachineArchitectureDetails.Builder

getArchitectureOrBuilder()

public MachineArchitectureDetailsOrBuilder getArchitectureOrBuilder()

Architecture details (vendor, CPU architecture).

.google.cloud.migrationcenter.v1.MachineArchitectureDetails architecture = 7;

Returns
Type Description
MachineArchitectureDetailsOrBuilder

getCoreCount()

public int getCoreCount()

Number of CPU cores in the machine. Must be non-negative.

int32 core_count = 4;

Returns
Type Description
int

The coreCount.

getCreateTime()

public Timestamp getCreateTime()

Machine creation time.

.google.protobuf.Timestamp create_time = 3;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Machine creation time.

.google.protobuf.Timestamp create_time = 3;

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Machine creation time.

.google.protobuf.Timestamp create_time = 3;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public MachineDetails getDefaultInstanceForType()
Returns
Type Description
MachineDetails

getDescriptorForType()

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

getDisks()

public MachineDiskDetails getDisks()

Disk details.

.google.cloud.migrationcenter.v1.MachineDiskDetails disks = 10;

Returns
Type Description
MachineDiskDetails

The disks.

getDisksBuilder()

public MachineDiskDetails.Builder getDisksBuilder()

Disk details.

.google.cloud.migrationcenter.v1.MachineDiskDetails disks = 10;

Returns
Type Description
MachineDiskDetails.Builder

getDisksOrBuilder()

public MachineDiskDetailsOrBuilder getDisksOrBuilder()

Disk details.

.google.cloud.migrationcenter.v1.MachineDiskDetails disks = 10;

Returns
Type Description
MachineDiskDetailsOrBuilder

getGuestOs()

public GuestOsDetails getGuestOs()

Guest OS information.

.google.cloud.migrationcenter.v1.GuestOsDetails guest_os = 8;

Returns
Type Description
GuestOsDetails

The guestOs.

getGuestOsBuilder()

public GuestOsDetails.Builder getGuestOsBuilder()

Guest OS information.

.google.cloud.migrationcenter.v1.GuestOsDetails guest_os = 8;

Returns
Type Description
GuestOsDetails.Builder

getGuestOsOrBuilder()

public GuestOsDetailsOrBuilder getGuestOsOrBuilder()

Guest OS information.

.google.cloud.migrationcenter.v1.GuestOsDetails guest_os = 8;

Returns
Type Description
GuestOsDetailsOrBuilder

getMachineName()

public String getMachineName()

Machine name.

string machine_name = 2;

Returns
Type Description
String

The machineName.

getMachineNameBytes()

public ByteString getMachineNameBytes()

Machine name.

string machine_name = 2;

Returns
Type Description
ByteString

The bytes for machineName.

getMemoryMb()

public int getMemoryMb()

The amount of memory in the machine. Must be non-negative.

int32 memory_mb = 5;

Returns
Type Description
int

The memoryMb.

getNetwork()

public MachineNetworkDetails getNetwork()

Network details.

.google.cloud.migrationcenter.v1.MachineNetworkDetails network = 9;

Returns
Type Description
MachineNetworkDetails

The network.

getNetworkBuilder()

public MachineNetworkDetails.Builder getNetworkBuilder()

Network details.

.google.cloud.migrationcenter.v1.MachineNetworkDetails network = 9;

Returns
Type Description
MachineNetworkDetails.Builder

getNetworkOrBuilder()

public MachineNetworkDetailsOrBuilder getNetworkOrBuilder()

Network details.

.google.cloud.migrationcenter.v1.MachineNetworkDetails network = 9;

Returns
Type Description
MachineNetworkDetailsOrBuilder

getPlatform()

public PlatformDetails getPlatform()

Platform specific information.

.google.cloud.migrationcenter.v1.PlatformDetails platform = 11;

Returns
Type Description
PlatformDetails

The platform.

getPlatformBuilder()

public PlatformDetails.Builder getPlatformBuilder()

Platform specific information.

.google.cloud.migrationcenter.v1.PlatformDetails platform = 11;

Returns
Type Description
PlatformDetails.Builder

getPlatformOrBuilder()

public PlatformDetailsOrBuilder getPlatformOrBuilder()

Platform specific information.

.google.cloud.migrationcenter.v1.PlatformDetails platform = 11;

Returns
Type Description
PlatformDetailsOrBuilder

getPowerState()

public MachineDetails.PowerState getPowerState()

Power state of the machine.

.google.cloud.migrationcenter.v1.MachineDetails.PowerState power_state = 6;

Returns
Type Description
MachineDetails.PowerState

The powerState.

getPowerStateValue()

public int getPowerStateValue()

Power state of the machine.

.google.cloud.migrationcenter.v1.MachineDetails.PowerState power_state = 6;

Returns
Type Description
int

The enum numeric value on the wire for powerState.

getUuid()

public String getUuid()

Machine unique identifier.

string uuid = 1;

Returns
Type Description
String

The uuid.

getUuidBytes()

public ByteString getUuidBytes()

Machine unique identifier.

string uuid = 1;

Returns
Type Description
ByteString

The bytes for uuid.

hasArchitecture()

public boolean hasArchitecture()

Architecture details (vendor, CPU architecture).

.google.cloud.migrationcenter.v1.MachineArchitectureDetails architecture = 7;

Returns
Type Description
boolean

Whether the architecture field is set.

hasCreateTime()

public boolean hasCreateTime()

Machine creation time.

.google.protobuf.Timestamp create_time = 3;

Returns
Type Description
boolean

Whether the createTime field is set.

hasDisks()

public boolean hasDisks()

Disk details.

.google.cloud.migrationcenter.v1.MachineDiskDetails disks = 10;

Returns
Type Description
boolean

Whether the disks field is set.

hasGuestOs()

public boolean hasGuestOs()

Guest OS information.

.google.cloud.migrationcenter.v1.GuestOsDetails guest_os = 8;

Returns
Type Description
boolean

Whether the guestOs field is set.

hasNetwork()

public boolean hasNetwork()

Network details.

.google.cloud.migrationcenter.v1.MachineNetworkDetails network = 9;

Returns
Type Description
boolean

Whether the network field is set.

hasPlatform()

public boolean hasPlatform()

Platform specific information.

.google.cloud.migrationcenter.v1.PlatformDetails platform = 11;

Returns
Type Description
boolean

Whether the platform field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeArchitecture(MachineArchitectureDetails value)

public MachineDetails.Builder mergeArchitecture(MachineArchitectureDetails value)

Architecture details (vendor, CPU architecture).

.google.cloud.migrationcenter.v1.MachineArchitectureDetails architecture = 7;

Parameter
Name Description
value MachineArchitectureDetails
Returns
Type Description
MachineDetails.Builder

mergeCreateTime(Timestamp value)

public MachineDetails.Builder mergeCreateTime(Timestamp value)

Machine creation time.

.google.protobuf.Timestamp create_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
MachineDetails.Builder

mergeDisks(MachineDiskDetails value)

public MachineDetails.Builder mergeDisks(MachineDiskDetails value)

Disk details.

.google.cloud.migrationcenter.v1.MachineDiskDetails disks = 10;

Parameter
Name Description
value MachineDiskDetails
Returns
Type Description
MachineDetails.Builder

mergeFrom(MachineDetails other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGuestOs(GuestOsDetails value)

public MachineDetails.Builder mergeGuestOs(GuestOsDetails value)

Guest OS information.

.google.cloud.migrationcenter.v1.GuestOsDetails guest_os = 8;

Parameter
Name Description
value GuestOsDetails
Returns
Type Description
MachineDetails.Builder

mergeNetwork(MachineNetworkDetails value)

public MachineDetails.Builder mergeNetwork(MachineNetworkDetails value)

Network details.

.google.cloud.migrationcenter.v1.MachineNetworkDetails network = 9;

Parameter
Name Description
value MachineNetworkDetails
Returns
Type Description
MachineDetails.Builder

mergePlatform(PlatformDetails value)

public MachineDetails.Builder mergePlatform(PlatformDetails value)

Platform specific information.

.google.cloud.migrationcenter.v1.PlatformDetails platform = 11;

Parameter
Name Description
value PlatformDetails
Returns
Type Description
MachineDetails.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setArchitecture(MachineArchitectureDetails value)

public MachineDetails.Builder setArchitecture(MachineArchitectureDetails value)

Architecture details (vendor, CPU architecture).

.google.cloud.migrationcenter.v1.MachineArchitectureDetails architecture = 7;

Parameter
Name Description
value MachineArchitectureDetails
Returns
Type Description
MachineDetails.Builder

setArchitecture(MachineArchitectureDetails.Builder builderForValue)

public MachineDetails.Builder setArchitecture(MachineArchitectureDetails.Builder builderForValue)

Architecture details (vendor, CPU architecture).

.google.cloud.migrationcenter.v1.MachineArchitectureDetails architecture = 7;

Parameter
Name Description
builderForValue MachineArchitectureDetails.Builder
Returns
Type Description
MachineDetails.Builder

setCoreCount(int value)

public MachineDetails.Builder setCoreCount(int value)

Number of CPU cores in the machine. Must be non-negative.

int32 core_count = 4;

Parameter
Name Description
value int

The coreCount to set.

Returns
Type Description
MachineDetails.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public MachineDetails.Builder setCreateTime(Timestamp value)

Machine creation time.

.google.protobuf.Timestamp create_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
MachineDetails.Builder

setCreateTime(Timestamp.Builder builderForValue)

public MachineDetails.Builder setCreateTime(Timestamp.Builder builderForValue)

Machine creation time.

.google.protobuf.Timestamp create_time = 3;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
MachineDetails.Builder

setDisks(MachineDiskDetails value)

public MachineDetails.Builder setDisks(MachineDiskDetails value)

Disk details.

.google.cloud.migrationcenter.v1.MachineDiskDetails disks = 10;

Parameter
Name Description
value MachineDiskDetails
Returns
Type Description
MachineDetails.Builder

setDisks(MachineDiskDetails.Builder builderForValue)

public MachineDetails.Builder setDisks(MachineDiskDetails.Builder builderForValue)

Disk details.

.google.cloud.migrationcenter.v1.MachineDiskDetails disks = 10;

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setGuestOs(GuestOsDetails value)

public MachineDetails.Builder setGuestOs(GuestOsDetails value)

Guest OS information.

.google.cloud.migrationcenter.v1.GuestOsDetails guest_os = 8;

Parameter
Name Description
value GuestOsDetails
Returns
Type Description
MachineDetails.Builder

setGuestOs(GuestOsDetails.Builder builderForValue)

public MachineDetails.Builder setGuestOs(GuestOsDetails.Builder builderForValue)

Guest OS information.

.google.cloud.migrationcenter.v1.GuestOsDetails guest_os = 8;

Parameter
Name Description
builderForValue GuestOsDetails.Builder
Returns
Type Description
MachineDetails.Builder

setMachineName(String value)

public MachineDetails.Builder setMachineName(String value)

Machine name.

string machine_name = 2;

Parameter
Name Description
value String

The machineName to set.

Returns
Type Description
MachineDetails.Builder

This builder for chaining.

setMachineNameBytes(ByteString value)

public MachineDetails.Builder setMachineNameBytes(ByteString value)

Machine name.

string machine_name = 2;

Parameter
Name Description
value ByteString

The bytes for machineName to set.

Returns
Type Description
MachineDetails.Builder

This builder for chaining.

setMemoryMb(int value)

public MachineDetails.Builder setMemoryMb(int value)

The amount of memory in the machine. Must be non-negative.

int32 memory_mb = 5;

Parameter
Name Description
value int

The memoryMb to set.

Returns
Type Description
MachineDetails.Builder

This builder for chaining.

setNetwork(MachineNetworkDetails value)

public MachineDetails.Builder setNetwork(MachineNetworkDetails value)

Network details.

.google.cloud.migrationcenter.v1.MachineNetworkDetails network = 9;

Parameter
Name Description
value MachineNetworkDetails
Returns
Type Description
MachineDetails.Builder

setNetwork(MachineNetworkDetails.Builder builderForValue)

public MachineDetails.Builder setNetwork(MachineNetworkDetails.Builder builderForValue)

Network details.

.google.cloud.migrationcenter.v1.MachineNetworkDetails network = 9;

Parameter
Name Description
builderForValue MachineNetworkDetails.Builder
Returns
Type Description
MachineDetails.Builder

setPlatform(PlatformDetails value)

public MachineDetails.Builder setPlatform(PlatformDetails value)

Platform specific information.

.google.cloud.migrationcenter.v1.PlatformDetails platform = 11;

Parameter
Name Description
value PlatformDetails
Returns
Type Description
MachineDetails.Builder

setPlatform(PlatformDetails.Builder builderForValue)

public MachineDetails.Builder setPlatform(PlatformDetails.Builder builderForValue)

Platform specific information.

.google.cloud.migrationcenter.v1.PlatformDetails platform = 11;

Parameter
Name Description
builderForValue PlatformDetails.Builder
Returns
Type Description
MachineDetails.Builder

setPowerState(MachineDetails.PowerState value)

public MachineDetails.Builder setPowerState(MachineDetails.PowerState value)

Power state of the machine.

.google.cloud.migrationcenter.v1.MachineDetails.PowerState power_state = 6;

Parameter
Name Description
value MachineDetails.PowerState

The powerState to set.

Returns
Type Description
MachineDetails.Builder

This builder for chaining.

setPowerStateValue(int value)

public MachineDetails.Builder setPowerStateValue(int value)

Power state of the machine.

.google.cloud.migrationcenter.v1.MachineDetails.PowerState power_state = 6;

Parameter
Name Description
value int

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

Returns
Type Description
MachineDetails.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUuid(String value)

public MachineDetails.Builder setUuid(String value)

Machine unique identifier.

string uuid = 1;

Parameter
Name Description
value String

The uuid to set.

Returns
Type Description
MachineDetails.Builder

This builder for chaining.

setUuidBytes(ByteString value)

public MachineDetails.Builder setUuidBytes(ByteString value)

Machine unique identifier.

string uuid = 1;

Parameter
Name Description
value ByteString

The bytes for uuid to set.

Returns
Type Description
MachineDetails.Builder

This builder for chaining.