Google Cloud Discovery Engine V1 Client - Class ModelSpec (1.0.0)

Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class ModelSpec.

Answer Generation Model specification.

Generated from protobuf message google.cloud.discoveryengine.v1.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec

Namespace

Google \ Cloud \ DiscoveryEngine \ V1 \ AnswerQueryRequest \ AnswerGenerationSpec

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ model_versionstring

Model version. If not set, it will use the default stable model. Allowed values are: stable, preview.

getModelVersion

Model version. If not set, it will use the default stable model.

Allowed values are: stable, preview.

Returns
TypeDescription
string

setModelVersion

Model version. If not set, it will use the default stable model.

Allowed values are: stable, preview.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this