Free-form diagnostic information for the associated detect intent request.
The fields of this data can change without notice, so you should not write
code that depends on its structure.
The data may contain:
The intent that matched the conversational query. Some, not
all fields are filled in this message, including but not limited to:
name, display_name, end_interaction and is_fallback.
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.
If there are multiple knowledge_answers messages, this value is set to
the greatest knowledgeAnswers.match_confidence value in the list.
public RepeatedField<Context> OutputContexts { get; }
The collection of output contexts. If applicable,
output_contexts.parameters contains entries with name
<parameter name>.original containing the original parameter values
before the query.
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.
If natural language text was provided as input, query_text contains
a copy of the input.
If natural language speech audio was provided as input, query_text
contains the speech recognition result. If speech recognizer produced
multiple alternatives, a particular one is picked.
If automatic spell correction is enabled, query_text will contain the
corrected user input.
public float SpeechRecognitionConfidence { get; set; }
The Speech recognition confidence between 0.0 and 1.0. A higher number
indicates an estimated greater likelihood that the recognized words are
correct. The default of 0.0 is a sentinel value indicating that confidence
was not set.
This field is not guaranteed to be accurate or set. In particular this
field isn't set for StreamingDetectIntent since the streaming endpoint has
separate confidence estimates per portion of the audio in
StreamingRecognitionResult.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-03 UTC."],[[["\u003cp\u003e\u003ccode\u003eQueryResult\u003c/code\u003e is a class in the Google Cloud Dialogflow v2beta1 API representing the result of processing a conversational query or event.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties for intent matching, such as \u003ccode\u003eIntent\u003c/code\u003e, \u003ccode\u003eIntentDetectionConfidence\u003c/code\u003e, and \u003ccode\u003eAllRequiredParamsPresent\u003c/code\u003e, and contains data regarding matched intents.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eQueryResult\u003c/code\u003e class provides access to fulfillment information, such as \u003ccode\u003eFulfillmentMessages\u003c/code\u003e and \u003ccode\u003eFulfillmentText\u003c/code\u003e, for responses to users.\u003c/p\u003e\n"],["\u003cp\u003eIt also stores properties related to parameters, such as \u003ccode\u003eParameters\u003c/code\u003e and \u003ccode\u003eOutputContexts\u003c/code\u003e which contain the extracted values and context changes that happened during the conversation.\u003c/p\u003e\n"],["\u003cp\u003eThe class also contains diagnostic and confidence properties including \u003ccode\u003eSpeechRecognitionConfidence\u003c/code\u003e to provide information regarding the query, and \u003ccode\u003eDiagnosticInfo\u003c/code\u003e for further detailed analysis.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Dialogflow v2beta1 API - Class QueryResult (1.0.0-beta23)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta23 (latest)](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.QueryResult)\n- [1.0.0-beta22](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/1.0.0-beta22/Google.Cloud.Dialogflow.V2Beta1.QueryResult) \n\n public sealed class QueryResult : IMessage\u003cQueryResult\u003e, IEquatable\u003cQueryResult\u003e, IDeepCloneable\u003cQueryResult\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Dialogflow v2beta1 API class QueryResult.\n\nRepresents the result of conversational query or event processing. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e QueryResult \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[QueryResult](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.QueryResult), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[QueryResult](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.QueryResult), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[QueryResult](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.QueryResult), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Dialogflow.V2Beta1](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.Dialogflow.V2Beta1.dll\n\nConstructors\n------------\n\n### QueryResult()\n\n public QueryResult()\n\n### QueryResult(QueryResult)\n\n public QueryResult(QueryResult other)\n\nProperties\n----------\n\n### Action\n\n public string Action { get; set; }\n\nThe action name from the matched intent.\n\n### AllRequiredParamsPresent\n\n public bool AllRequiredParamsPresent { get; set; }\n\nThis field is set to:\n\n- `false` if the matched intent has required parameters and not all of the required parameter values have been collected.\n- `true` if all required parameter values have been collected, or if the matched intent doesn't contain any required parameters.\n\n### CancelsSlotFilling\n\n public bool CancelsSlotFilling { get; set; }\n\nIndicates whether the conversational query triggers a cancellation for slot\nfilling. For more information, see the [cancel slot filling\ndocumentation](https://cloud.google.com/dialogflow/es/docs/intents-actions-parameters#cancel).\n\n### DiagnosticInfo\n\n public Struct DiagnosticInfo { get; set; }\n\nFree-form diagnostic information for the associated detect intent request.\nThe fields of this data can change without notice, so you should not write\ncode that depends on its structure.\nThe data may contain:\n\n- webhook call latency\n- webhook errors\n\n### FulfillmentMessages\n\n public RepeatedField\u003cIntent.Types.Message\u003e FulfillmentMessages { get; }\n\nThe collection of rich messages to present to the user.\n\n### FulfillmentText\n\n public string FulfillmentText { get; set; }\n\nThe text to be pronounced to the user or shown on the screen.\nNote: This is a legacy field, `fulfillment_messages` should be preferred.\n\n### Intent\n\n public Intent Intent { get; set; }\n\nThe intent that matched the conversational query. Some, not\nall fields are filled in this message, including but not limited to:\n`name`, `display_name`, `end_interaction` and `is_fallback`.\n\n### IntentDetectionConfidence\n\n public float IntentDetectionConfidence { get; set; }\n\nThe intent detection confidence. Values range from 0.0\n(completely uncertain) to 1.0 (completely certain).\nThis value is for informational purpose only and is only used to\nhelp match the best intent within the classification threshold.\nThis value may change for the same end-user expression at any time due to a\nmodel retraining or change in implementation.\nIf there are `multiple knowledge_answers` messages, this value is set to\nthe greatest `knowledgeAnswers.match_confidence` value in the list.\n\n### KnowledgeAnswers\n\n public KnowledgeAnswers KnowledgeAnswers { get; set; }\n\nThe result from Knowledge Connector (if any), ordered by decreasing\n`KnowledgeAnswers.match_confidence`.\n\n### LanguageCode\n\n public string LanguageCode { get; set; }\n\nThe language that was triggered during intent detection.\nSee [Language\nSupport](https://cloud.google.com/dialogflow/docs/reference/language)\nfor a list of the currently supported language codes.\n\n### OutputContexts\n\n public RepeatedField\u003cContext\u003e OutputContexts { get; }\n\nThe collection of output contexts. If applicable,\n`output_contexts.parameters` contains entries with name\n`\u003cparameter name\u003e.original` containing the original parameter values\nbefore the query.\n\n### Parameters\n\n public Struct Parameters { get; set; }\n\nThe collection of extracted parameters.\n\nDepending on your protocol or client library language, this is a\nmap, associative array, symbol table, dictionary, or JSON object\ncomposed of a collection of (MapKey, MapValue) pairs:\n\n- MapKey type: string\n- MapKey value: parameter name\n- 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.\n- 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.\n\n### QueryText\n\n public string QueryText { get; set; }\n\nThe original conversational query text:\n\n- If natural language text was provided as input, `query_text` contains a copy of the input.\n- If natural language speech audio was provided as input, `query_text` contains the speech recognition result. If speech recognizer produced multiple alternatives, a particular one is picked.\n- If automatic spell correction is enabled, `query_text` will contain the corrected user input.\n\n### SentimentAnalysisResult\n\n public SentimentAnalysisResult SentimentAnalysisResult { get; set; }\n\nThe sentiment analysis result, which depends on the\n`sentiment_analysis_request_config` specified in the request.\n\n### SpeechRecognitionConfidence\n\n public float SpeechRecognitionConfidence { get; set; }\n\nThe Speech recognition confidence between 0.0 and 1.0. A higher number\nindicates an estimated greater likelihood that the recognized words are\ncorrect. The default of 0.0 is a sentinel value indicating that confidence\nwas not set.\n\nThis field is not guaranteed to be accurate or set. In particular this\nfield isn't set for StreamingDetectIntent since the streaming endpoint has\nseparate confidence estimates per portion of the audio in\nStreamingRecognitionResult.\n\n### WebhookPayload\n\n public Struct WebhookPayload { get; set; }\n\nIf the query was fulfilled by a webhook call, this field is set to the\nvalue of the `payload` field returned in the webhook response.\n\n### WebhookSource\n\n public string WebhookSource { get; set; }\n\nIf the query was fulfilled by a webhook call, this field is set to the\nvalue of the `source` field returned in the webhook response."]]