Class AutoscalingConfig.AutoscalingLimits.Builder (6.74.0)

public static final class AutoscalingConfig.AutoscalingLimits.Builder extends GeneratedMessageV3.Builder<AutoscalingConfig.AutoscalingLimits.Builder> implements AutoscalingConfig.AutoscalingLimitsOrBuilder

The autoscaling limits for the instance. Users can define the minimum and maximum compute capacity allocated to the instance, and the autoscaler will only scale within that range. Users can either use nodes or processing units to specify the limits, but should use the same unit to set both the min_limit and max_limit.

Protobuf type google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AutoscalingConfig.AutoscalingLimits.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AutoscalingConfig.AutoscalingLimits.Builder
Overrides

build()

public AutoscalingConfig.AutoscalingLimits build()
Returns
Type Description
AutoscalingConfig.AutoscalingLimits

buildPartial()

public AutoscalingConfig.AutoscalingLimits buildPartial()
Returns
Type Description
AutoscalingConfig.AutoscalingLimits

clear()

public AutoscalingConfig.AutoscalingLimits.Builder clear()
Returns
Type Description
AutoscalingConfig.AutoscalingLimits.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AutoscalingConfig.AutoscalingLimits.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AutoscalingConfig.AutoscalingLimits.Builder
Overrides

clearMaxLimit()

public AutoscalingConfig.AutoscalingLimits.Builder clearMaxLimit()
Returns
Type Description
AutoscalingConfig.AutoscalingLimits.Builder

clearMaxNodes()

public AutoscalingConfig.AutoscalingLimits.Builder clearMaxNodes()

Maximum number of nodes allocated to the instance. If set, this number should be greater than or equal to min_nodes.

int32 max_nodes = 3;

Returns
Type Description
AutoscalingConfig.AutoscalingLimits.Builder

This builder for chaining.

clearMaxProcessingUnits()

public AutoscalingConfig.AutoscalingLimits.Builder clearMaxProcessingUnits()

Maximum number of processing units allocated to the instance. If set, this number should be multiples of 1000 and be greater than or equal to min_processing_units.

int32 max_processing_units = 4;

Returns
Type Description
AutoscalingConfig.AutoscalingLimits.Builder

This builder for chaining.

clearMinLimit()

public AutoscalingConfig.AutoscalingLimits.Builder clearMinLimit()
Returns
Type Description
AutoscalingConfig.AutoscalingLimits.Builder

clearMinNodes()

public AutoscalingConfig.AutoscalingLimits.Builder clearMinNodes()

Minimum number of nodes allocated to the instance. If set, this number should be greater than or equal to 1.

int32 min_nodes = 1;

Returns
Type Description
AutoscalingConfig.AutoscalingLimits.Builder

This builder for chaining.

clearMinProcessingUnits()

public AutoscalingConfig.AutoscalingLimits.Builder clearMinProcessingUnits()

Minimum number of processing units allocated to the instance. If set, this number should be multiples of 1000.

int32 min_processing_units = 2;

Returns
Type Description
AutoscalingConfig.AutoscalingLimits.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AutoscalingConfig.AutoscalingLimits.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Autoscali