public sealed class DetectIntentResponse : IMessage<DetectIntentResponse>, IEquatable<DetectIntentResponse>, IDeepCloneable<DetectIntentResponse>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Dialogflow v2beta1 API class DetectIntentResponse.
The message returned from the DetectIntent method.
public RepeatedField<QueryResult> AlternativeQueryResults { get; }
If Knowledge Connectors are enabled, there could be more than one result
returned for a given query or event, and this field will contain all
results except for the top one, which is captured in query_result. The
alternative results are ordered by decreasing
QueryResult.intent_detection_confidence. If Knowledge Connectors are
disabled, this field will be empty until multiple responses for regular
intents are supported, at which point those additional results will be
surfaced here.
The audio data bytes encoded as specified in the request.
Note: The output audio is generated based on the values of default platform
text responses found in the query_result.fulfillment_messages field. If
multiple default text responses exist, they will be concatenated when
generating audio. If no default platform text responses exist, the
generated audio content will be empty.
In some scenarios, multiple output audio fields may be present in the
response structure. In these cases, only the top-most-level audio output
has content.
[[["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\u003eDetectIntentResponse\u003c/code\u003e is a class within the Google Cloud Dialogflow v2beta1 API, specifically designed to handle the message returned by the \u003ccode\u003eDetectIntent\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, indicating its functionality for message handling, equality checks, deep cloning, and buffered messages.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDetectIntentResponse\u003c/code\u003e class contains properties like \u003ccode\u003eQueryResult\u003c/code\u003e and \u003ccode\u003eAlternativeQueryResults\u003c/code\u003e to hold the main and alternative results of a conversational query.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eOutputAudio\u003c/code\u003e and \u003ccode\u003eOutputAudioConfig\u003c/code\u003e properties within \u003ccode\u003eDetectIntentResponse\u003c/code\u003e manage audio output data and its associated configuration.\u003c/p\u003e\n"],["\u003cp\u003eThe class can also return a \u003ccode\u003eResponseId\u003c/code\u003e for identifying the response in training examples, and \u003ccode\u003eWebhookStatus\u003c/code\u003e to specify the status of the webhook request.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Dialogflow v2beta1 API - Class DetectIntentResponse (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.DetectIntentResponse)\n- [1.0.0-beta22](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/1.0.0-beta22/Google.Cloud.Dialogflow.V2Beta1.DetectIntentResponse) \n\n public sealed class DetectIntentResponse : IMessage\u003cDetectIntentResponse\u003e, IEquatable\u003cDetectIntentResponse\u003e, IDeepCloneable\u003cDetectIntentResponse\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Dialogflow v2beta1 API class DetectIntentResponse.\n\nThe message returned from the DetectIntent method. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e DetectIntentResponse \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[DetectIntentResponse](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.DetectIntentResponse), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DetectIntentResponse](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.DetectIntentResponse), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[DetectIntentResponse](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.DetectIntentResponse), [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### DetectIntentResponse()\n\n public DetectIntentResponse()\n\n### DetectIntentResponse(DetectIntentResponse)\n\n public DetectIntentResponse(DetectIntentResponse other)\n\nProperties\n----------\n\n### AlternativeQueryResults\n\n public RepeatedField\u003cQueryResult\u003e AlternativeQueryResults { get; }\n\nIf Knowledge Connectors are enabled, there could be more than one result\nreturned for a given query or event, and this field will contain all\nresults except for the top one, which is captured in query_result. The\nalternative results are ordered by decreasing\n`QueryResult.intent_detection_confidence`. If Knowledge Connectors are\ndisabled, this field will be empty until multiple responses for regular\nintents are supported, at which point those additional results will be\nsurfaced here.\n\n### OutputAudio\n\n public ByteString OutputAudio { get; set; }\n\nThe audio data bytes encoded as specified in the request.\nNote: The output audio is generated based on the values of default platform\ntext responses found in the `query_result.fulfillment_messages` field. If\nmultiple default text responses exist, they will be concatenated when\ngenerating audio. If no default platform text responses exist, the\ngenerated audio content will be empty.\n\nIn some scenarios, multiple output audio fields may be present in the\nresponse structure. In these cases, only the top-most-level audio output\nhas content.\n\n### OutputAudioConfig\n\n public OutputAudioConfig OutputAudioConfig { get; set; }\n\nThe config used by the speech synthesizer to generate the output audio.\n\n### QueryResult\n\n public QueryResult QueryResult { get; set; }\n\nThe selected results of the conversational query or event processing.\nSee `alternative_query_results` for additional potential results.\n\n### ResponseId\n\n public string ResponseId { get; set; }\n\nThe unique identifier of the response. It can be used to\nlocate a response in the training example set or for reporting issues.\n\n### WebhookStatus\n\n public Status WebhookStatus { get; set; }\n\nSpecifies the status of the webhook request."]]