Class VmwareVmDetails.Builder (1.47.0)

public static final class VmwareVmDetails.Builder extends GeneratedMessageV3.Builder<VmwareVmDetails.Builder> implements VmwareVmDetailsOrBuilder

VmwareVmDetails describes a VM in vCenter.

Protobuf type google.cloud.vmmigration.v1.VmwareVmDetails

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public VmwareVmDetails build()
Returns
Type Description
VmwareVmDetails

buildPartial()

public VmwareVmDetails buildPartial()
Returns
Type Description
VmwareVmDetails

clear()

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

clearBootOption()

public VmwareVmDetails.Builder clearBootOption()

Output only. The VM Boot Option.

.google.cloud.vmmigration.v1.VmwareVmDetails.BootOption boot_option = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
VmwareVmDetails.Builder

This builder for chaining.

clearCommittedStorageMb()

public VmwareVmDetails.Builder clearCommittedStorageMb()

The total size of the storage allocated to the VM in MB.

int64 committed_storage_mb = 12;

Returns
Type Description
VmwareVmDetails.Builder

This builder for chaining.

clearCpuCount()

public VmwareVmDetails.Builder clearCpuCount()

The number of cpus in the VM.

int32 cpu_count = 7;

Returns
Type Description
VmwareVmDetails.Builder

This builder for chaining.

clearDatacenterDescription()

public VmwareVmDetails.Builder clearDatacenterDescription()

The descriptive name of the vCenter's datacenter this VM is contained in.

string datacenter_description = 3;

Returns
Type Description
VmwareVmDetails.Builder

This builder for chaining.

clearDatacenterId()

public VmwareVmDetails.Builder clearDatacenterId()

The id of the vCenter's datacenter this VM is contained in.

string datacenter_id = 2;

Returns
Type Description
VmwareVmDetails.Builder

This builder for chaining.

clearDiskCount()

public VmwareVmDetails.Builder clearDiskCount()

The number of disks the VM has.

int32 disk_count = 9;

Returns
Type Description
VmwareVmDetails.Builder

This builder for chaining.

clearDisplayName()

public VmwareVmDetails.Builder clearDisplayName()

The display name of the VM. Note that this is not necessarily unique.

string display_name = 5;

Returns
Type Description
VmwareVmDetails.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearGuestDescription()

public VmwareVmDetails.Builder clearGuestDescription()
Returns
Type Description
VmwareVmDetails.Builder

This builder for chaining.

clearMemoryMb()

public VmwareVmDetails.Builder clearMemoryMb()

The size of the memory of the VM in MB.

int32 memory_mb = 8;

Returns
Type Description
VmwareVmDetails.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPowerState()

public VmwareVmDetails.Builder clearPowerState()

The power state of the VM at the moment list was taken.

.google.cloud.vmmigration.v1.VmwareVmDetails.PowerState power_state = 6;

Returns
Type Description
VmwareVmDetails.Builder

This builder for chaining.

clearUuid()

public VmwareVmDetails.Builder clearUuid()

The unique identifier of the VM in vCenter.

string uuid = 4;

Returns
Type Description
VmwareVmDetails.Builder

This builder for chaining.

clearVmId()

public VmwareVmDetails.Builder clearVmId()

The VM's id in the source (note that this is not the MigratingVm's id). This is the moref id of the VM.

string vm_id = 1;

Returns
Type Description
VmwareVmDetails.Builder

This builder for chaining.

clone()

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

getBootOption()

public VmwareVmDetails.BootOption getBootOption()

Output only. The VM Boot Option.

.google.cloud.vmmigration.v1.VmwareVmDetails.BootOption boot_option = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
VmwareVmDetails.BootOption

The bootOption.

getBootOptionValue()

public int getBootOptionValue()

Output only. The VM Boot Option.

.google.cloud.vmmigration.v1.VmwareVmDetails.BootOption boot_option = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for bootOption.

getCommittedStorageMb()

public long getCommittedStorageMb()

The total size of the storage allocated to the VM in MB.

int64 committed_storage_mb = 12;

Returns
Type Description
long

The committedStorageMb.

getCpuCount()

public int getCpuCount()

The number of cpus in the VM.

int32 cpu_count = 7;

Returns
Type Description
int

The cpuCount.

getDatacenterDescription()

public String getDatacenterDescription()

The descriptive name of the vCenter's datacenter this VM is contained in.

string datacenter_description = 3;

Returns
Type Description
String

The datacenterDescription.

getDatacenterDescriptionBytes()

public ByteString getDatacenterDescriptionBytes()

The descriptive name of the vCenter's datacenter this VM is contained in.

string datacenter_description = 3;

Returns
Type Description
ByteString

The bytes for datacenterDescription.

getDatacenterId()

public String getDatacenterId()

The id of the vCenter's datacenter this VM is contained in.

string datacenter_id = 2;

Returns
Type Description
String

The datacenterId.

getDatacenterIdBytes()

public ByteString getDatacenterIdBytes()

The id of the vCenter's datacenter this VM is contained in.

string datacenter_id = 2;

Returns
Type Description
ByteString

The bytes for datacenterId.

getDefaultInstanceForType()

public VmwareVmDetails getDefaultInstanceForType()
Returns
Type Description
VmwareVmDetails

getDescriptorForType()

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

getDiskCount()

public int getDiskCount()

The number of disks the VM has.

int32 disk_count = 9;

Returns
Type Description
int

The diskCount.

getDisplayName()

public String getDisplayName()

The display name of the VM. Note that this is not necessarily unique.

string display_name = 5;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The display name of the VM. Note that this is not necessarily unique.

string display_name = 5;

Returns
Type Description
ByteString

The bytes for displayName.

getGuestDescription()

public String getGuestDescription()
Returns
Type Description
String

The guestDescription.

getGuestDescriptionBytes()

public ByteString getGuestDescriptionBytes()
Returns
Type Description
ByteString

The bytes for guestDescription.

getMemoryMb()

public int getMemoryMb()

The size of the memory of the VM in MB.

int32 memory_mb = 8;

Returns
Type Description
int

The memoryMb.

getPowerState()

public VmwareVmDetails.PowerState getPowerState()

The power state of the VM at the moment list was taken.

.google.cloud.vmmigration.v1.VmwareVmDetails.PowerState power_state = 6;

Returns
Type Description
VmwareVmDetails.PowerState

The powerState.

getPowerStateValue()

public int getPowerStateValue()

The power state of the VM at the moment list was taken.

.google.cloud.vmmigration.v1.VmwareVmDetails.PowerState power_state = 6;

Returns
Type Description
int

The enum numeric value on the wire for powerState.

getUuid()

public String getUuid()

The unique identifier of the VM in vCenter.

string uuid = 4;

Returns
Type Description
String

The uuid.

getUuidBytes()

public ByteString getUuidBytes()

The unique identifier of the VM in vCenter.

string uuid = 4;

Returns
Type Description
ByteString

The bytes for uuid.

getVmId()

public String getVmId()

The VM's id in the source (note that this is not the MigratingVm's id). This is the moref id of the VM.

string vm_id = 1;

Returns
Type Description
String

The vmId.

getVmIdBytes()

public ByteString getVmIdBytes()

The VM's id in the source (note that this is not the MigratingVm's id). This is the moref id of the VM.

string vm_id = 1;

Returns
Type Description
ByteString

The bytes for vmId.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(VmwareVmDetails other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBootOption(VmwareVmDetails.BootOption value)

public VmwareVmDetails.Builder setBootOption(VmwareVmDetails.BootOption value)

Output only. The VM Boot Option.

.google.cloud.vmmigration.v1.VmwareVmDetails.BootOption boot_option = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value VmwareVmDetails.BootOption

The bootOption to set.

Returns
Type Description
VmwareVmDetails.Builder

This builder for chaining.

setBootOptionValue(int value)

public VmwareVmDetails.Builder setBootOptionValue(int value)

Output only. The VM Boot Option.

.google.cloud.vmmigration.v1.VmwareVmDetails.BootOption boot_option = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
VmwareVmDetails.Builder

This builder for chaining.

setCommittedStorageMb(long value)

public VmwareVmDetails.Builder setCommittedStorageMb(long value)

The total size of the storage allocated to the VM in MB.

int64 committed_storage_mb = 12;

Parameter
Name Description
value long

The committedStorageMb to set.

Returns
Type Description
VmwareVmDetails.Builder

This builder for chaining.

setCpuCount(int value)

public VmwareVmDetails.Builder setCpuCount(int value)

The number of cpus in the VM.

int32 cpu_count = 7;

Parameter
Name Description
value int

The cpuCount to set.

Returns
Type Description
VmwareVmDetails.Builder

This builder for chaining.

setDatacenterDescription(String value)

public VmwareVmDetails.Builder setDatacenterDescription(String value)

The descriptive name of the vCenter's datacenter this VM is contained in.

string datacenter_description = 3;

Parameter
Name Description
value String

The datacenterDescription to set.

Returns
Type Description
VmwareVmDetails.Builder

This builder for chaining.

setDatacenterDescriptionBytes(ByteString value)

public VmwareVmDetails.Builder setDatacenterDescriptionBytes(ByteString value)

The descriptive name of the vCenter's datacenter this VM is contained in.

string datacenter_description = 3;

Parameter
Name Description
value ByteString

The bytes for datacenterDescription to set.

Returns
Type Description
VmwareVmDetails.Builder

This builder for chaining.

setDatacenterId(String value)

public VmwareVmDetails.Builder setDatacenterId(String value)

The id of the vCenter's datacenter this VM is contained in.

string datacenter_id = 2;

Parameter
Name Description
value String

The datacenterId to set.

Returns
Type Description
VmwareVmDetails.Builder

This builder for chaining.

setDatacenterIdBytes(ByteString value)

public VmwareVmDetails.Builder setDatacenterIdBytes(ByteString value)

The id of the vCenter's datacenter this VM is contained in.

string datacenter_id = 2;

Parameter
Name Description
value ByteString

The bytes for datacenterId to set.

Returns
Type Description
VmwareVmDetails.Builder

This builder for chaining.

setDiskCount(int value)

public VmwareVmDetails.Builder setDiskCount(int value)

The number of disks the VM has.

int32 disk_count = 9;

Parameter
Name Description
value int

The diskCount to set.

Returns
Type Description
VmwareVmDetails.Builder

This builder for chaining.

setDisplayName(String value)

public VmwareVmDetails.Builder setDisplayName(String value)

The display name of the VM. Note that this is not necessarily unique.

string display_name = 5;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
VmwareVmDetails.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public VmwareVmDetails.Builder setDisplayNameBytes(ByteString value)

The display name of the VM. Note that this is not necessarily unique.

string display_name = 5;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
VmwareVmDetails.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setGuestDescription(String value)

public VmwareVmDetails.Builder setGuestDescription(String value)
Parameter
Name Description
value String

The guestDescription to set.

Returns
Type Description
VmwareVmDetails.Builder

This builder for chaining.

setGuestDescriptionBytes(ByteString value)

public VmwareVmDetails.Builder setGuestDescriptionBytes(ByteString value)
Parameter
Name Description
value ByteString

The bytes for guestDescription to set.

Returns
Type Description
VmwareVmDetails.Builder

This builder for chaining.

setMemoryMb(int value)

public VmwareVmDetails.Builder setMemoryMb(int value)

The size of the memory of the VM in MB.

int32 memory_mb = 8;

Parameter
Name Description
value int

The memoryMb to set.

Returns
Type Description
VmwareVmDetails.Builder

This builder for chaining.

setPowerState(VmwareVmDetails.PowerState value)

public VmwareVmDetails.Builder setPowerState(VmwareVmDetails.PowerState value)

The power state of the VM at the moment list was taken.

.google.cloud.vmmigration.v1.VmwareVmDetails.PowerState power_state = 6;

Parameter
Name Description
value VmwareVmDetails.PowerState

The powerState to set.

Returns
Type Description
VmwareVmDetails.Builder

This builder for chaining.

setPowerStateValue(int value)

public VmwareVmDetails.Builder setPowerStateValue(int value)

The power state of the VM at the moment list was taken.

.google.cloud.vmmigration.v1.VmwareVmDetails.PowerState power_state = 6;

Parameter
Name Description
value int

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

Returns
Type Description
VmwareVmDetails.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUuid(String value)

public VmwareVmDetails.Builder setUuid(String value)

The unique identifier of the VM in vCenter.

string uuid = 4;

Parameter
Name Description
value String

The uuid to set.

Returns
Type Description
VmwareVmDetails.Builder

This builder for chaining.

setUuidBytes(ByteString value)

public VmwareVmDetails.Builder setUuidBytes(ByteString value)

The unique identifier of the VM in vCenter.

string uuid = 4;

Parameter
Name Description
value ByteString

The bytes for uuid to set.

Returns
Type Description
VmwareVmDetails.Builder

This builder for chaining.

setVmId(String value)

public VmwareVmDetails.Builder setVmId(String value)

The VM's id in the source (note that this is not the MigratingVm's id). This is the moref id of the VM.

string vm_id = 1;

Parameter
Name Description
value String

The vmId to set.

Returns
Type Description
VmwareVmDetails.Builder

This builder for chaining.

setVmIdBytes(ByteString value)

public VmwareVmDetails.Builder setVmIdBytes(ByteString value)

The VM's id in the source (note that this is not the MigratingVm's id). This is the moref id of the VM.

string vm_id = 1;

Parameter
Name Description
value ByteString

The bytes for vmId to set.

Returns
Type Description
VmwareVmDetails.Builder

This builder for chaining.