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

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

Represents intent information communicated to the webhook.

Generated from protobuf message google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo

Namespace

Google \ Cloud \ Dialogflow \ Cx \ V3 \ WebhookRequest

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ last_matched_intent string

Always present. The unique identifier of the last matched intent. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

↳ display_name string

Always present. The display name of the last matched intent.

↳ parameters array|Google\Protobuf\Internal\MapField

Parameters identified as a result of intent matching. This is a map of the name of the identified parameter to the value of the parameter identified from the user's utterance. All parameters defined in the matched intent that are identified will be surfaced here.

↳ confidence float

The confidence of the matched intent. Values range from 0.0 (completely uncertain) to 1.0 (completely certain).

getLastMatchedIntent

Always present. The unique identifier of the last matched intent.

Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

Returns
TypeDescription
string

setLastMatchedIntent

Always present. The unique identifier of the last matched intent.

Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDisplayName

Always present. The display name of the last matched intent.

Returns
TypeDescription
string

setDisplayName

Always present. The display name of the last matched intent.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getParameters

Parameters identified as a result of intent matching. This is a map of the name of the identified parameter to the value of the parameter identified from the user's utterance. All parameters defined in the matched intent that are identified will be surfaced here.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setParameters

Parameters identified as a result of intent matching. This is a map of the name of the identified parameter to the value of the parameter identified from the user's utterance. All parameters defined in the matched intent that are identified will be surfaced here.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getConfidence

The confidence of the matched intent. Values range from 0.0 (completely uncertain) to 1.0 (completely certain).

Returns
TypeDescription
float

setConfidence

The confidence of the matched intent. Values range from 0.0 (completely uncertain) to 1.0 (completely certain).

Parameter
NameDescription
var float
Returns
TypeDescription
$this