# Google Cloud Vector Search V1 Client - Class AutoscalingSpec (0.4.0)

0.4.0 (latest) 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Vector Search V1 Client class AutoscalingSpec.

Specification for autoscaling.

Generated from protobuf message `google.cloud.vectorsearch.v1.DedicatedInfrastructure.AutoscalingSpec`

## Namespace

Google \\ Cloud \\ VectorSearch \\ V1 \\ DedicatedInfrastructure

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ min_replica_count` | `int` Optional. The minimum number of replicas. If not set or set to `0`, defaults to `2`. Must be \>= `1` and \<= `1000`. |
| `↳ max_replica_count` | `int` Optional. The maximum number of replicas. Must be \>= `min_replica_count` and \<= `1000`. For the v1beta version, if not set or set to `0`, defaults to the greater of `min_replica_count` and `5`. For all other versions, if not set or set to `0`, defaults to the greater of `min_replica_count` and `2`. |

### getMinReplicaCount

Optional. The minimum number of replicas. If not set or set to `0`,
defaults to `2`. Must be \>= `1` and \<= `1000`.

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

### setMinReplicaCount

Optional. The minimum number of replicas. If not set or set to `0`,
defaults to `2`. Must be \>= `1` and \<= `1000`.

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

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

### getMaxReplicaCount

Optional. The maximum number of replicas. Must be \>=
`min_replica_count` and \<= `1000`.

For the v1beta version, if not set or set to `0`, defaults to
the greater of `min_replica_count` and `5`.
For all other versions, if not set or set to `0`, defaults to
the greater of `min_replica_count` and `2`.

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

### setMaxReplicaCount

Optional. The maximum number of replicas. Must be \>=
`min_replica_count` and \<= `1000`.

For the v1beta version, if not set or set to `0`, defaults to
the greater of `min_replica_count` and `5`.
For all other versions, if not set or set to `0`, defaults to
the greater of `min_replica_count` and `2`.

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

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