Class CpuUtilization (2.49.0)

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
Type Description
int

TARGET_UTILIZATION_FIELD_NUMBER

public static final int TARGET_UTILIZATION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CpuUtilization getDefaultInstance()
Returns
Type Description
CpuUtilization

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static CpuUtilization.Builder newBuilder()
Returns
Type Description
CpuUtilization.Builder

newBuilder(CpuUtilization prototype)

public static CpuUtilization.Builder newBuilder(CpuUtilization prototype)
Parameter
Name Description
prototype CpuUtilization
Returns
Type Description
CpuUtilization.Builder

parseDelimitedFrom(InputStream input)

public static CpuUtilization parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CpuUtilization
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CpuUtilization parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CpuUtilization
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CpuUtilization parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CpuUtilization
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CpuUtilization parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CpuUtilization
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CpuUtilization parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CpuUtilization
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CpuUtilization parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CpuUtilization
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CpuUtilization parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CpuUtilization
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CpuUtilization parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CpuUtilization
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CpuUtilization parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CpuUtilization
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CpuUtilization parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CpuUtilization
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CpuUtilization parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CpuUtilization
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CpuUtilization parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CpuUtilization
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CpuUtilization> parser()
Returns
Type Description
Parser<CpuUtilization>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAggregationWindowLength()

public Duration getAggregationWindowLength()

Period of time over which CPU utilization is calculated.

.google.protobuf.Duration aggregation_window_length = 1;

Returns
Type Description
Duration

The aggregationWindowLength.

getAggregationWindowLengthOrBuilder()

public DurationOrBuilder getAggregationWindowLengthOrBuilder()

Period of time over which CPU utilization is calculated.

.google.protobuf.Duration aggregation_window_length = 1;

Returns
Type Description
DurationOrBuilder

getDefaultInstanceForType()

public CpuUtilization getDefaultInstanceForType()
Returns
Type Description
CpuUtilization

getParserForType()

public Parser<CpuUtilization> getParserForType()
Returns
Type Description
Parser<CpuUtilization>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
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
Type Description
double

The targetUtilization.

hasAggregationWindowLength()

public boolean hasAggregationWindowLength()

Period of time over which CPU utilization is calculated.

.google.protobuf.Duration aggregation_window_length = 1;

Returns
Type Description
boolean

Whether the aggregationWindowLength field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CpuUtilization.Builder newBuilderForType()
Returns
Type Description
CpuUtilization.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CpuUtilization.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CpuUtilization.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public CpuUtilization.Builder toBuilder()
Returns
Type Description
CpuUtilization.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException