Class VmUtilizationInfo.Builder (1.35.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public VmUtilizationInfo build()
Returns
TypeDescription
VmUtilizationInfo

buildPartial()

public VmUtilizationInfo buildPartial()
Returns
TypeDescription
VmUtilizationInfo

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUtilization()

public VmUtilizationInfo.Builder clearUtilization()

Utilization metrics for this VM.

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

Returns
TypeDescription
VmUtilizationInfo.Builder

clearVmDetails()

public VmUtilizationInfo.Builder clearVmDetails()
Returns
TypeDescription
VmUtilizationInfo.Builder

clearVmId()

public VmUtilizationInfo.Builder clearVmId()

The VM's ID in the source.

string vm_id = 3;

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

clone()

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

getDefaultInstanceForType()

public VmUtilizationInfo getDefaultInstanceForType()
Returns
TypeDescription
VmUtilizationInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getUtilization()

public VmUtilizationMetrics getUtilization()

Utilization metrics for this VM.

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

Returns
TypeDescription
VmUtilizationMetrics

The utilization.

getUtilizationBuilder()

public VmUtilizationMetrics.Builder getUtilizationBuilder()

Utilization metrics for this VM.

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

Returns
TypeDescription
VmUtilizationMetrics.Builder

getUtilizationOrBuilder()

public VmUtilizationMetricsOrBuilder getUtilizationOrBuilder()

Utilization metrics for this VM.

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

Returns
TypeDescription
VmUtilizationMetricsOrBuilder

getVmDetailsCase()

public VmUtilizationInfo.VmDetailsCase getVmDetailsCase()
Returns
TypeDescription
VmUtilizationInfo.VmDetailsCase

getVmId()

public String getVmId()

The VM's ID in the source.

string vm_id = 3;

Returns
TypeDescription
String

The vmId.

getVmIdBytes()

public ByteString getVmIdBytes()

The VM's ID in the source.

string vm_id = 3;

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

hasUtilization()

public boolean hasUtilization()

Utilization metrics for this VM.

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

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

Whether the vmwareVmDetails field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(VmUtilizationInfo other)

public VmUtilizationInfo.Builder mergeFrom(VmUtilizationInfo other)
Parameter
NameDescription
otherVmUtilizationInfo
Returns
TypeDescription
VmUtilizationInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public VmUtilizationInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
VmUtilizationInfo.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final VmUtilizationInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueVmUtilizationMetrics
Returns
TypeDescription
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
NameDescription
builderForValueVmUtilizationMetrics.Builder
Returns
TypeDescription
VmUtilizationInfo.Builder

setVmId(String value)

public VmUtilizationInfo.Builder setVmId(String value)

The VM's ID in the source.

string vm_id = 3;

Parameter
NameDescription
valueString

The vmId to set.

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

The bytes for vmId to set.

Returns
TypeDescription
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
NameDescription
valueVmwareVmDetails
Returns
TypeDescription
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
NameDescription
builderForValueVmwareVmDetails.Builder
Returns
TypeDescription
VmUtilizationInfo.Builder