Class CpuUsageSample.Builder (0.65.0)

public static final class CpuUsageSample.Builder extends GeneratedMessage.Builder<CpuUsageSample.Builder> implements CpuUsageSampleOrBuilder

CPU usage sample.

Protobuf type google.cloud.migrationcenter.v1.CpuUsageSample

Static Methods

getDescriptor()

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

Methods

build()

public CpuUsageSample build()
Returns
Type Description
CpuUsageSample

buildPartial()

public CpuUsageSample buildPartial()
Returns
Type Description
CpuUsageSample

clear()

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

clearUtilizedPercentage()

public CpuUsageSample.Builder clearUtilizedPercentage()

Percentage of total CPU capacity utilized. Must be in the interval [0, 100]. On most systems can be calculated using 100 - idle percentage.

float utilized_percentage = 1;

Returns
Type Description
CpuUsageSample.Builder

This builder for chaining.

getDefaultInstanceForType()

public CpuUsageSample getDefaultInstanceForType()
Returns
Type Description
CpuUsageSample

getDescriptorForType()

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

getUtilizedPercentage()

public float getUtilizedPercentage()

Percentage of total CPU capacity utilized. Must be in the interval [0, 100]. On most systems can be calculated using 100 - idle percentage.

float utilized_percentage = 1;

Returns
Type Description
float

The utilizedPercentage.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CpuUsageSample other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setUtilizedPercentage(float value)

public CpuUsageSample.Builder setUtilizedPercentage(float value)

Percentage of total CPU capacity utilized. Must be in the interval [0, 100]. On most systems can be calculated using 100 - idle percentage.

float utilized_percentage = 1;

Parameter
Name Description
value float

The utilizedPercentage to set.

Returns
Type Description
CpuUsageSample.Builder

This builder for chaining.