# Cloud Spanner V1 Client - Class AutoscalingLimits (2.9.0)

2.9.0 (latest) 2.8.1 2.7.0 2.6.1 2.5.1 2.4.1 2.3.0 2.2.0 2.1.0 2.0.1-RC1 1.106.0 1.105.1 1.104.1 1.103.0 1.102.0 1.101.0 1.100.0 1.98.0 1.97.0 1.96.0 1.95.0 1.94.0 1.93.1 1.92.1 1.91.0 1.90.0 1.89.0 1.88.0 1.87.0 1.86.0 1.85.0 1.84.0 1.83.0 1.82.0 1.81.0 1.80.0 1.79.0 1.78.0 1.77.0 1.76.1 1.68.0 1.67.0 1.66.0 1.65.0 1.64.0 1.63.2 1.62.1 1.61.0 1.60.0 1.59.0 1.58.4 1.57.0 1.56.0 1.55.0 1.54.2 Reference documentation and code samples for the Cloud Spanner V1 Client class AutoscalingLimits.

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.

Generated from protobuf message `google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits`

## Namespace

Google \\ Cloud \\ Spanner \\ Admin \\ Instance \\ V1 \\ AutoscalingConfig

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ min_nodes` | `int` Minimum number of nodes allocated to the instance. If set, this number should be greater than or equal to 1. |
| `↳ min_processing_units` | `int` Minimum number of processing units allocated to the instance. If set, this number should be multiples of 1000. |
| `↳ max_nodes` | `int` Maximum number of nodes allocated to the instance. If set, this number should be greater than or equal to min_nodes. |
| `↳ max_processing_units` | `int` 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. |

### getMinNodes

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### hasMinNodes

### setMinNodes

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getMinProcessingUnits

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### hasMinProcessingUnits

### setMinProcessingUnits

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getMaxNodes

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### hasMaxNodes

### setMaxNodes

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### 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.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### hasMaxProcessingUnits

### setMaxProcessingUnits

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.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getMinLimit

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### getMaxLimit

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |