Google Cloud Ai Platform V1 Client - Class RoutingConfig (1.30.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

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月08日 UTC.