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 \ DedicatedInfrastructureMethods
__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 |
↳ max_replica_count |
int
Optional. The maximum number of replicas. If not set or set to |
getMinReplicaCount
Optional. The minimum number of replicas. If not set or set to 0,
defaults to 2. Must be >= 2 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 >= 2 and <= 1000.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getMaxReplicaCount
Optional. The maximum number of replicas. If not set or set to 0,
defaults to the greater of min_replica_count and 5. Must be >=
min_replica_count and <= 1000.
| Returns | |
|---|---|
| Type | Description |
int |
|
setMaxReplicaCount
Optional. The maximum number of replicas. If not set or set to 0,
defaults to the greater of min_replica_count and 5. Must be >=
min_replica_count and <= 1000.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|