Class AutomaticScaling.Builder (2.23.0)

public static final class AutomaticScaling.Builder extends GeneratedMessageV3.Builder<AutomaticScaling.Builder> implements AutomaticScalingOrBuilder

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

Protobuf type google.appengine.v1.AutomaticScaling

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AutomaticScaling.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AutomaticScaling.Builder
Overrides

build()

public AutomaticScaling build()
Returns
TypeDescription
AutomaticScaling

buildPartial()

public AutomaticScaling buildPartial()
Returns
TypeDescription
AutomaticScaling

clear()

public AutomaticScaling.Builder clear()
Returns
TypeDescription
AutomaticScaling.Builder
Overrides

clearCoolDownPeriod()

public AutomaticScaling.Builder clearCoolDownPeriod()

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
AutomaticScaling.Builder

clearCpuUtilization()

public AutomaticScaling.Builder clearCpuUtilization()

Target scaling by CPU usage.

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

Returns
TypeDescription
AutomaticScaling.Builder

clearDiskUtilization()

public AutomaticScaling.Builder clearDiskUtilization()

Target scaling by disk usage.

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

Returns
TypeDescription
AutomaticScaling.Builder

clearField(Descriptors.FieldDescriptor field)

public AutomaticScaling.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AutomaticScaling.Builder
Overrides

clearMaxConcurrentRequests()

public AutomaticScaling.Builder clearMaxConcurrentRequests()

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
AutomaticScaling.Builder

This builder for chaining.

clearMaxIdleInstances()

public AutomaticScaling.Builder clearMaxIdleInstances()

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

int32 max_idle_instances = 4;

Returns
TypeDescription
AutomaticScaling.Builder

This builder for chaining.

clearMaxPendingLatency()

public AutomaticScaling.Builder clearMaxPendingLatency()

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
AutomaticScaling.Builder

clearMaxTotalInstances()

public AutomaticScaling.Builder clearMaxTotalInstances()

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

int32 max_total_instances = 5;

Returns
TypeDescription
AutomaticScaling.Builder

This builder for chaining.

clearMinIdleInstances()

public AutomaticScaling.Builder clearMinIdleInstances()

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
AutomaticScaling.Builder

This builder for chaining.

clearMinPendingLatency()

public AutomaticScaling.Builder clearMinPendingLatency()

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
AutomaticScaling.Builder

clearMinTotalInstances()

public AutomaticScaling.Builder clearMinTotalInstances()

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

int32 min_total_instances = 8;

Returns
TypeDescription
AutomaticScaling.Builder

This builder for chaining.

clearNetworkUtilization()

public AutomaticScaling.Builder clearNetworkUtilization()

Target scaling by network usage.

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

Returns
TypeDescription
AutomaticScaling.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public AutomaticScaling.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AutomaticScaling.Builder
Overrides

clearRequestUtilization()

public AutomaticScaling.Builder clearRequestUtilization()

Target scaling by request utilization.

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

Returns
TypeDescription
AutomaticScaling.Builder

clearStandardSchedulerSettings()

public AutomaticScaling.Builder clearStandardSchedulerSettings()

Scheduler settings for standard environment.

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

Returns
TypeDescription
AutomaticScaling.Builder

clone()

public AutomaticScaling.Builder clone()
Returns
TypeDescription
AutomaticScaling.Builder
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.

getCoolDownPeriodBuilder()

public Duration.Builder getCoolDownPeriodBuilder()

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
Builder

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.

getCpuUtilizationBuilder()

public CpuUtilization.Builder getCpuUtilizationBuilder()

Target scaling by CPU usage.

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

Returns
TypeDescription
CpuUtilization.Builder

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDiskUtilization()

public DiskUtilization getDiskUtilization()

Target scaling by disk usage.

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

Returns
TypeDescription
DiskUtilization

The diskUtilization.

getDiskUtilizationBuilder()

public DiskUtilization.Builder getDiskUtilizationBuilder()

Target scaling by disk usage.

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

Returns
TypeDescription
DiskUtilization.Builder

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.

getMaxPendingLatencyBuilder()

public Duration.Builder getMaxPendingLatencyBuilder()

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
Builder

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.

getMinPendingLatencyBuilder()

public Duration.Builder getMinPendingLatencyBuilder()

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
Builder

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.

getNetworkUtilizationBuilder()

public NetworkUtilization.Builder getNetworkUtilizationBuilder()

Target scaling by network usage.

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

Returns
TypeDescription
NetworkUtilization.Builder

getNetworkUtilizationOrBuilder()

public NetworkUtilizationOrBuilder getNetworkUtilizationOrBuilder()

Target scaling by network usage.

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

Returns
TypeDescription
NetworkUtilizationOrBuilder

getRequestUtilization()

public RequestUtilization getRequestUtilization()

Target scaling by request utilization.

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

Returns
TypeDescription
RequestUtilization

The requestUtilization.

getRequestUtilizationBuilder()

public RequestUtilization.Builder getRequestUtilizationBuilder()

Target scaling by request utilization.

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

Returns
TypeDescription
RequestUtilization.Builder

getRequestUtilizationOrBuilder()

public RequestUtilizationOrBuilder getRequestUtilizationOrBuilder()

Target scaling by request utilization.

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

Returns
TypeDescription
RequestUtilizationOrBuilder

getStandardSchedulerSettings()

public StandardSchedulerSettings getStandardSchedulerSettings()

Scheduler settings for standard environment.

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

Returns
TypeDescription
StandardSchedulerSettings

The standardSchedulerSettings.

getStandardSchedulerSettingsBuilder()

public StandardSchedulerSettings.Builder getStandardSchedulerSettingsBuilder()

Scheduler settings for standard environment.

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

Returns
TypeDescription
StandardSchedulerSettings.Builder

getStandardSchedulerSettingsOrBuilder()

public StandardSchedulerSettingsOrBuilder getStandardSchedulerSettingsOrBuilder()

Scheduler settings for standard environment.

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

Returns
TypeDescription
StandardSchedulerSettingsOrBuilder

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCoolDownPeriod(Duration value)

public AutomaticScaling.Builder mergeCoolDownPeriod(Duration value)

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;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
AutomaticScaling.Builder

mergeCpuUtilization(CpuUtilization value)

public AutomaticScaling.Builder mergeCpuUtilization(CpuUtilization value)

Target scaling by CPU usage.

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

Parameter
NameDescription
valueCpuUtilization
Returns
TypeDescription
AutomaticScaling.Builder

mergeDiskUtilization(DiskUtilization value)

public AutomaticScaling.Builder mergeDiskUtilization(DiskUtilization value)

Target scaling by disk usage.

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

Parameter
NameDescription
valueDiskUtilization
Returns
TypeDescription
AutomaticScaling.Builder

mergeFrom(AutomaticScaling other)

public AutomaticScaling.Builder mergeFrom(AutomaticScaling other)
Parameter
NameDescription
otherAutomaticScaling
Returns
TypeDescription
AutomaticScaling.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AutomaticScaling.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AutomaticScaling.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AutomaticScaling.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AutomaticScaling.Builder
Overrides

mergeMaxPendingLatency(Duration value)

public AutomaticScaling.Builder mergeMaxPendingLatency(Duration value)

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;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
AutomaticScaling.Builder

mergeMinPendingLatency(Duration value)

public AutomaticScaling.Builder mergeMinPendingLatency(Duration value)

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;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
AutomaticScaling.Builder

mergeNetworkUtilization(NetworkUtilization value)

public AutomaticScaling.Builder mergeNetworkUtilization(NetworkUtilization value)

Target scaling by network usage.

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

Parameter
NameDescription
valueNetworkUtilization
Returns
TypeDescription
AutomaticScaling.Builder

mergeRequestUtilization(RequestUtilization value)

public AutomaticScaling.Builder mergeRequestUtilization(RequestUtilization value)

Target scaling by request utilization.

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

Parameter
NameDescription
valueRequestUtilization
Returns
TypeDescription
AutomaticScaling.Builder

mergeStandardSchedulerSettings(StandardSchedulerSettings value)

public AutomaticScaling.Builder mergeStandardSchedulerSettings(StandardSchedulerSettings value)

Scheduler settings for standard environment.

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

Parameter
NameDescription
valueStandardSchedulerSettings
Returns
TypeDescription
AutomaticScaling.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AutomaticScaling.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AutomaticScaling.Builder
Overrides

setCoolDownPeriod(Duration value)

public AutomaticScaling.Builder setCoolDownPeriod(Duration value)

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;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
AutomaticScaling.Builder

setCoolDownPeriod(Duration.Builder builderForValue)

public AutomaticScaling.Builder setCoolDownPeriod(Duration.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
AutomaticScaling.Builder

setCpuUtilization(CpuUtilization value)

public AutomaticScaling.Builder setCpuUtilization(CpuUtilization value)

Target scaling by CPU usage.

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

Parameter
NameDescription
valueCpuUtilization
Returns
TypeDescription
AutomaticScaling.Builder

setCpuUtilization(CpuUtilization.Builder builderForValue)

public AutomaticScaling.Builder setCpuUtilization(CpuUtilization.Builder builderForValue)

Target scaling by CPU usage.

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

Parameter
NameDescription
builderForValueCpuUtilization.Builder
Returns
TypeDescription
AutomaticScaling.Builder

setDiskUtilization(DiskUtilization value)

public AutomaticScaling.Builder setDiskUtilization(DiskUtilization value)

Target scaling by disk usage.

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

Parameter
NameDescription
valueDiskUtilization
Returns
TypeDescription
AutomaticScaling.Builder

setDiskUtilization(DiskUtilization.Builder builderForValue)

public AutomaticScaling.Builder setDiskUtilization(DiskUtilization.Builder builderForValue)

Target scaling by disk usage.

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

Parameter
NameDescription
builderForValueDiskUtilization.Builder
Returns
TypeDescription
AutomaticScaling.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AutomaticScaling.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AutomaticScaling.Builder
Overrides

setMaxConcurrentRequests(int value)

public AutomaticScaling.Builder setMaxConcurrentRequests(int value)

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;

Parameter
NameDescription
valueint

The maxConcurrentRequests to set.

Returns
TypeDescription
AutomaticScaling.Builder

This builder for chaining.

setMaxIdleInstances(int value)

public AutomaticScaling.Builder setMaxIdleInstances(int value)

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

int32 max_idle_instances = 4;

Parameter
NameDescription
valueint

The maxIdleInstances to set.

Returns
TypeDescription
AutomaticScaling.Builder

This builder for chaining.

setMaxPendingLatency(Duration value)

public AutomaticScaling.Builder setMaxPendingLatency(Duration value)

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;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
AutomaticScaling.Builder

setMaxPendingLatency(Duration.Builder builderForValue)

public AutomaticScaling.Builder setMaxPendingLatency(Duration.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
AutomaticScaling.Builder

setMaxTotalInstances(int value)

public AutomaticScaling.Builder setMaxTotalInstances(int value)

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

int32 max_total_instances = 5;

Parameter
NameDescription
valueint

The maxTotalInstances to set.

Returns
TypeDescription
AutomaticScaling.Builder

This builder for chaining.

setMinIdleInstances(int value)

public AutomaticScaling.Builder setMinIdleInstances(int value)

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;

Parameter
NameDescription
valueint

The minIdleInstances to set.

Returns
TypeDescription
AutomaticScaling.Builder

This builder for chaining.

setMinPendingLatency(Duration value)

public AutomaticScaling.Builder setMinPendingLatency(Duration value)

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;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
AutomaticScaling.Builder

setMinPendingLatency(Duration.Builder builderForValue)

public AutomaticScaling.Builder setMinPendingLatency(Duration.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
AutomaticScaling.Builder

setMinTotalInstances(int value)

public AutomaticScaling.Builder setMinTotalInstances(int value)

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

int32 min_total_instances = 8;

Parameter
NameDescription
valueint

The minTotalInstances to set.

Returns
TypeDescription
AutomaticScaling.Builder

This builder for chaining.

setNetworkUtilization(NetworkUtilization value)

public AutomaticScaling.Builder setNetworkUtilization(NetworkUtilization value)

Target scaling by network usage.

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

Parameter
NameDescription
valueNetworkUtilization
Returns
TypeDescription
AutomaticScaling.Builder

setNetworkUtilization(NetworkUtilization.Builder builderForValue)

public AutomaticScaling.Builder setNetworkUtilization(NetworkUtilization.Builder builderForValue)

Target scaling by network usage.

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

Parameter
NameDescription
builderForValueNetworkUtilization.Builder
Returns
TypeDescription
AutomaticScaling.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AutomaticScaling.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AutomaticScaling.Builder
Overrides

setRequestUtilization(RequestUtilization value)

public AutomaticScaling.Builder setRequestUtilization(RequestUtilization value)

Target scaling by request utilization.

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

Parameter
NameDescription
valueRequestUtilization
Returns
TypeDescription
AutomaticScaling.Builder

setRequestUtilization(RequestUtilization.Builder builderForValue)

public AutomaticScaling.Builder setRequestUtilization(RequestUtilization.Builder builderForValue)

Target scaling by request utilization.

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

Parameter
NameDescription
builderForValueRequestUtilization.Builder
Returns
TypeDescription
AutomaticScaling.Builder

setStandardSchedulerSettings(StandardSchedulerSettings value)

public AutomaticScaling.Builder setStandardSchedulerSettings(StandardSchedulerSettings value)

Scheduler settings for standard environment.

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

Parameter
NameDescription
valueStandardSchedulerSettings
Returns
TypeDescription
AutomaticScaling.Builder

setStandardSchedulerSettings(StandardSchedulerSettings.Builder builderForValue)

public AutomaticScaling.Builder setStandardSchedulerSettings(StandardSchedulerSettings.Builder builderForValue)

Scheduler settings for standard environment.

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

Parameter
NameDescription
builderForValueStandardSchedulerSettings.Builder
Returns
TypeDescription
AutomaticScaling.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final AutomaticScaling.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AutomaticScaling.Builder
Overrides