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
CPU_UTILIZATION_FIELD_NUMBER
public static final int CPU_UTILIZATION_FIELD_NUMBER
Field Value
DISK_UTILIZATION_FIELD_NUMBER
public static final int DISK_UTILIZATION_FIELD_NUMBER
Field Value
MAX_CONCURRENT_REQUESTS_FIELD_NUMBER
public static final int MAX_CONCURRENT_REQUESTS_FIELD_NUMBER
Field Value
MAX_IDLE_INSTANCES_FIELD_NUMBER
public static final int MAX_IDLE_INSTANCES_FIELD_NUMBER
Field Value
MAX_PENDING_LATENCY_FIELD_NUMBER
public static final int MAX_PENDING_LATENCY_FIELD_NUMBER
Field Value
MAX_TOTAL_INSTANCES_FIELD_NUMBER
public static final int MAX_TOTAL_INSTANCES_FIELD_NUMBER
Field Value
MIN_IDLE_INSTANCES_FIELD_NUMBER
public static final int MIN_IDLE_INSTANCES_FIELD_NUMBER
Field Value
MIN_PENDING_LATENCY_FIELD_NUMBER
public static final int MIN_PENDING_LATENCY_FIELD_NUMBER
Field Value
MIN_TOTAL_INSTANCES_FIELD_NUMBER
public static final int MIN_TOTAL_INSTANCES_FIELD_NUMBER
Field Value
NETWORK_UTILIZATION_FIELD_NUMBER
public static final int NETWORK_UTILIZATION_FIELD_NUMBER
Field Value
REQUEST_UTILIZATION_FIELD_NUMBER
public static final int REQUEST_UTILIZATION_FIELD_NUMBER
Field Value
STANDARD_SCHEDULER_SETTINGS_FIELD_NUMBER
public static final int STANDARD_SCHEDULER_SETTINGS_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static AutomaticScaling getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static AutomaticScaling.Builder newBuilder()
Returns
newBuilder(AutomaticScaling prototype)
public static AutomaticScaling.Builder newBuilder(AutomaticScaling prototype)
Parameter
Returns
public static AutomaticScaling parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static AutomaticScaling parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static AutomaticScaling parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AutomaticScaling parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static AutomaticScaling parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AutomaticScaling parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AutomaticScaling parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static AutomaticScaling parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AutomaticScaling parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static AutomaticScaling parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static AutomaticScaling parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AutomaticScaling parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<AutomaticScaling> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
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
Type | Description |
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
getCpuUtilization()
public CpuUtilization getCpuUtilization()
Target scaling by CPU usage.
.google.appengine.v1.CpuUtilization cpu_utilization = 2;
Returns
getCpuUtilizationOrBuilder()
public CpuUtilizationOrBuilder getCpuUtilizationOrBuilder()
Target scaling by CPU usage.
.google.appengine.v1.CpuUtilization cpu_utilization = 2;
Returns
getDefaultInstanceForType()
public AutomaticScaling getDefaultInstanceForType()
Returns
getDiskUtilization()
public DiskUtilization getDiskUtilization()
Target scaling by disk usage.
.google.appengine.v1.DiskUtilization disk_utilization = 11;
Returns
getDiskUtilizationOrBuilder()
public DiskUtilizationOrBuilder getDiskUtilizationOrBuilder()
Target scaling by disk usage.
.google.appengine.v1.DiskUtilization disk_utilization = 11;
Returns
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
Type | Description |
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
Type | Description |
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
Type | Description |
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
getMaxTotalInstances()
public int getMaxTotalInstances()
Maximum number of instances that should be started to handle requests for
this version.
int32 max_total_instances = 5;
Returns
Type | Description |
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
Type | Description |
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
Type | Description |
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
getMinTotalInstances()
public int getMinTotalInstances()
Minimum number of running instances that should be maintained for this
version.
int32 min_total_instances = 8;
Returns
Type | Description |
int | The minTotalInstances.
|
getNetworkUtilization()
public NetworkUtilization getNetworkUtilization()
Target scaling by network usage.
.google.appengine.v1.NetworkUtilization network_utilization = 12;
Returns
getNetworkUtilizationOrBuilder()
public NetworkUtilizationOrBuilder getNetworkUtilizationOrBuilder()
Target scaling by network usage.
.google.appengine.v1.NetworkUtilization network_utilization = 12;
Returns
getParserForType()
public Parser<AutomaticScaling> getParserForType()
Returns
Overrides
getRequestUtilization()
public RequestUtilization getRequestUtilization()
Target scaling by request utilization.
.google.appengine.v1.RequestUtilization request_utilization = 10;
Returns
getRequestUtilizationOrBuilder()
public RequestUtilizationOrBuilder getRequestUtilizationOrBuilder()
Target scaling by request utilization.
.google.appengine.v1.RequestUtilization request_utilization = 10;
Returns
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getStandardSchedulerSettings()
public StandardSchedulerSettings getStandardSchedulerSettings()
Scheduler settings for standard environment.
.google.appengine.v1.StandardSchedulerSettings standard_scheduler_settings = 20;
Returns
getStandardSchedulerSettingsOrBuilder()
public StandardSchedulerSettingsOrBuilder getStandardSchedulerSettingsOrBuilder()
Scheduler settings for standard environment.
.google.appengine.v1.StandardSchedulerSettings standard_scheduler_settings = 20;
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
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
Type | Description |
boolean | Whether the coolDownPeriod field is set.
|
hasCpuUtilization()
public boolean hasCpuUtilization()
Target scaling by CPU usage.
.google.appengine.v1.CpuUtilization cpu_utilization = 2;
Returns
Type | Description |
boolean | Whether the cpuUtilization field is set.
|
hasDiskUtilization()
public boolean hasDiskUtilization()
Target scaling by disk usage.
.google.appengine.v1.DiskUtilization disk_utilization = 11;
Returns
Type | Description |
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
Type | Description |
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
Type | Description |
boolean | Whether the minPendingLatency field is set.
|
hasNetworkUtilization()
public boolean hasNetworkUtilization()
Target scaling by network usage.
.google.appengine.v1.NetworkUtilization network_utilization = 12;
Returns
Type | Description |
boolean | Whether the networkUtilization field is set.
|
hasRequestUtilization()
public boolean hasRequestUtilization()
Target scaling by request utilization.
.google.appengine.v1.RequestUtilization request_utilization = 10;
Returns
Type | Description |
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
Type | Description |
boolean | Whether the standardSchedulerSettings field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public AutomaticScaling.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AutomaticScaling.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public AutomaticScaling.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions