Google Cloud Ai Platform V1 Client - Class RoutingConfig (1.13.0)

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 \ GenerationConfig

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ auto_mode RoutingConfig\AutoRoutingMode

Automated routing.

↳ manual_mode RoutingConfig\ManualRoutingMode

Manual routing.

getAutoMode

Automated routing.

Returns
Type Description
RoutingConfig\AutoRoutingMode|null

hasAutoMode

setAutoMode

Automated routing.

Parameter
Name Description
var RoutingConfig\AutoRoutingMode
Returns
Type Description
$this

getManualMode

Manual routing.

Returns
Type Description
RoutingConfig\ManualRoutingMode|null

hasManualMode

setManualMode

Manual routing.

Parameter
Name Description
var RoutingConfig\ManualRoutingMode
Returns
Type Description
$this

getRoutingConfig

Returns
Type Description
string