Class AutomaticScaling (2.3.2)

public final class AutomaticScaling extends GeneratedMessageV3 implements AutomaticScalingOrBuilder

Automatic scaling is based on request rate, response latencies, and other application metrics.

Protobuf type google.appengine.v1.AutomaticScaling

Static Fields

COOL_DOWN_PERIOD_FIELD_NUMBER

public static final int COOL_DOWN_PERIOD_FIELD_NUMBER
Field Value
TypeDescription
int

CPU_UTILIZATION_FIELD_NUMBER

public static final int CPU_UTILIZATION_FIELD_NUMBER
Field Value
TypeDescription
int

DISK_UTILIZATION_FIELD_NUMBER

public static final int DISK_UTILIZATION_FIELD_NUMBER
Field Value
TypeDescription
int

MAX_CONCURRENT_REQUESTS_FIELD_NUMBER

public static final int MAX_CONCURRENT_REQUESTS_FIELD_NUMBER
Field Value
TypeDescription
int

MAX_IDLE_INSTANCES_FIELD_NUMBER

public static final int MAX_IDLE_INSTANCES_FIELD_NUMBER
Field Value
TypeDescription
int

MAX_PENDING_LATENCY_FIELD_NUMBER

public static final int MAX_PENDING_LATENCY_FIELD_NUMBER
Field Value
TypeDescription
int

MAX_TOTAL_INSTANCES_FIELD_NUMBER

public static final int MAX_TOTAL_INSTANCES_FIELD_NUMBER
Field Value
TypeDescription
int

MIN_IDLE_INSTANCES_FIELD_NUMBER

public static final int MIN_IDLE_INSTANCES_FIELD_NUMBER
Field Value
TypeDescription
int

MIN_PENDING_LATENCY_FIELD_NUMBER

public static final int MIN_PENDING_LATENCY_FIELD_NUMBER
Field Value
TypeDescription
int

MIN_TOTAL_INSTANCES_FIELD_NUMBER

public static final int MIN_TOTAL_INSTANCES_FIELD_NUMBER
Field Value
TypeDescription
int

NETWORK_UTILIZATION_FIELD_NUMBER

public static final int NETWORK_UTILIZATION_FIELD_NUMBER
Field Value
TypeDescription
int

REQUEST_UTILIZATION_FIELD_NUMBER

public static final int REQUEST_UTILIZATION_FIELD_NUMBER
Field Value
TypeDescription
int

STANDARD_SCHEDULER_SETTINGS_FIELD_NUMBER

public static final int STANDARD_SCHEDULER_SETTINGS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AutomaticScaling getDefaultInstance()
Returns
TypeDescription
AutomaticScaling

getDescriptor()

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

newBuilder()

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

newBuilder(AutomaticScaling prototype)

public static AutomaticScaling.Builder newBuilder(AutomaticScaling prototype)
Parameter
NameDescription
prototypeAutomaticScaling
Returns
TypeDescription
AutomaticScaling.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getCoolDownPeriod()

public Duration getCoolDownPeriod()

The time period that the Autoscaler should wait before it starts collecting information from a new instance. This prevents the autoscaler from collecting information when the instance is initializing, during which the collected usage would not be reliable. Only applicable in the App Engine flexible environment.

.google.protobuf.Duration cool_down_period = 1;

Returns
TypeDescription
Duration

The coolDownPeriod.

getCoolDownPeriodOrBuilder()

public DurationOrBuilder getCoolDownPeriodOrBuilder()

The time period that the Autoscaler should wait before it starts collecting information from a new instance. This prevents the autoscaler from collecting information when the instance is initializing, during which the collected usage would not be reliable. Only applicable in the App Engine flexible environment.

.google.protobuf.Duration cool_down_period = 1;

Returns
TypeDescription
DurationOrBuilder

getCpuUtilization()

public CpuUtilization getCpuUtilization()

Target scaling by CPU usage.

.google.appengine.v1.CpuUtilization cpu_utilization = 2;

Returns
TypeDescription
CpuUtilization

The cpuUtilization.

getCpuUtilizationOrBuilder()

public CpuUtilizationOrBuilder getCpuUtilizationOrBuilder()

Target scaling by CPU usage.

.google.appengine.v1.CpuUtilization cpu_utilization = 2;

Returns
TypeDescription
CpuUtilizationOrBuilder

getDefaultInstanceForType()

public AutomaticScaling getDefaultInstanceForType()
Returns
TypeDescription
AutomaticScaling

getDiskUtilization()

public DiskUtilization getDiskUtilization()

Target scaling by disk usage.

.google.appengine.v1.DiskUtilization disk_utilization = 11;

Returns
TypeDescription
DiskUtilization

The diskUtilization.

getDiskUtilizationOrBuilder()

public DiskUtilizationOrBuilder getDiskUtilizationOrBuilder()

Target scaling by disk usage.

.google.appengine.v1.DiskUtilization disk_utilization = 11;

Returns
TypeDescription
DiskUtilizationOrBuilder

getMaxConcurrentRequests()

public int getMaxConcurrentRequests()

Number of concurrent requests an automatic scaling instance can accept before the scheduler spawns a new instance. Defaults to a runtime-specific value.

int32 max_concurrent_requests = 3;

Returns
TypeDescription
int

The maxConcurrentRequests.

getMaxIdleInstances()

public int getMaxIdleInstances()

Maximum number of idle instances that should be maintained for this version.

int32 max_idle_instances = 4;

Returns
TypeDescription
int

The maxIdleInstances.

getMaxPendingLatency()

public Duration getMaxPendingLatency()

Maximum amount of time that a request should wait in the pending queue before starting a new instance to handle it.

.google.protobuf.Duration max_pending_latency = 6;

Returns
TypeDescription
Duration

The maxPendingLatency.

getMaxPendingLatencyOrBuilder()

public DurationOrBuilder getMaxPendingLatencyOrBuilder()

Maximum amount of time that a request should wait in the pending queue before starting a new instance to handle it.

.google.protobuf.Duration max_pending_latency = 6;

Returns
TypeDescription
DurationOrBuilder

getMaxTotalInstances()

public int getMaxTotalInstances()

Maximum number of instances that should be started to handle requests for this version.

int32 max_total_instances = 5;

Returns
TypeDescription
int

The maxTotalInstances.

getMinIdleInstances()

public int getMinIdleInstances()

Minimum number of idle instances that should be maintained for this version. Only applicable for the default version of a service.

int32 min_idle_instances = 7;

Returns
TypeDescription
int

The minIdleInstances.

getMinPendingLatency()

public Duration getMinPendingLatency()

Minimum amount of time a request should wait in the pending queue before starting a new instance to handle it.

.google.protobuf.Duration min_pending_latency = 9;

Returns
TypeDescription
Duration

The minPendingLatency.

getMinPendingLatencyOrBuilder()

public DurationOrBuilder getMinPendingLatencyOrBuilder()

Minimum amount of time a request should wait in the pending queue before starting a new instance to handle it.

.google.protobuf.Duration min_pending_latency = 9;

Returns
TypeDescription
DurationOrBuilder

getMinTotalInstances()

public int getMinTotalInstances()

Minimum number of running instances that should be maintained for this version.

int32 min_total_instances = 8;

Returns
TypeDescription
int

The minTotalInstances.

getNetworkUtilization()

public NetworkUtilization getNetworkUtilization()

Target scaling by network usage.

.google.appengine.v1.NetworkUtilization network_utilization = 12;

Returns
TypeDescription
NetworkUtilization

The networkUtilization.

getNetworkUtilizationOrBuilder()

public NetworkUtilizationOrBuilder getNetworkUtilizationOrBuilder()

Target scaling by network usage.

.google.appengine.v1.NetworkUtilization network_utilization = 12;

Returns
TypeDescription
NetworkUtilizationOrBuilder

getParserForType()

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

getRequestUtilization()

public RequestUtilization getRequestUtilization()

Target scaling by request utilization.

.google.appengine.v1.RequestUtilization request_utilization = 10;

Returns
TypeDescription
RequestUtilization

The requestUtilization.

getRequestUtilizationOrBuilder()

public RequestUtilizationOrBuilder getRequestUtilizationOrBuilder()

Target scaling by request utilization.

.google.appengine.v1.RequestUtilization request_utilization = 10;

Returns
TypeDescription
RequestUtilizationOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getStandardSchedulerSettings()

public StandardSchedulerSettings getStandardSchedulerSettings()

Scheduler settings for standard environment.

.google.appengine.v1.StandardSchedulerSettings standard_scheduler_settings = 20;

Returns
TypeDescription
StandardSchedulerSettings

The standardSchedulerSettings.

getStandardSchedulerSettingsOrBuilder()

public StandardSchedulerSettingsOrBuilder getStandardSchedulerSettingsOrBuilder()

Scheduler settings for standard environment.

.google.appengine.v1.StandardSchedulerSettings standard_scheduler_settings = 20;

Returns
TypeDescription
StandardSchedulerSettingsOrBuilder

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasCoolDownPeriod()

public boolean hasCoolDownPeriod()

The time period that the Autoscaler should wait before it starts collecting information from a new instance. This prevents the autoscaler from collecting information when the instance is initializing, during which the collected usage would not be reliable. Only applicable in the App Engine flexible environment.

.google.protobuf.Duration cool_down_period = 1;

Returns
TypeDescription
boolean

Whether the coolDownPeriod field is set.

hasCpuUtilization()

public boolean hasCpuUtilization()

Target scaling by CPU usage.

.google.appengine.v1.CpuUtilization cpu_utilization = 2;

Returns
TypeDescription
boolean

Whether the cpuUtilization field is set.

hasDiskUtilization()

public boolean hasDiskUtilization()

Target scaling by disk usage.

.google.appengine.v1.DiskUtilization disk_utilization = 11;

Returns
TypeDescription
boolean

Whether the diskUtilization field is set.

hasMaxPendingLatency()

public boolean hasMaxPendingLatency()

Maximum amount of time that a request should wait in the pending queue before starting a new instance to handle it.

.google.protobuf.Duration max_pending_latency = 6;

Returns
TypeDescription
boolean

Whether the maxPendingLatency field is set.

hasMinPendingLatency()

public boolean hasMinPendingLatency()

Minimum amount of time a request should wait in the pending queue before starting a new instance to handle it.

.google.protobuf.Duration min_pending_latency = 9;

Returns
TypeDescription
boolean

Whether the minPendingLatency field is set.

hasNetworkUtilization()

public boolean hasNetworkUtilization()

Target scaling by network usage.

.google.appengine.v1.NetworkUtilization network_utilization = 12;

Returns
TypeDescription
boolean

Whether the networkUtilization field is set.

hasRequestUtilization()

public boolean hasRequestUtilization()

Target scaling by request utilization.

.google.appengine.v1.RequestUtilization request_utilization = 10;

Returns
TypeDescription
boolean

Whether the requestUtilization field is set.

hasStandardSchedulerSettings()

public boolean hasStandardSchedulerSettings()

Scheduler settings for standard environment.

.google.appengine.v1.StandardSchedulerSettings standard_scheduler_settings = 20;

Returns
TypeDescription
boolean

Whether the standardSchedulerSettings 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 AutomaticScaling.Builder newBuilderForType()
Returns
TypeDescription
AutomaticScaling.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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