Class VmUtilizationMetrics.Builder (1.11.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public VmUtilizationMetrics build()
Returns
TypeDescription
VmUtilizationMetrics

buildPartial()

public VmUtilizationMetrics buildPartial()
Returns
TypeDescription
VmUtilizationMetrics

clear()

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

clearCpuAveragePercent()

public VmUtilizationMetrics.Builder clearCpuAveragePercent()

Average CPU usage, percent.

int32 cpu_average_percent = 10;

Returns
TypeDescription
VmUtilizationMetrics.Builder

This builder for chaining.

clearCpuMaxPercent()

public VmUtilizationMetrics.Builder clearCpuMaxPercent()

Max CPU usage, percent.

int32 cpu_max_percent = 9;

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearMemoryAveragePercent()

public VmUtilizationMetrics.Builder clearMemoryAveragePercent()

Average memory usage, percent.

int32 memory_average_percent = 12;

Returns
TypeDescription
VmUtilizationMetrics.Builder

This builder for chaining.

clearMemoryMaxPercent()

public VmUtilizationMetrics.Builder clearMemoryMaxPercent()

Max memory usage, percent.

int32 memory_max_percent = 11;

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCpuAveragePercent()

public int getCpuAveragePercent()

Average CPU usage, percent.

int32 cpu_average_percent = 10;

Returns
TypeDescription
int

The cpuAveragePercent.

getCpuMaxPercent()

public int getCpuMaxPercent()

Max CPU usage, percent.

int32 cpu_max_percent = 9;

Returns
TypeDescription
int

The cpuMaxPercent.

getDefaultInstanceForType()

public VmUtilizationMetrics getDefaultInstanceForType()
Returns
TypeDescription
VmUtilizationMetrics

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDiskIoRateAverageKbps()

public long getDiskIoRateAverageKbps()

Average disk IO rate, in kilobytes per second.

int64 disk_io_rate_average_kbps = 14;

Returns
TypeDescription
long

The diskIoRateAverageKbps.

getDiskIoRateMaxKbps()

public long getDiskIoRateMaxKbps()

Max disk IO rate, in kilobytes per second.

int64 disk_io_rate_max_kbps = 13;

Returns
TypeDescription
long

The diskIoRateMaxKbps.

getMemoryAveragePercent()

public int getMemoryAveragePercent()

Average memory usage, percent.

int32 memory_average_percent = 12;

Returns
TypeDescription
int

The memoryAveragePercent.

getMemoryMaxPercent()

public int getMemoryMaxPercent()

Max memory usage, percent.

int32 memory_max_percent = 11;

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

The networkThroughputMaxKbps.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(VmUtilizationMetrics other)

public VmUtilizationMetrics.Builder mergeFrom(VmUtilizationMetrics other)
Parameter
NameDescription
otherVmUtilizationMetrics
Returns
TypeDescription
VmUtilizationMetrics.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VmUtilizationMetrics.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
VmUtilizationMetrics.Builder
Overrides

setCpuAveragePercent(int value)

public VmUtilizationMetrics.Builder setCpuAveragePercent(int value)

Average CPU usage, percent.

int32 cpu_average_percent = 10;

Parameter
NameDescription
valueint

The cpuAveragePercent to set.

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

The cpuMaxPercent to set.

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

The diskIoRateAverageKbps to set.

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

The diskIoRateMaxKbps to set.

Returns
TypeDescription
VmUtilizationMetrics.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setMemoryAveragePercent(int value)

public VmUtilizationMetrics.Builder setMemoryAveragePercent(int value)

Average memory usage, percent.

int32 memory_average_percent = 12;

Parameter
NameDescription
valueint

The memoryAveragePercent to set.

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

The memoryMaxPercent to set.

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

The networkThroughputAverageKbps to set.

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

The networkThroughputMaxKbps to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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