public static final class CpuUsageSample.Builder extends GeneratedMessageV3.Builder<CpuUsageSample.Builder> implements CpuUsageSampleOrBuilder
CPU usage sample.
Protobuf type google.cloud.migrationcenter.v1.CpuUsageSample
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CpuUsageSample.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CpuUsageSample build()
buildPartial()
public CpuUsageSample buildPartial()
clear()
public CpuUsageSample.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public CpuUsageSample.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CpuUsageSample.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
clone()
public CpuUsageSample.Builder clone()
Overrides
getDefaultInstanceForType()
public CpuUsageSample getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(CpuUsageSample other)
public CpuUsageSample.Builder mergeFrom(CpuUsageSample other)
public CpuUsageSample.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CpuUsageSample.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CpuUsageSample.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CpuUsageSample.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CpuUsageSample.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CpuUsageSample.Builder setUnknownFields(UnknownFieldSet unknownFields)
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.
|