Class MachineDetails.Builder (0.2.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MachineDetails build()
Returns
TypeDescription
MachineDetails

buildPartial()

public MachineDetails buildPartial()
Returns
TypeDescription
MachineDetails

clear()

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

clearArchitecture()

public MachineDetails.Builder clearArchitecture()

Architecture details (vendor, CPU architecture).

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

Returns
TypeDescription
MachineDetails.Builder

clearCoreCount()

public MachineDetails.Builder clearCoreCount()

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

int32 core_count = 4;

Returns
TypeDescription
MachineDetails.Builder

This builder for chaining.

clearCreateTime()

public MachineDetails.Builder clearCreateTime()

Machine creation time.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
MachineDetails.Builder

clearDisks()

public MachineDetails.Builder clearDisks()

Disk details.

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

Returns
TypeDescription
MachineDetails.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearGuestOs()

public MachineDetails.Builder clearGuestOs()

Guest OS information.

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

Returns
TypeDescription
MachineDetails.Builder

clearMachineName()

public MachineDetails.Builder clearMachineName()

Machine name.

string machine_name = 2;

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

This builder for chaining.

clearNetwork()

public MachineDetails.Builder clearNetwork()

Network details.

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

Returns
TypeDescription
MachineDetails.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPlatform()

public MachineDetails.Builder clearPlatform()

Platform specific information.

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

Returns
TypeDescription
MachineDetails.Builder

clearPowerState()

public MachineDetails.Builder clearPowerState()

Power state of the machine.

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

Returns
TypeDescription
MachineDetails.Builder

This builder for chaining.

clearUuid()

public MachineDetails.Builder clearUuid()

Machine unique identifier.

string uuid = 1;

Returns
TypeDescription
MachineDetails.Builder

This builder for chaining.

clone()

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

getArchitecture()

public MachineArchitectureDetails getArchitecture()

Architecture details (vendor, CPU architecture).

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

Returns
TypeDescription
MachineArchitectureDetails

The architecture.

getArchitectureBuilder()

public MachineArchitectureDetails.Builder getArchitectureBuilder()

Architecture details (vendor, CPU architecture).

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

Returns
TypeDescription
MachineArchitectureDetails.Builder

getArchitectureOrBuilder()

public MachineArchitectureDetailsOrBuilder getArchitectureOrBuilder()

Architecture details (vendor, CPU architecture).

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

Returns
TypeDescription
MachineArchitectureDetailsOrBuilder

getCoreCount()

public int getCoreCount()

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

int32 core_count = 4;

Returns
TypeDescription
int

The coreCount.

getCreateTime()

public Timestamp getCreateTime()

Machine creation time.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Machine creation time.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Machine creation time.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public MachineDetails getDefaultInstanceForType()
Returns
TypeDescription
MachineDetails

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisks()

public MachineDiskDetails getDisks()

Disk details.

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

Returns
TypeDescription
MachineDiskDetails

The disks.

getDisksBuilder()

public MachineDiskDetails.Builder getDisksBuilder()

Disk details.

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

Returns
TypeDescription
MachineDiskDetails.Builder

getDisksOrBuilder()

public MachineDiskDetailsOrBuilder getDisksOrBuilder()

Disk details.

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

Returns
TypeDescription
MachineDiskDetailsOrBuilder

getGuestOs()

public GuestOsDetails getGuestOs()

Guest OS information.

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

Returns
TypeDescription
GuestOsDetails

The guestOs.

getGuestOsBuilder()

public GuestOsDetails.Builder getGuestOsBuilder()

Guest OS information.

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

Returns
TypeDescription
GuestOsDetails.Builder

getGuestOsOrBuilder()

public GuestOsDetailsOrBuilder getGuestOsOrBuilder()

Guest OS information.

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

Returns
TypeDescription
GuestOsDetailsOrBuilder

getMachineName()

public String getMachineName()

Machine name.

string machine_name = 2;

Returns
TypeDescription
String

The machineName.

getMachineNameBytes()

public ByteString getMachineNameBytes()

Machine name.

string machine_name = 2;

Returns
TypeDescription
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
TypeDescription
int

The memoryMb.

getNetwork()

public MachineNetworkDetails getNetwork()

Network details.

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

Returns
TypeDescription
MachineNetworkDetails

The network.

getNetworkBuilder()

public MachineNetworkDetails.Builder getNetworkBuilder()

Network details.

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

Returns
TypeDescription
MachineNetworkDetails.Builder

getNetworkOrBuilder()

public MachineNetworkDetailsOrBuilder getNetworkOrBuilder()

Network details.

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

Returns
TypeDescription
MachineNetworkDetailsOrBuilder

getPlatform()

public PlatformDetails getPlatform()

Platform specific information.

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

Returns
TypeDescription
PlatformDetails

The platform.

getPlatformBuilder()

public PlatformDetails.Builder getPlatformBuilder()

Platform specific information.

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

Returns
TypeDescription
PlatformDetails.Builder

getPlatformOrBuilder()

public PlatformDetailsOrBuilder getPlatformOrBuilder()

Platform specific information.

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

Returns
TypeDescription
PlatformDetailsOrBuilder

getPowerState()

public MachineDetails.PowerState getPowerState()

Power state of the machine.

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

Returns
TypeDescription
MachineDetails.PowerState

The powerState.

getPowerStateValue()

public int getPowerStateValue()

Power state of the machine.

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

Returns
TypeDescription
int

The enum numeric value on the wire for powerState.

getUuid()

public String getUuid()

Machine unique identifier.

string uuid = 1;

Returns
TypeDescription
String

The uuid.

getUuidBytes()

public ByteString getUuidBytes()

Machine unique identifier.

string uuid = 1;

Returns
TypeDescription
ByteString

The bytes for uuid.

hasArchitecture()

public boolean hasArchitecture()

Architecture details (vendor, CPU architecture).

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

Returns
TypeDescription
boolean

Whether the architecture field is set.

hasCreateTime()

public boolean hasCreateTime()

Machine creation time.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasDisks()

public boolean hasDisks()

Disk details.

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

Returns
TypeDescription
boolean

Whether the disks field is set.

hasGuestOs()

public boolean hasGuestOs()

Guest OS information.

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

Returns
TypeDescription
boolean

Whether the guestOs field is set.

hasNetwork()

public boolean hasNetwork()

Network details.

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

Returns
TypeDescription
boolean

Whether the network field is set.

hasPlatform()

public boolean hasPlatform()

Platform specific information.

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

Returns
TypeDescription
boolean

Whether the platform field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeArchitecture(MachineArchitectureDetails value)

public MachineDetails.Builder mergeArchitecture(MachineArchitectureDetails value)

Architecture details (vendor, CPU architecture).

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

Parameter
NameDescription
valueMachineArchitectureDetails
Returns
TypeDescription
MachineDetails.Builder

mergeCreateTime(Timestamp value)

public MachineDetails.Builder mergeCreateTime(Timestamp value)

Machine creation time.

.google.protobuf.Timestamp create_time = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
MachineDetails.Builder

mergeDisks(MachineDiskDetails value)

public MachineDetails.Builder mergeDisks(MachineDiskDetails value)

Disk details.

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

Parameter
NameDescription
valueMachineDiskDetails
Returns
TypeDescription
MachineDetails.Builder

mergeFrom(MachineDetails other)

public MachineDetails.Builder mergeFrom(MachineDetails other)
Parameter
NameDescription
otherMachineDetails
Returns
TypeDescription
MachineDetails.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGuestOs(GuestOsDetails value)

public MachineDetails.Builder mergeGuestOs(GuestOsDetails value)

Guest OS information.

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

Parameter
NameDescription
valueGuestOsDetails
Returns
TypeDescription
MachineDetails.Builder

mergeNetwork(MachineNetworkDetails value)

public MachineDetails.Builder mergeNetwork(MachineNetworkDetails value)

Network details.

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

Parameter
NameDescription
valueMachineNetworkDetails
Returns
TypeDescription
MachineDetails.Builder

mergePlatform(PlatformDetails value)

public MachineDetails.Builder mergePlatform(PlatformDetails value)

Platform specific information.

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

Parameter
NameDescription
valuePlatformDetails
Returns
TypeDescription
MachineDetails.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MachineDetails.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueMachineArchitectureDetails
Returns
TypeDescription
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
NameDescription
builderForValueMachineArchitectureDetails.Builder
Returns
TypeDescription
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
NameDescription
valueint

The coreCount to set.

Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
MachineDetails.Builder

setCreateTime(Timestamp.Builder builderForValue)

public MachineDetails.Builder setCreateTime(Timestamp.Builder builderForValue)

Machine creation time.

.google.protobuf.Timestamp create_time = 3;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
MachineDetails.Builder

setDisks(MachineDiskDetails value)

public MachineDetails.Builder setDisks(MachineDiskDetails value)

Disk details.

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

Parameter
NameDescription
valueMachineDiskDetails
Returns
TypeDescription
MachineDetails.Builder

setDisks(MachineDiskDetails.Builder builderForValue)

public MachineDetails.Builder setDisks(MachineDiskDetails.Builder builderForValue)

Disk details.

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

Parameter
NameDescription
builderForValueMachineDiskDetails.Builder
Returns
TypeDescription
MachineDetails.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setGuestOs(GuestOsDetails value)

public MachineDetails.Builder setGuestOs(GuestOsDetails value)

Guest OS information.

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

Parameter
NameDescription
valueGuestOsDetails
Returns
TypeDescription
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
NameDescription
builderForValueGuestOsDetails.Builder
Returns
TypeDescription
MachineDetails.Builder

setMachineName(String value)

public MachineDetails.Builder setMachineName(String value)

Machine name.

string machine_name = 2;

Parameter
NameDescription
valueString

The machineName to set.

Returns
TypeDescription
MachineDetails.Builder

This builder for chaining.

setMachineNameBytes(ByteString value)

public MachineDetails.Builder setMachineNameBytes(ByteString value)

Machine name.

string machine_name = 2;

Parameter
NameDescription
valueByteString

The bytes for machineName to set.

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

The memoryMb to set.

Returns
TypeDescription
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
NameDescription
valueMachineNetworkDetails
Returns
TypeDescription
MachineDetails.Builder

setNetwork(MachineNetworkDetails.Builder builderForValue)

public MachineDetails.Builder setNetwork(MachineNetworkDetails.Builder builderForValue)

Network details.

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

Parameter
NameDescription
builderForValueMachineNetworkDetails.Builder
Returns
TypeDescription
MachineDetails.Builder

setPlatform(PlatformDetails value)

public MachineDetails.Builder setPlatform(PlatformDetails value)

Platform specific information.

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

Parameter
NameDescription
valuePlatformDetails
Returns
TypeDescription
MachineDetails.Builder

setPlatform(PlatformDetails.Builder builderForValue)

public MachineDetails.Builder setPlatform(PlatformDetails.Builder builderForValue)

Platform specific information.

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

Parameter
NameDescription
builderForValuePlatformDetails.Builder
Returns
TypeDescription
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
NameDescription
valueMachineDetails.PowerState

The powerState to set.

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

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

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
MachineDetails.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setUuid(String value)

public MachineDetails.Builder setUuid(String value)

Machine unique identifier.

string uuid = 1;

Parameter
NameDescription
valueString

The uuid to set.

Returns
TypeDescription
MachineDetails.Builder

This builder for chaining.

setUuidBytes(ByteString value)

public MachineDetails.Builder setUuidBytes(ByteString value)

Machine unique identifier.

string uuid = 1;

Parameter
NameDescription
valueByteString

The bytes for uuid to set.

Returns
TypeDescription
MachineDetails.Builder

This builder for chaining.