Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::DetectIntentResponse.
The message returned from the [DetectIntent][] method.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#output_audio
defoutput_audio()->::String
Returns
(::String) — 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.
#output_audio=
defoutput_audio=(value)->::String
Parameter
value (::String) — 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.
Returns
(::String) — 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.
(::Google::Cloud::Dialogflow::V2::QueryResult) — The selected results of the conversational query or event processing.
See alternative_query_results for additional potential results.
value (::Google::Cloud::Dialogflow::V2::QueryResult) — The selected results of the conversational query or event processing.
See alternative_query_results for additional potential results.
Returns
(::Google::Cloud::Dialogflow::V2::QueryResult) — The selected results of the conversational query or event processing.
See alternative_query_results for additional potential results.
#response_id
defresponse_id()->::String
Returns
(::String) — The unique identifier of the response. It can be used to
locate a response in the training example set or for reporting issues.
#response_id=
defresponse_id=(value)->::String
Parameter
value (::String) — The unique identifier of the response. It can be used to
locate a response in the training example set or for reporting issues.
Returns
(::String) — The unique identifier of the response. It can be used to
locate a response in the training example set or for reporting issues.
[[["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-09 UTC."],[],[],null,["# Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::DetectIntentResponse (v1.10.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.10.1 (latest)](/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-DetectIntentResponse)\n- [1.10.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.10.0/Google-Cloud-Dialogflow-V2-DetectIntentResponse)\n- [1.9.1](/ruby/docs/reference/google-cloud-dialogflow-v2/1.9.1/Google-Cloud-Dialogflow-V2-DetectIntentResponse)\n- [1.8.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.8.0/Google-Cloud-Dialogflow-V2-DetectIntentResponse)\n- [1.7.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.7.0/Google-Cloud-Dialogflow-V2-DetectIntentResponse)\n- [1.6.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.6.0/Google-Cloud-Dialogflow-V2-DetectIntentResponse)\n- [1.5.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.5.0/Google-Cloud-Dialogflow-V2-DetectIntentResponse)\n- [1.4.1](/ruby/docs/reference/google-cloud-dialogflow-v2/1.4.1/Google-Cloud-Dialogflow-V2-DetectIntentResponse)\n- [1.3.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.3.0/Google-Cloud-Dialogflow-V2-DetectIntentResponse)\n- [1.2.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.2.0/Google-Cloud-Dialogflow-V2-DetectIntentResponse)\n- [1.1.1](/ruby/docs/reference/google-cloud-dialogflow-v2/1.1.1/Google-Cloud-Dialogflow-V2-DetectIntentResponse)\n- [1.0.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.0.0/Google-Cloud-Dialogflow-V2-DetectIntentResponse)\n- [0.34.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.34.0/Google-Cloud-Dialogflow-V2-DetectIntentResponse)\n- [0.33.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.33.0/Google-Cloud-Dialogflow-V2-DetectIntentResponse)\n- [0.32.2](/ruby/docs/reference/google-cloud-dialogflow-v2/0.32.2/Google-Cloud-Dialogflow-V2-DetectIntentResponse)\n- [0.31.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.31.0/Google-Cloud-Dialogflow-V2-DetectIntentResponse)\n- [0.30.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.30.0/Google-Cloud-Dialogflow-V2-DetectIntentResponse)\n- [0.29.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.29.0/Google-Cloud-Dialogflow-V2-DetectIntentResponse)\n- [0.28.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.28.0/Google-Cloud-Dialogflow-V2-DetectIntentResponse)\n- [0.27.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.27.0/Google-Cloud-Dialogflow-V2-DetectIntentResponse)\n- [0.26.2](/ruby/docs/reference/google-cloud-dialogflow-v2/0.26.2/Google-Cloud-Dialogflow-V2-DetectIntentResponse)\n- [0.25.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.25.0/Google-Cloud-Dialogflow-V2-DetectIntentResponse)\n- [0.24.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.24.0/Google-Cloud-Dialogflow-V2-DetectIntentResponse)\n- [0.23.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.23.0/Google-Cloud-Dialogflow-V2-DetectIntentResponse)\n- [0.22.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.22.0/Google-Cloud-Dialogflow-V2-DetectIntentResponse)\n- [0.21.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.21.0/Google-Cloud-Dialogflow-V2-DetectIntentResponse)\n- [0.20.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.20.0/Google-Cloud-Dialogflow-V2-DetectIntentResponse)\n- [0.19.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.19.0/Google-Cloud-Dialogflow-V2-DetectIntentResponse)\n- [0.18.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.18.0/Google-Cloud-Dialogflow-V2-DetectIntentResponse)\n- [0.17.1](/ruby/docs/reference/google-cloud-dialogflow-v2/0.17.1/Google-Cloud-Dialogflow-V2-DetectIntentResponse)\n- [0.16.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.16.0/Google-Cloud-Dialogflow-V2-DetectIntentResponse)\n- [0.15.2](/ruby/docs/reference/google-cloud-dialogflow-v2/0.15.2/Google-Cloud-Dialogflow-V2-DetectIntentResponse)\n- [0.14.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.14.0/Google-Cloud-Dialogflow-V2-DetectIntentResponse)\n- [0.13.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.13.0/Google-Cloud-Dialogflow-V2-DetectIntentResponse)\n- [0.12.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.12.0/Google-Cloud-Dialogflow-V2-DetectIntentResponse) \nReference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::DetectIntentResponse.\n\nThe message returned from the \\[DetectIntent\\]\\[\\] method. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #output_audio\n\n def output_audio() -\u003e ::String\n\n**Returns**\n\n- (::String) --- 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.\n\n\n In some scenarios, multiple output audio fields may be present in the\n response structure. In these cases, only the top-most-level audio output\n has content.\n\n### #output_audio=\n\n def output_audio=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- 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.\n\n\n In some scenarios, multiple output audio fields may be present in the\n response structure. In these cases, only the top-most-level audio output\nhas content. \n**Returns**\n\n- (::String) --- 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.\n\n\n In some scenarios, multiple output audio fields may be present in the\n response structure. In these cases, only the top-most-level audio output\n has content.\n\n### #output_audio_config\n\n def output_audio_config() -\u003e ::Google::Cloud::Dialogflow::V2::OutputAudioConfig\n\n**Returns**\n\n- ([::Google::Cloud::Dialogflow::V2::OutputAudioConfig](./Google-Cloud-Dialogflow-V2-OutputAudioConfig)) --- The config used by the speech synthesizer to generate the output audio.\n\n### #output_audio_config=\n\n def output_audio_config=(value) -\u003e ::Google::Cloud::Dialogflow::V2::OutputAudioConfig\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Dialogflow::V2::OutputAudioConfig](./Google-Cloud-Dialogflow-V2-OutputAudioConfig)) --- The config used by the speech synthesizer to generate the output audio. \n**Returns**\n\n- ([::Google::Cloud::Dialogflow::V2::OutputAudioConfig](./Google-Cloud-Dialogflow-V2-OutputAudioConfig)) --- The config used by the speech synthesizer to generate the output audio.\n\n### #query_result\n\n def query_result() -\u003e ::Google::Cloud::Dialogflow::V2::QueryResult\n\n**Returns**\n\n- ([::Google::Cloud::Dialogflow::V2::QueryResult](./Google-Cloud-Dialogflow-V2-QueryResult)) --- The selected results of the conversational query or event processing. See `alternative_query_results` for additional potential results.\n\n### #query_result=\n\n def query_result=(value) -\u003e ::Google::Cloud::Dialogflow::V2::QueryResult\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Dialogflow::V2::QueryResult](./Google-Cloud-Dialogflow-V2-QueryResult)) --- The selected results of the conversational query or event processing. See `alternative_query_results` for additional potential results. \n**Returns**\n\n- ([::Google::Cloud::Dialogflow::V2::QueryResult](./Google-Cloud-Dialogflow-V2-QueryResult)) --- The selected results of the conversational query or event processing. See `alternative_query_results` for additional potential results.\n\n### #response_id\n\n def response_id() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The unique identifier of the response. It can be used to locate a response in the training example set or for reporting issues.\n\n### #response_id=\n\n def response_id=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The unique identifier of the response. It can be used to locate a response in the training example set or for reporting issues. \n**Returns**\n\n- (::String) --- The unique identifier of the response. It can be used to locate a response in the training example set or for reporting issues.\n\n### #webhook_status\n\n def webhook_status() -\u003e ::Google::Rpc::Status\n\n**Returns**\n\n- ([::Google::Rpc::Status](./Google-Rpc-Status)) --- Specifies the status of the webhook request.\n\n### #webhook_status=\n\n def webhook_status=(value) -\u003e ::Google::Rpc::Status\n\n**Parameter**\n\n- **value** ([::Google::Rpc::Status](./Google-Rpc-Status)) --- Specifies the status of the webhook request. \n**Returns**\n\n- ([::Google::Rpc::Status](./Google-Rpc-Status)) --- Specifies the status of the webhook request."]]