Class VmUtilizationMetrics.Builder (1.47.0)

public static final class VmUtilizationMetrics.Builder extends GeneratedMessageV3.Builder<VmUtilizationMetrics.Builder> implements VmUtilizationMetricsOrBuilder

Utilization metrics values for a single VM.

Protobuf type google.cloud.vmmigration.v1.VmUtilizationMetrics

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public VmUtilizationMetrics build()
Returns
Type Description
VmUtilizationMetrics

buildPartial()

public VmUtilizationMetrics buildPartial()
Returns
Type Description
VmUtilizationMetrics

clear()

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

clearCpuAveragePercent()

public VmUtilizationMetrics.Builder clearCpuAveragePercent()

Average CPU usage, percent.

int32 cpu_average_percent = 10;

Returns
Type Description
VmUtilizationMetrics.Builder

This builder for chaining.

clearCpuMaxPercent()

public VmUtilizationMetrics.Builder clearCpuMaxPercent()

Max CPU usage, percent.

int32 cpu_max_percent = 9;

Returns
Type Description
VmUtilizationMetrics.Builder

This builder for chaining.

clearDiskIoRateAverageKbps()

public VmUtilizationMetrics.Builder clearDiskIoRateAverageKbps()

Average disk IO rate, in kilobytes per second.

int64 disk_io_rate_average_kbps = 14;

Returns
Type Description
VmUtilizationMetrics.Builder

This builder for chaining.

clearDiskIoRateMaxKbps()

public VmUtilizationMetrics.Builder clearDiskIoRateMaxKbps()

Max disk IO rate, in kilobytes per second.

int64 disk_io_rate_max_kbps = 13;

Returns
Type Description
VmUtilizationMetrics.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearMemoryAveragePercent()

public VmUtilizationMetrics.Builder clearMemoryAveragePercent()

Average memory usage, percent.

int32 memory_average_percent = 12;

Returns
Type Description
VmUtilizationMetrics.Builder

This builder for chaining.

clearMemoryMaxPercent()

public VmUtilizationMetrics.Builder clearMemoryMaxPercent()

Max memory usage, percent.

int32 memory_max_percent = 11;

Returns
Type Description
VmUtilizationMetrics.Builder

This builder for chaining.

clearNetworkThroughputAverageKbps()

public VmUtilizationMetrics.Builder clearNetworkThroughputAverageKbps()

Average network throughput (combined transmit-rates and receive-rates), in kilobytes per second.

int64 network_throughput_average_kbps = 16;

Returns
Type Description
VmUtilizationMetrics.Builder

This builder for chaining.

clearNetworkThroughputMaxKbps()

public VmUtilizationMetrics.Builder clearNetworkThroughputMaxKbps()

Max network throughput (combined transmit-rates and receive-rates), in kilobytes per second.

int64 network_throughput_max_kbps = 15;

Returns
Type Description
VmUtilizationMetrics.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCpuAveragePercent()

public int getCpuAveragePercent()

Average CPU usage, percent.

int32 cpu_average_percent = 10;

Returns
Type Description
int

The cpuAveragePercent.

getCpuMaxPercent()

public int getCpuMaxPercent()

Max CPU usage, percent.

int32 cpu_max_percent = 9;

Returns
Type Description
int

The cpuMaxPercent.

getDefaultInstanceForType()

public VmUtilizationMetrics getDefaultInstanceForType()
Returns
Type Description
VmUtilizationMetrics

getDescriptorForType()

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

getDiskIoRateAverageKbps()

public long getDiskIoRateAverageKbps()

Average disk IO rate, in kilobytes per second.

int64 disk_io_rate_average_kbps = 14;

Returns
Type Description
long

The diskIoRateAverageKbps.

getDiskIoRateMaxKbps()

public long getDiskIoRateMaxKbps()

Max disk IO rate, in kilobytes per second.

int64 disk_io_rate_max_kbps = 13;

Returns
Type Description
long

The diskIoRateMaxKbps.

getMemoryAveragePercent()

public int getMemoryAveragePercent()

Average memory usage, percent.

int32 memory_average_percent = 12;

Returns
Type Description
int

The memoryAveragePercent.

getMemoryMaxPercent()

public int getMemoryMaxPercent()

Max memory usage, percent.

int32 memory_max_percent = 11;

Returns
Type Description
int

The memoryMaxPercent.

getNetworkThroughputAverageKbps()

public long getNetworkThroughputAverageKbps()

Average network throughput (combined transmit-rates and receive-rates), in kilobytes per second.

int64 network_throughput_average_kbps = 16;

Returns
Type Description
long

The networkThroughputAverageKbps.

getNetworkThroughputMaxKbps()

public long getNetworkThroughputMaxKbps()

Max network throughput (combined transmit-rates and receive-rates), in kilobytes per second.

int64 network_throughput_max_kbps = 15;

Returns
Type Description
long

The networkThroughputMaxKbps.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(VmUtilizationMetrics other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCpuAveragePercent(int value)

public VmUtilizationMetrics.Builder setCpuAveragePercent(int value)

Average CPU usage, percent.

int32 cpu_average_percent = 10;

Parameter
Name Description
value int

The cpuAveragePercent to set.

Returns
Type Description
VmUtilizationMetrics.Builder

This builder for chaining.

setCpuMaxPercent(int value)

public VmUtilizationMetrics.Builder setCpuMaxPercent(int value)

Max CPU usage, percent.

int32 cpu_max_percent = 9;

Parameter
Name Description
value int

The cpuMaxPercent to set.

Returns
Type Description
VmUtilizationMetrics.Builder

This builder for chaining.

setDiskIoRateAverageKbps(long value)

public VmUtilizationMetrics.Builder setDiskIoRateAverageKbps(long value)

Average disk IO rate, in kilobytes per second.

int64 disk_io_rate_average_kbps = 14;

Parameter
Name Description
value long

The diskIoRateAverageKbps to set.

Returns
Type Description
VmUtilizationMetrics.Builder

This builder for chaining.

setDiskIoRateMaxKbps(long value)

public VmUtilizationMetrics.Builder setDiskIoRateMaxKbps(long value)

Max disk IO rate, in kilobytes per second.

int64 disk_io_rate_max_kbps = 13;

Parameter
Name Description
value long

The diskIoRateMaxKbps to set.

Returns
Type Description
VmUtilizationMetrics.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setMemoryAveragePercent(int value)

public VmUtilizationMetrics.Builder setMemoryAveragePercent(int value)

Average memory usage, percent.

int32 memory_average_percent = 12;

Parameter
Name Description
value int

The memoryAveragePercent to set.

Returns
Type Description
VmUtilizationMetrics.Builder

This builder for chaining.

setMemoryMaxPercent(int value)

public VmUtilizationMetrics.Builder setMemoryMaxPercent(int value)

Max memory usage, percent.

int32 memory_max_percent = 11;

Parameter
Name Description
value int

The memoryMaxPercent to set.

Returns
Type Description
VmUtilizationMetrics.Builder

This builder for chaining.

setNetworkThroughputAverageKbps(long value)

public VmUtilizationMetrics.Builder setNetworkThroughputAverageKbps(long value)

Average network throughput (combined transmit-rates and receive-rates), in kilobytes per second.

int64 network_throughput_average_kbps = 16;

Parameter
Name Description
value long

The networkThroughputAverageKbps to set.

Returns
Type Description
VmUtilizationMetrics.Builder

This builder for chaining.

setNetworkThroughputMaxKbps(long value)

public VmUtilizationMetrics.Builder setNetworkThroughputMaxKbps(long value)

Max network throughput (combined transmit-rates and receive-rates), in kilobytes per second.

int64 network_throughput_max_kbps = 15;

Parameter
Name Description
value long

The networkThroughputMaxKbps to set.

Returns
Type Description
VmUtilizationMetrics.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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