public static final class CpuUsageSample.Builder extends GeneratedMessageV3.Builder<CpuUsageSample.Builder> implements CpuUsageSampleOrBuilder
CPU usage sample.
Protobuf type google.cloud.migrationcenter.v1.CpuUsageSample
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CpuUsageSample.BuilderImplements
CpuUsageSampleOrBuilderStatic 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 |
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 |
clearField(Descriptors.FieldDescriptor field)
public CpuUsageSample.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
CpuUsageSample.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public CpuUsageSample.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
CpuUsageSample.Builder |
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 |
getDefaultInstanceForType()
public CpuUsageSample getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
CpuUsageSample |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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 |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public CpuUsageSample.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
CpuUsageSample.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CpuUsageSample.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CpuUsageSample.Builder |
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 |
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 |
setUnknownFields(UnknownFieldSet unknownFields)
public final CpuUsageSample.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CpuUsageSample.Builder |
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. |