Class VmUtilizationInfo.Builder (1.42.0)

public static final class VmUtilizationInfo.Builder extends GeneratedMessageV3.Builder<VmUtilizationInfo.Builder> implements VmUtilizationInfoOrBuilder

Utilization information of a single VM.

Protobuf type google.cloud.vmmigration.v1.VmUtilizationInfo

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public VmUtilizationInfo build()
Returns
Type Description
VmUtilizationInfo

buildPartial()

public VmUtilizationInfo buildPartial()
Returns
Type Description
VmUtilizationInfo

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUtilization()

public VmUtilizationInfo.Builder clearUtilization()

Utilization metrics for this VM.

.google.cloud.vmmigration.v1.VmUtilizationMetrics utilization = 2;

Returns
Type Description
VmUtilizationInfo.Builder

clearVmDetails()

public VmUtilizationInfo.Builder clearVmDetails()
Returns
Type Description
VmUtilizationInfo.Builder

clearVmId()

public VmUtilizationInfo.Builder clearVmId()

The VM's ID in the source.

string vm_id = 3;

Returns
Type Description
VmUtilizationInfo.Builder

This builder for chaining.

clearVmwareVmDetails()

public VmUtilizationInfo.Builder clearVmwareVmDetails()

The description of the VM in a Source of type Vmware.

.google.cloud.vmmigration.v1.VmwareVmDetails vmware_vm_details = 1;

Returns
Type Description
VmUtilizationInfo.Builder

clone()

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

getDefaultInstanceForType()

public VmUtilizationInfo getDefaultInstanceForType()
Returns
Type Description
VmUtilizationInfo

getDescriptorForType()

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

getUtilization()

public VmUtilizationMetrics getUtilization()

Utilization metrics for this VM.

.google.cloud.vmmigration.v1.VmUtilizationMetrics utilization = 2;

Returns
Type Description
VmUtilizationMetrics

The utilization.

getUtilizationBuilder()

public VmUtilizationMetrics.Builder getUtilizationBuilder()

Utilization metrics for this VM.

.google.cloud.vmmigration.v1.VmUtilizationMetrics utilization = 2;

Returns
Type Description
VmUtilizationMetrics.Builder

getUtilizationOrBuilder()

public VmUtilizationMetricsOrBuilder getUtilizationOrBuilder()

Utilization metrics for this VM.

.google.cloud.vmmigration.v1.VmUtilizationMetrics utilization = 2;

Returns
Type Description
VmUtilizationMetricsOrBuilder

getVmDetailsCase()

public VmUtilizationInfo.VmDetailsCase getVmDetailsCase()
Returns
Type Description
VmUtilizationInfo.VmDetailsCase

getVmId()

public String getVmId()

The VM's ID in the source.

string vm_id = 3;

Returns
Type Description
String

The vmId.

getVmIdBytes()

public ByteString getVmIdBytes()

The VM's ID in the source.

string vm_id = 3;

Returns
Type Description
ByteString

The bytes for vmId.

getVmwareVmDetails()

public VmwareVmDetails getVmwareVmDetails()

The description of the VM in a Source of type Vmware.

.google.cloud.vmmigration.v1.VmwareVmDetails vmware_vm_details = 1;

Returns
Type Description
VmwareVmDetails

The vmwareVmDetails.

getVmwareVmDetailsBuilder()

public VmwareVmDetails.Builder getVmwareVmDetailsBuilder()

The description of the VM in a Source of type Vmware.

.google.cloud.vmmigration.v1.VmwareVmDetails vmware_vm_details = 1;

Returns
Type Description
VmwareVmDetails.Builder

getVmwareVmDetailsOrBuilder()

public VmwareVmDetailsOrBuilder getVmwareVmDetailsOrBuilder()

The description of the VM in a Source of type Vmware.

.google.cloud.vmmigration.v1.VmwareVmDetails vmware_vm_details = 1;

Returns
Type Description
VmwareVmDetailsOrBuilder

hasUtilization()

public boolean hasUtilization()

Utilization metrics for this VM.

.google.cloud.vmmigration.v1.VmUtilizationMetrics utilization = 2;

Returns
Type Description
boolean

Whether the utilization field is set.

hasVmwareVmDetails()

public boolean hasVmwareVmDetails()

The description of the VM in a Source of type Vmware.

.google.cloud.vmmigration.v1.VmwareVmDetails vmware_vm_details = 1;

Returns
Type Description
boolean

Whether the vmwareVmDetails field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(VmUtilizationInfo other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUtilization(VmUtilizationMetrics value)

public VmUtilizationInfo.Builder mergeUtilization(VmUtilizationMetrics value)

Utilization metrics for this VM.

.google.cloud.vmmigration.v1.VmUtilizationMetrics utilization = 2;

Parameter
Name Description
value VmUtilizationMetrics
Returns
Type Description
VmUtilizationInfo.Builder

mergeVmwareVmDetails(VmwareVmDetails value)

public VmUtilizationInfo.Builder mergeVmwareVmDetails(VmwareVmDetails value)

The description of the VM in a Source of type Vmware.

.google.cloud.vmmigration.v1.VmwareVmDetails vmware_vm_details = 1;

Parameter
Name Description
value VmwareVmDetails
Returns
Type Description
VmUtilizationInfo.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUtilization(VmUtilizationMetrics value)

public VmUtilizationInfo.Builder setUtilization(VmUtilizationMetrics value)

Utilization metrics for this VM.

.google.cloud.vmmigration.v1.VmUtilizationMetrics utilization = 2;

Parameter
Name Description
value VmUtilizationMetrics
Returns
Type Description
VmUtilizationInfo.Builder

setUtilization(VmUtilizationMetrics.Builder builderForValue)

public VmUtilizationInfo.Builder setUtilization(VmUtilizationMetrics.Builder builderForValue)

Utilization metrics for this VM.

.google.cloud.vmmigration.v1.VmUtilizationMetrics utilization = 2;

Parameter
Name Description
builderForValue VmUtilizationMetrics.Builder
Returns
Type Description
VmUtilizationInfo.Builder

setVmId(String value)

public VmUtilizationInfo.Builder setVmId(String value)

The VM's ID in the source.

string vm_id = 3;

Parameter
Name Description
value String

The vmId to set.

Returns
Type Description
VmUtilizationInfo.Builder

This builder for chaining.

setVmIdBytes(ByteString value)

public VmUtilizationInfo.Builder setVmIdBytes(ByteString value)

The VM's ID in the source.

string vm_id = 3;

Parameter
Name Description
value ByteString

The bytes for vmId to set.

Returns
Type Description
VmUtilizationInfo.Builder

This builder for chaining.

setVmwareVmDetails(VmwareVmDetails value)

public VmUtilizationInfo.Builder setVmwareVmDetails(VmwareVmDetails value)

The description of the VM in a Source of type Vmware.

.google.cloud.vmmigration.v1.VmwareVmDetails vmware_vm_details = 1;

Parameter
Name Description
value VmwareVmDetails
Returns
Type Description
VmUtilizationInfo.Builder

setVmwareVmDetails(VmwareVmDetails.Builder builderForValue)

public VmUtilizationInfo.Builder setVmwareVmDetails(VmwareVmDetails.Builder builderForValue)

The description of the VM in a Source of type Vmware.

.google.cloud.vmmigration.v1.VmwareVmDetails vmware_vm_details = 1;

Parameter
Name Description
builderForValue VmwareVmDetails.Builder
Returns
Type Description
VmUtilizationInfo.Builder