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 \ WebhookRequestMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ last_matched_intent |
string
Always present. The unique identifier of the last matched intent. Format: |
↳ 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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>
.
Returns | |
---|---|
Type | Description |
string |
setLastMatchedIntent
Always present. The unique identifier of the last matched intent.
Format:
projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>
.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getDisplayName
Always present. The display name of the last matched intent.
Returns | |
---|---|
Type | Description |
string |
setDisplayName
Always present. The display name of the last matched intent.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
array|Google\Protobuf\Internal\MapField
|
Returns | |
---|---|
Type | Description |
$this |
getConfidence
The confidence of the matched intent. Values range from 0.0 (completely uncertain) to 1.0 (completely certain).
Returns | |
---|---|
Type | Description |
float |
setConfidence
The confidence of the matched intent. Values range from 0.0 (completely uncertain) to 1.0 (completely certain).
Parameter | |
---|---|
Name | Description |
var |
float
|
Returns | |
---|---|
Type | Description |
$this |