Google Cloud Dialogflow Cx V3 Client - Class FallbackSettings (0.2.1)

Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class FallbackSettings.

Settings for Generative Fallback.

Generated from protobuf message google.cloud.dialogflow.cx.v3.GenerativeSettings.FallbackSettings

Namespace

Google \ Cloud \ Dialogflow \ Cx \ V3 \ GenerativeSettings

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ selected_prompt string

Display name of the selected prompt.

↳ prompt_templates array<Google\Cloud\Dialogflow\Cx\V3\GenerativeSettings\FallbackSettings\PromptTemplate>

Stored prompts that can be selected, for example default templates like "conservative" or "chatty", or user defined ones.

getSelectedPrompt

Display name of the selected prompt.

Returns
TypeDescription
string

setSelectedPrompt

Display name of the selected prompt.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPromptTemplates

Stored prompts that can be selected, for example default templates like "conservative" or "chatty", or user defined ones.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setPromptTemplates

Stored prompts that can be selected, for example default templates like "conservative" or "chatty", or user defined ones.

Parameter
NameDescription
var array<Google\Cloud\Dialogflow\Cx\V3\GenerativeSettings\FallbackSettings\PromptTemplate>
Returns
TypeDescription
$this