Class AutoscalingPolicyScaleInControl.Builder (1.93.0)

public static final class AutoscalingPolicyScaleInControl.Builder extends GeneratedMessage.Builder<AutoscalingPolicyScaleInControl.Builder> implements AutoscalingPolicyScaleInControlOrBuilder

Configuration that allows for slower scale in so that even if Autoscaler recommends an abrupt scale in of a MIG, it will be throttled as specified by the parameters below.

Protobuf type google.cloud.compute.v1.AutoscalingPolicyScaleInControl

Static Methods

getDescriptor()

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

Methods

build()

public AutoscalingPolicyScaleInControl build()
Returns
Type Description
AutoscalingPolicyScaleInControl

buildPartial()

public AutoscalingPolicyScaleInControl buildPartial()
Returns
Type Description
AutoscalingPolicyScaleInControl

clear()

public AutoscalingPolicyScaleInControl.Builder clear()
Returns
Type Description
AutoscalingPolicyScaleInControl.Builder
Overrides

clearMaxScaledInReplicas()

public AutoscalingPolicyScaleInControl.Builder clearMaxScaledInReplicas()

Maximum allowed number (or %) of VMs that can be deducted from the peak recommendation during the window autoscaler looks at when computing recommendations. Possibly all these VMs can be deleted at once so user service needs to be prepared to lose that many VMs in one step.

optional .google.cloud.compute.v1.FixedOrPercent max_scaled_in_replicas = 180710123;

Returns
Type Description
AutoscalingPolicyScaleInControl.Builder

clearTimeWindowSec()

public AutoscalingPolicyScaleInControl.Builder clearTimeWindowSec()

How far back autoscaling looks when computing recommendations to include directives regarding slower scale in, as described above.

optional int32 time_window_sec = 36405300;

Returns
Type Description
AutoscalingPolicyScaleInControl.Builder

This builder for chaining.

getDefaultInstanceForType()

public AutoscalingPolicyScaleInControl getDefaultInstanceForType()
Returns
Type Description
AutoscalingPolicyScaleInControl

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMaxScaledInReplicas()

public FixedOrPercent getMaxScaledInReplicas()

Maximum allowed number (or %) of VMs that can be deducted from the peak recommendation during the window autoscaler looks at when computing recommendations. Possibly all these VMs can be deleted at once so user service needs to be prepared to lose that many VMs in one step.

optional .google.cloud.compute.v1.FixedOrPercent max_scaled_in_replicas = 180710123;

Returns
Type Description
FixedOrPercent

The maxScaledInReplicas.

getMaxScaledInReplicasBuilder()

public FixedOrPercent.Builder getMaxScaledInReplicasBuilder()

Maximum allowed number (or %) of VMs that can be deducted from the peak recommendation during the window autoscaler looks at when computing recommendations. Possibly all these VMs can be deleted at once so user service needs to be prepared to lose that many VMs in one step.

optional .google.cloud.compute.v1.FixedOrPercent max_scaled_in_replicas = 180710123;

Returns
Type Description
FixedOrPercent.Builder

getMaxScaledInReplicasOrBuilder()

public FixedOrPercentOrBuilder getMaxScaledInReplicasOrBuilder()

Maximum allowed number (or %) of VMs that can be deducted from the peak recommendation during the window autoscaler looks at when computing recommendations. Possibly all these VMs can be deleted at once so user service needs to be prepared to lose that many VMs in one step.

optional .google.cloud.compute.v1.FixedOrPercent max_scaled_in_replicas = 180710123;

Returns
Type Description
FixedOrPercentOrBuilder

getTimeWindowSec()

public int getTimeWindowSec()

How far back autoscaling looks when computing recommendations to include directives regarding slower scale in, as described above.

optional int32 time_window_sec = 36405300;

Returns
Type Description
int

The timeWindowSec.

hasMaxScaledInReplicas()

public boolean hasMaxScaledInReplicas()

Maximum allowed number (or %) of VMs that can be deducted from the peak recommendation during the window autoscaler looks at when computing recommendations. Possibly all these VMs can be deleted at once so user service needs to be prepared to lose that many VMs in one step.

optional .google.cloud.compute.v1.FixedOrPercent max_scaled_in_replicas = 180710123;

Returns
Type Description
boolean

Whether the maxScaledInReplicas field is set.

hasTimeWindowSec()

public boolean hasTimeWindowSec()

How far back autoscaling looks when computing recommendations to include directives regarding slower scale in, as described above.

optional int32 time_window_sec = 36405300;

Returns
Type Description
boolean

Whether the timeWindowSec field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AutoscalingPolicyScaleInControl other)

public AutoscalingPolicyScaleInControl.Builder mergeFrom(AutoscalingPolicyScaleInControl other)
Parameter
Name Description
other AutoscalingPolicyScaleInControl
Returns
Type Description
AutoscalingPolicyScaleInControl.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AutoscalingPolicyScaleInControl.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AutoscalingPolicyScaleInControl.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AutoscalingPolicyScaleInControl.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AutoscalingPolicyScaleInControl.Builder
Overrides

mergeMaxScaledInReplicas(FixedOrPercent value)

public AutoscalingPolicyScaleInControl.Builder mergeMaxScaledInReplicas(FixedOrPercent value)

Maximum allowed number (or %) of VMs that can be deducted from the peak recommendation during the window autoscaler looks at when computing recommendations. Possibly all these VMs can be deleted at once so user service needs to be prepared to lose that many VMs in one step.

optional .google.cloud.compute.v1.FixedOrPercent max_scaled_in_replicas = 180710123;

Parameter
Name Description
value FixedOrPercent
Returns
Type Description
AutoscalingPolicyScaleInControl.Builder

setMaxScaledInReplicas(FixedOrPercent value)

public AutoscalingPolicyScaleInControl.Builder setMaxScaledInReplicas(FixedOrPercent value)

Maximum allowed number (or %) of VMs that can be deducted from the peak recommendation during the window autoscaler looks at when computing recommendations. Possibly all these VMs can be deleted at once so user service needs to be prepared to lose that many VMs in one step.

optional .google.cloud.compute.v1.FixedOrPercent max_scaled_in_replicas = 180710123;

Parameter
Name Description
value FixedOrPercent
Returns
Type Description
AutoscalingPolicyScaleInControl.Builder

setMaxScaledInReplicas(FixedOrPercent.Builder builderForValue)

public AutoscalingPolicyScaleInControl.Builder setMaxScaledInReplicas(FixedOrPercent.Builder builderForValue)

Maximum allowed number (or %) of VMs that can be deducted from the peak recommendation during the window autoscaler looks at when computing recommendations. Possibly all these VMs can be deleted at once so user service needs to be prepared to lose that many VMs in one step.

optional .google.cloud.compute.v1.FixedOrPercent max_scaled_in_replicas = 180710123;

Parameter
Name Description
builderForValue FixedOrPercent.Builder
Returns
Type Description
AutoscalingPolicyScaleInControl.Builder

setTimeWindowSec(int value)

public AutoscalingPolicyScaleInControl.Builder setTimeWindowSec(int value)

How far back autoscaling looks when computing recommendations to include directives regarding slower scale in, as described above.

optional int32 time_window_sec = 36405300;

Parameter
Name Description
value int

The timeWindowSec to set.

Returns
Type Description
AutoscalingPolicyScaleInControl.Builder

This builder for chaining.