Class CpuUtilization (2.3.1)

public final class CpuUtilization extends GeneratedMessageV3 implements CpuUtilizationOrBuilder

Target scaling by CPU usage.

Protobuf type google.appengine.v1.CpuUtilization

Static Fields

AGGREGATION_WINDOW_LENGTH_FIELD_NUMBER

public static final int AGGREGATION_WINDOW_LENGTH_FIELD_NUMBER
Field Value
TypeDescription
int

TARGET_UTILIZATION_FIELD_NUMBER

public static final int TARGET_UTILIZATION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CpuUtilization getDefaultInstance()
Returns
TypeDescription
CpuUtilization

getDescriptor()

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

newBuilder()

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

newBuilder(CpuUtilization prototype)

public static CpuUtilization.Builder newBuilder(CpuUtilization prototype)
Parameter
NameDescription
prototypeCpuUtilization
Returns
TypeDescription
CpuUtilization.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAggregationWindowLength()

public Duration getAggregationWindowLength()

Period of time over which CPU utilization is calculated.

.google.protobuf.Duration aggregation_window_length = 1;

Returns
TypeDescription
Duration

The aggregationWindowLength.

getAggregationWindowLengthOrBuilder()

public DurationOrBuilder getAggregationWindowLengthOrBuilder()

Period of time over which CPU utilization is calculated.

.google.protobuf.Duration aggregation_window_length = 1;

Returns
TypeDescription
DurationOrBuilder

getDefaultInstanceForType()

public CpuUtilization getDefaultInstanceForType()
Returns
TypeDescription
CpuUtilization

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTargetUtilization()

public double getTargetUtilization()

Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1.

double target_utilization = 2;

Returns
TypeDescription
double

The targetUtilization.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasAggregationWindowLength()

public boolean hasAggregationWindowLength()

Period of time over which CPU utilization is calculated.

.google.protobuf.Duration aggregation_window_length = 1;

Returns
TypeDescription
boolean

Whether the aggregationWindowLength field is set.

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 CpuUtilization.Builder newBuilderForType()
Returns
TypeDescription
CpuUtilization.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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