Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class RoutingConfig.
The configuration for routing the request to a specific model.
Generated from protobuf message google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig
Namespace
Google \ Cloud \ AIPlatform \ V1 \ GenerationConfigMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ auto_mode |
Google\Cloud\AIPlatform\V1\GenerationConfig\RoutingConfig\AutoRoutingMode
Automated routing. |
↳ manual_mode |
Google\Cloud\AIPlatform\V1\GenerationConfig\RoutingConfig\ManualRoutingMode
Manual routing. |
getAutoMode
Automated routing.
Returns | |
---|---|
Type | Description |
Google\Cloud\AIPlatform\V1\GenerationConfig\RoutingConfig\AutoRoutingMode|null |
hasAutoMode
setAutoMode
Automated routing.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\AIPlatform\V1\GenerationConfig\RoutingConfig\AutoRoutingMode
|
Returns | |
---|---|
Type | Description |
$this |
getManualMode
Manual routing.
Returns | |
---|---|
Type | Description |
Google\Cloud\AIPlatform\V1\GenerationConfig\RoutingConfig\ManualRoutingMode|null |
hasManualMode
setManualMode
Manual routing.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\AIPlatform\V1\GenerationConfig\RoutingConfig\ManualRoutingMode
|
Returns | |
---|---|
Type | Description |
$this |
getRoutingConfig
Returns | |
---|---|
Type | Description |
string |