Google Cloud Dialogflow Cx V3 Client - Class KnowledgeConnectorSettings (0.1.1)

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

The Knowledge Connector settings for this page or flow.

This includes information such as the attached Knowledge Bases, and the way to execute fulfillment.

Generated from protobuf message google.cloud.dialogflow.cx.v3.KnowledgeConnectorSettings

Namespace

Google \ Cloud \ Dialogflow \ Cx \ V3

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ enabled bool

Whether Knowledge Connector is enabled or not.

↳ trigger_fulfillment Google\Cloud\Dialogflow\Cx\V3\Fulfillment

The fulfillment to be triggered. When the answers from the Knowledge Connector are selected by Dialogflow, you can utitlize the request scoped parameter $request.knowledge.answers (contains up to the 5 highest confidence answers) and $request.knowledge.questions (contains the corresponding questions) to construct the fulfillment.

↳ target_page string

The target page to transition to. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page ID>.

↳ target_flow string

The target flow to transition to. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.

↳ data_store_connections array<Google\Cloud\Dialogflow\Cx\V3\DataStoreConnection>

Optional. List of related data store connections.

getEnabled

Whether Knowledge Connector is enabled or not.

Returns
TypeDescription
bool

setEnabled

Whether Knowledge Connector is enabled or not.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getTriggerFulfillment

The fulfillment to be triggered.

When the answers from the Knowledge Connector are selected by Dialogflow, you can utitlize the request scoped parameter $request.knowledge.answers (contains up to the 5 highest confidence answers) and $request.knowledge.questions (contains the corresponding questions) to construct the fulfillment.

Returns
TypeDescription
Google\Cloud\Dialogflow\Cx\V3\Fulfillment|null

hasTriggerFulfillment

clearTriggerFulfillment

setTriggerFulfillment

The fulfillment to be triggered.

When the answers from the Knowledge Connector are selected by Dialogflow, you can utitlize the request scoped parameter $request.knowledge.answers (contains up to the 5 highest confidence answers) and $request.knowledge.questions (contains the corresponding questions) to construct the fulfillment.

Parameter
NameDescription
var Google\Cloud\Dialogflow\Cx\V3\Fulfillment
Returns
TypeDescription
$this

getTargetPage

The target page to transition to.

Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page ID>.

Returns
TypeDescription
string

hasTargetPage

setTargetPage

The target page to transition to.

Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page ID>.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTargetFlow

The target flow to transition to.

Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.

Returns
TypeDescription
string

hasTargetFlow

setTargetFlow

The target flow to transition to.

Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDataStoreConnections

Optional. List of related data store connections.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setDataStoreConnections

Optional. List of related data store connections.

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

getTarget

Returns
TypeDescription
string