Class AutoscalingConfig.AutoscalingLimits.Builder (6.53.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AutoscalingConfig.AutoscalingLimits build()
Returns
TypeDescription
AutoscalingConfig.AutoscalingLimits

buildPartial()

public AutoscalingConfig.AutoscalingLimits buildPartial()
Returns
TypeDescription
AutoscalingConfig.AutoscalingLimits

clear()

public AutoscalingConfig.AutoscalingLimits.Builder clear()
Returns
TypeDescription
AutoscalingConfig.AutoscalingLimits.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearMaxLimit()

public AutoscalingConfig.AutoscalingLimits.Builder clearMaxLimit()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
AutoscalingConfig.AutoscalingLimits.Builder

This builder for chaining.

clearMinLimit()

public AutoscalingConfig.AutoscalingLimits.Builder clearMinLimit()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
AutoscalingConfig.AutoscalingLimits.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public AutoscalingConfig.AutoscalingLimits.Builder clone()
Returns
TypeDescription
AutoscalingConfig.AutoscalingLimits.Builder
Overrides

getDefaultInstanceForType()

public AutoscalingConfig.AutoscalingLimits getDefaultInstanceForType()
Returns
TypeDescription
AutoscalingConfig.AutoscalingLimits

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMaxLimitCase()

public AutoscalingConfig.AutoscalingLimits.MaxLimitCase getMaxLimitCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
int

The maxProcessingUnits.

getMinLimitCase()

public AutoscalingConfig.AutoscalingLimits.MinLimitCase getMinLimitCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the minProcessingUnits field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(AutoscalingConfig.AutoscalingLimits other)

public AutoscalingConfig.AutoscalingLimits.Builder mergeFrom(AutoscalingConfig.AutoscalingLimits other)
Parameter
NameDescription
otherAutoscalingConfig.AutoscalingLimits
Returns
TypeDescription
AutoscalingConfig.AutoscalingLimits.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public AutoscalingConfig.AutoscalingLimits.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueint

The maxNodes to set.

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

The maxProcessingUnits to set.

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

The minNodes to set.

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

The minProcessingUnits to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AutoscalingConfig.AutoscalingLimits.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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