public sealed class QueryResult : IMessage<QueryResult>, IEquatable<QueryResult>, IDeepCloneable<QueryResult>, IBufferMessage, IMessage
Represents the result of a conversational query.
Implements
IMessage<QueryResult>, IEquatable<QueryResult>, IDeepCloneable<QueryResult>, IBufferMessage, IMessageNamespace
Google.Cloud.Dialogflow.Cx.V3Assembly
Google.Cloud.Dialogflow.Cx.V3.dll
Constructors
QueryResult()
public QueryResult()
QueryResult(QueryResult)
public QueryResult(QueryResult other)
Parameter | |
---|---|
Name | Description |
other | QueryResult |
Properties
CurrentPage
public Page CurrentPage { get; set; }
The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
including but not limited to name
and display_name
.
Property Value | |
---|---|
Type | Description |
Page |
DiagnosticInfo
public Struct DiagnosticInfo { get; set; }
The free-form diagnostic info. For example, this field could contain webhook call latency. The string keys of the Struct's fields map can change without notice.
Property Value | |
---|---|
Type | Description |
Struct |
Dtmf
public DtmfInput Dtmf { get; set; }
If a [DTMF][DTMFInput] was provided as input, this field will contain a copy of the [DTMFInput][].
Property Value | |
---|---|
Type | Description |
DtmfInput |
Intent
[Obsolete]
public Intent Intent { get; set; }
The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the conversational query. Some, not all fields
are filled in this message, including but not limited to: name
and
display_name
.
This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead.
Property Value | |
---|---|
Type | Description |
Intent |
IntentDetectionConfidence
[Obsolete]
public float IntentDetectionConfidence { get; set; }
The intent detection confidence. Values range from 0.0 (completely uncertain) to 1.0 (completely certain). This value is for informational purpose only and is only used to help match the best intent within the classification threshold. This value may change for the same end-user expression at any time due to a model retraining or change in implementation. This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead.
Property Value | |
---|---|
Type | Description |
Single |
LanguageCode
public string LanguageCode { get; set; }
The language that was triggered during intent detection. See Language Support for a list of the currently supported language codes.
Property Value | |
---|---|
Type | Description |
String |
Match
public Match Match { get; set; }
Intent match result, could be an intent or an event.
Property Value | |
---|---|
Type | Description |
Match |
Parameters
public Struct Parameters { get; set; }
The collected [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs:
- MapKey type: string
- MapKey value: parameter name
- MapValue type: If parameter's entity type is a composite entity then use map, otherwise, depending on the parameter value type, it could be one of string, number, boolean, null, list or map.
- MapValue value: If parameter's entity type is a composite entity then use map from composite entity property names to property values, otherwise, use parameter value.
Property Value | |
---|---|
Type | Description |
Struct |
QueryCase
public QueryResult.QueryOneofCase QueryCase { get; }
Property Value | |
---|---|
Type | Description |
QueryResult.QueryOneofCase |
ResponseMessages
public RepeatedField<ResponseMessage> ResponseMessages { get; }
The list of rich messages returned to the client. Responses vary from simple text messages to more sophisticated, structured payloads used to drive complex logic.
Property Value | |
---|---|
Type | Description |
RepeatedField<ResponseMessage> |
SentimentAnalysisResult
public SentimentAnalysisResult SentimentAnalysisResult { get; set; }
The sentiment analyss result, which depends on
[analyze_query_text_sentiment
]
[google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment], specified in the request.
Property Value | |
---|---|
Type | Description |
SentimentAnalysisResult |
Text
public string Text { get; set; }
If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field will contain a copy of the text.
Property Value | |
---|---|
Type | Description |
String |
Transcript
public string Transcript { get; set; }
If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input, this field will contain the transcript for the audio.
Property Value | |
---|---|
Type | Description |
String |
TriggerEvent
public string TriggerEvent { get; set; }
If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain the name of the event.
Property Value | |
---|---|
Type | Description |
String |
TriggerIntent
public string TriggerIntent { get; set; }
If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
contain a copy of the intent identifier.
Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
ID>/intents/<Intent ID>
.
Property Value | |
---|---|
Type | Description |
String |
TriggerIntentAsIntentName
public IntentName TriggerIntentAsIntentName { get; set; }
IntentName-typed view over the TriggerIntent resource name property.
Property Value | |
---|---|
Type | Description |
IntentName |
WebhookPayloads
public RepeatedField<Struct> WebhookPayloads { get; }
The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
the order of call sequence. If some webhook call fails or doesn't return
any payload, an empty Struct
would be used instead.
Property Value | |
---|---|
Type | Description |
RepeatedField<Struct> |
WebhookStatuses
public RepeatedField<Status> WebhookStatuses { get; }
The list of webhook call status in the order of call sequence.
Property Value | |
---|---|
Type | Description |
RepeatedField<Status> |