Class CpuUsageSample.Builder (0.29.0)

public static final class CpuUsageSample.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CpuUsageSample.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final CpuUsageSample.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.