Class VmwareVmDetails.Builder (1.14.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public VmwareVmDetails build()
Returns
TypeDescription
VmwareVmDetails

buildPartial()

public VmwareVmDetails buildPartial()
Returns
TypeDescription
VmwareVmDetails

clear()

public VmwareVmDetails.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
VmwareVmDetails.Builder

This builder for chaining.

clearCpuCount()

public VmwareVmDetails.Builder clearCpuCount()

The number of cpus in the VM.

int32 cpu_count = 7;

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

This builder for chaining.

clearDiskCount()

public VmwareVmDetails.Builder clearDiskCount()

The number of disks the VM has.

int32 disk_count = 9;

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearGuestDescription()

public VmwareVmDetails.Builder clearGuestDescription()
Returns
TypeDescription
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
TypeDescription
VmwareVmDetails.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public VmwareVmDetails.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
VmwareVmDetails.Builder

This builder for chaining.

clearUuid()

public VmwareVmDetails.Builder clearUuid()

The unique identifier of the VM in vCenter.

string uuid = 4;

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

This builder for chaining.

clone()

public VmwareVmDetails.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
long

The committedStorageMb.

getCpuCount()

public int getCpuCount()

The number of cpus in the VM.

int32 cpu_count = 7;

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

The datacenterId.

getDatacenterIdBytes()

public ByteString getDatacenterIdBytes()

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

string datacenter_id = 2;

Returns
TypeDescription
ByteString

The bytes for datacenterId.

getDefaultInstanceForType()

public VmwareVmDetails getDefaultInstanceForType()
Returns
TypeDescription
VmwareVmDetails

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDiskCount()

public int getDiskCount()

The number of disks the VM has.

int32 disk_count = 9;

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

The bytes for displayName.

getGuestDescription()

public String getGuestDescription()
Returns
TypeDescription
String

The guestDescription.

getGuestDescriptionBytes()

public ByteString getGuestDescriptionBytes()
Returns
TypeDescription
ByteString

The bytes for guestDescription.

getMemoryMb()

public int getMemoryMb()

The size of the memory of the VM in MB.

int32 memory_mb = 8;

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

The uuid.

getUuidBytes()

public ByteString getUuidBytes()

The unique identifier of the VM in vCenter.

string uuid = 4;

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

The bytes for vmId.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(VmwareVmDetails other)

public VmwareVmDetails.Builder mergeFrom(VmwareVmDetails other)
Parameter
NameDescription
otherVmwareVmDetails
Returns
TypeDescription
VmwareVmDetails.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VmwareVmDetails.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueVmwareVmDetails.BootOption

The bootOption to set.

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

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

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

The committedStorageMb to set.

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

The cpuCount to set.

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

The datacenterDescription to set.

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

The bytes for datacenterDescription to set.

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

The datacenterId to set.

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

The bytes for datacenterId to set.

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

The diskCount to set.

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

The displayName to set.

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

The bytes for displayName to set.

Returns
TypeDescription
VmwareVmDetails.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setGuestDescription(String value)

public VmwareVmDetails.Builder setGuestDescription(String value)
Parameter
NameDescription
valueString

The guestDescription to set.

Returns
TypeDescription
VmwareVmDetails.Builder

This builder for chaining.

setGuestDescriptionBytes(ByteString value)

public VmwareVmDetails.Builder setGuestDescriptionBytes(ByteString value)
Parameter
NameDescription
valueByteString

The bytes for guestDescription to set.

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

The memoryMb to set.

Returns
TypeDescription
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
NameDescription
valueVmwareVmDetails.PowerState

The powerState to set.

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUuid(String value)

public VmwareVmDetails.Builder setUuid(String value)

The unique identifier of the VM in vCenter.

string uuid = 4;

Parameter
NameDescription
valueString

The uuid to set.

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

The bytes for uuid to set.

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

The vmId to set.

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

The bytes for vmId to set.

Returns
TypeDescription
VmwareVmDetails.Builder

This builder for chaining.