Class AutoscalingPolicyScaleInControl.Builder (1.6.0-beta)

public static final class AutoscalingPolicyScaleInControl.Builder extends GeneratedMessageV3.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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AutoscalingPolicyScaleInControl build()
Returns

buildPartial()

public AutoscalingPolicyScaleInControl buildPartial()
Returns

clear()

public AutoscalingPolicyScaleInControl.Builder clear()
Returns Overrides

clearField(Descriptors.FieldDescriptor field)

public AutoscalingPolicyScaleInControl.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns 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

clearOneof(Descriptors.OneofDescriptor oneof)

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

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
TypeDescription
AutoscalingPolicyScaleInControl.Builder

This builder for chaining.

clone()

public AutoscalingPolicyScaleInControl.Builder clone()
Returns Overrides

getDefaultInstanceForType()

public AutoscalingPolicyScaleInControl getDefaultInstanceForType()
Returns

getDescriptor()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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

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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the timeWindowSec field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AutoscalingPolicyScaleInControl other)

public AutoscalingPolicyScaleInControl.Builder mergeFrom(AutoscalingPolicyScaleInControl other)
Parameter Returns

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public AutoscalingPolicyScaleInControl.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns 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
NameDescription
valueFixedOrPercent
Returns

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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
NameDescription
valueFixedOrPercent
Returns

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
NameDescription
builderForValueFixedOrPercent.Builder
Returns

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

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

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
NameDescription
valueint

The timeWindowSec to set.

Returns
TypeDescription
AutoscalingPolicyScaleInControl.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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