Class CpuUsageSample (0.22.0)

public final class CpuUsageSample extends GeneratedMessageV3 implements CpuUsageSampleOrBuilder

CPU usage sample.

Protobuf type google.cloud.migrationcenter.v1.CpuUsageSample

Static Fields

UTILIZED_PERCENTAGE_FIELD_NUMBER

public static final int UTILIZED_PERCENTAGE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CpuUsageSample getDefaultInstance()
Returns
TypeDescription
CpuUsageSample

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static CpuUsageSample.Builder newBuilder()
Returns
TypeDescription
CpuUsageSample.Builder

newBuilder(CpuUsageSample prototype)

public static CpuUsageSample.Builder newBuilder(CpuUsageSample prototype)
Parameter
NameDescription
prototypeCpuUsageSample
Returns
TypeDescription
CpuUsageSample.Builder

parseDelimitedFrom(InputStream input)

public static CpuUsageSample parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CpuUsageSample
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CpuUsageSample parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CpuUsageSample
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CpuUsageSample parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CpuUsageSample
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CpuUsageSample parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CpuUsageSample
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CpuUsageSample parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CpuUsageSample
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CpuUsageSample parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CpuUsageSample
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CpuUsageSample parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CpuUsageSample
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CpuUsageSample parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CpuUsageSample
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CpuUsageSample parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CpuUsageSample
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CpuUsageSample parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CpuUsageSample
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CpuUsageSample parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CpuUsageSample
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CpuUsageSample parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CpuUsageSample
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CpuUsageSample> parser()
Returns
TypeDescription
Parser<CpuUsageSample>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public CpuUsageSample getDefaultInstanceForType()
Returns
TypeDescription
CpuUsageSample

getParserForType()

public Parser<CpuUsageSample> getParserForType()
Returns
TypeDescription
Parser<CpuUsageSample>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CpuUsageSample.Builder newBuilderForType()
Returns
TypeDescription
CpuUsageSample.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CpuUsageSample.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CpuUsageSample.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CpuUsageSample.Builder toBuilder()
Returns
TypeDescription
CpuUsageSample.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException