Class CpuUsageSample.Builder (0.14.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CpuUsageSample build()
Returns
TypeDescription
CpuUsageSample

buildPartial()

public CpuUsageSample buildPartial()
Returns
TypeDescription
CpuUsageSample

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CpuUsageSample.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
CpuUsageSample.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CpuUsageSample getDefaultInstanceForType()
Returns
TypeDescription
CpuUsageSample

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
float

The utilizedPercentage.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CpuUsageSample other)

public CpuUsageSample.Builder mergeFrom(CpuUsageSample other)
Parameter
NameDescription
otherCpuUsageSample
Returns
TypeDescription
CpuUsageSample.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

The utilizedPercentage to set.

Returns
TypeDescription
CpuUsageSample.Builder

This builder for chaining.