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
AutoscalingConfig.AutoscalingLimits.Builder
Overrides

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

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

getMaxLimitCase()

public AutoscalingConfig.AutoscalingLimits.MaxLimitCase getMaxLimitCase()
Returns
Type Description
AutoscalingConfig.AutoscalingLimits.MaxLimitCase

getMaxNodes()

public int getMaxNodes()

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
int

The maxNodes.

getMaxProcessingUnits()

public int getMaxProcessingUnits()

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
int

The maxProcessingUnits.

getMinLimitCase()

public AutoscalingConfig.AutoscalingLimits.MinLimitCase getMinLimitCase()
Returns
Type Description
AutoscalingConfig.AutoscalingLimits.MinLimitCase

getMinNodes()

public int getMinNodes()

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
int

The minNodes.

getMinProcessingUnits()

public int getMinProcessingUnits()

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
int

The minProcessingUnits.

hasMaxNodes()

public boolean hasMaxNodes()

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
boolean

Whether the maxNodes field is set.

hasMaxProcessingUnits()

public boolean hasMaxProcessingUnits()

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
boolean

Whether the maxProcessingUnits field is set.

hasMinNodes()

public boolean hasMinNodes()

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
boolean

Whether the minNodes field is set.

hasMinProcessingUnits()

public boolean hasMinProcessingUnits()

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
boolean

Whether the minProcessingUnits field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(AutoscalingConfig.AutoscalingLimits other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AutoscalingConfig.AutoscalingLimits.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AutoscalingConfig.AutoscalingLimits.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setMaxNodes(int value)

public AutoscalingConfig.AutoscalingLimits.Builder setMaxNodes(int value)

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;

Parameter
Name Description
value int

The maxNodes to set.

Returns
Type Description
AutoscalingConfig.AutoscalingLimits.Builder

This builder for chaining.

setMaxProcessingUnits(int value)

public AutoscalingConfig.AutoscalingLimits.Builder setMaxProcessingUnits(int value)

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;

Parameter
Name Description
value int

The maxProcessingUnits to set.

Returns
Type Description
AutoscalingConfig.AutoscalingLimits.Builder

This builder for chaining.

setMinNodes(int value)

public AutoscalingConfig.AutoscalingLimits.Builder setMinNodes(int value)

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

int32 min_nodes = 1;

Parameter
Name Description
value int

The minNodes to set.

Returns
Type Description
AutoscalingConfig.AutoscalingLimits.Builder

This builder for chaining.

setMinProcessingUnits(int value)

public AutoscalingConfig.AutoscalingLimits.Builder setMinProcessingUnits(int value)

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

int32 min_processing_units = 2;

Parameter
Name Description
value int

The minProcessingUnits to set.

Returns
Type Description
AutoscalingConfig.AutoscalingLimits.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final AutoscalingConfig.AutoscalingLimits.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AutoscalingConfig.AutoscalingLimits.Builder
Overrides