Note: The following fields are mutually exclusive: audio_config, text, event. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: audio_config, text, event. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: audio_config, text, event. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: event, audio_config, text. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: event, audio_config, text. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: event, audio_config, text. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: text, audio_config, event. If a field in that set is populated, all other fields in the set will automatically be cleared.
value (::Google::Cloud::Dialogflow::V2::TextInput) — The natural language text to be processed. Text length must not exceed
256 character for virtual agent interactions.
Note: The following fields are mutually exclusive: text, audio_config, event. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: text, audio_config, event. If a field in that set is populated, all other fields in the set will automatically be cleared.
[[["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::QueryInput (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-QueryInput)\n- [1.10.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.10.0/Google-Cloud-Dialogflow-V2-QueryInput)\n- [1.9.1](/ruby/docs/reference/google-cloud-dialogflow-v2/1.9.1/Google-Cloud-Dialogflow-V2-QueryInput)\n- [1.8.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.8.0/Google-Cloud-Dialogflow-V2-QueryInput)\n- [1.7.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.7.0/Google-Cloud-Dialogflow-V2-QueryInput)\n- [1.6.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.6.0/Google-Cloud-Dialogflow-V2-QueryInput)\n- [1.5.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.5.0/Google-Cloud-Dialogflow-V2-QueryInput)\n- [1.4.1](/ruby/docs/reference/google-cloud-dialogflow-v2/1.4.1/Google-Cloud-Dialogflow-V2-QueryInput)\n- [1.3.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.3.0/Google-Cloud-Dialogflow-V2-QueryInput)\n- [1.2.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.2.0/Google-Cloud-Dialogflow-V2-QueryInput)\n- [1.1.1](/ruby/docs/reference/google-cloud-dialogflow-v2/1.1.1/Google-Cloud-Dialogflow-V2-QueryInput)\n- [1.0.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.0.0/Google-Cloud-Dialogflow-V2-QueryInput)\n- [0.34.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.34.0/Google-Cloud-Dialogflow-V2-QueryInput)\n- [0.33.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.33.0/Google-Cloud-Dialogflow-V2-QueryInput)\n- [0.32.2](/ruby/docs/reference/google-cloud-dialogflow-v2/0.32.2/Google-Cloud-Dialogflow-V2-QueryInput)\n- [0.31.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.31.0/Google-Cloud-Dialogflow-V2-QueryInput)\n- [0.30.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.30.0/Google-Cloud-Dialogflow-V2-QueryInput)\n- [0.29.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.29.0/Google-Cloud-Dialogflow-V2-QueryInput)\n- [0.28.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.28.0/Google-Cloud-Dialogflow-V2-QueryInput)\n- [0.27.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.27.0/Google-Cloud-Dialogflow-V2-QueryInput)\n- [0.26.2](/ruby/docs/reference/google-cloud-dialogflow-v2/0.26.2/Google-Cloud-Dialogflow-V2-QueryInput)\n- [0.25.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.25.0/Google-Cloud-Dialogflow-V2-QueryInput)\n- [0.24.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.24.0/Google-Cloud-Dialogflow-V2-QueryInput)\n- [0.23.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.23.0/Google-Cloud-Dialogflow-V2-QueryInput)\n- [0.22.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.22.0/Google-Cloud-Dialogflow-V2-QueryInput)\n- [0.21.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.21.0/Google-Cloud-Dialogflow-V2-QueryInput)\n- [0.20.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.20.0/Google-Cloud-Dialogflow-V2-QueryInput)\n- [0.19.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.19.0/Google-Cloud-Dialogflow-V2-QueryInput)\n- [0.18.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.18.0/Google-Cloud-Dialogflow-V2-QueryInput)\n- [0.17.1](/ruby/docs/reference/google-cloud-dialogflow-v2/0.17.1/Google-Cloud-Dialogflow-V2-QueryInput)\n- [0.16.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.16.0/Google-Cloud-Dialogflow-V2-QueryInput)\n- [0.15.2](/ruby/docs/reference/google-cloud-dialogflow-v2/0.15.2/Google-Cloud-Dialogflow-V2-QueryInput)\n- [0.14.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.14.0/Google-Cloud-Dialogflow-V2-QueryInput)\n- [0.13.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.13.0/Google-Cloud-Dialogflow-V2-QueryInput)\n- [0.12.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.12.0/Google-Cloud-Dialogflow-V2-QueryInput) \nReference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::QueryInput.\n\nRepresents the query input. It can contain either:\n\n1. An audio config which instructs the speech recognizer how to process the\n speech audio.\n\n2. A conversational query in the form of text.\n\n3. An event that specifies which intent to trigger.\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### #audio_config\n\n def audio_config() -\u003e ::Google::Cloud::Dialogflow::V2::InputAudioConfig\n\n**Returns**\n\n- ([::Google::Cloud::Dialogflow::V2::InputAudioConfig](./Google-Cloud-Dialogflow-V2-InputAudioConfig)) --- Instructs the speech recognizer how to process the speech audio.\n\n\n Note: The following fields are mutually exclusive: `audio_config`, `text`, `event`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #audio_config=\n\n def audio_config=(value) -\u003e ::Google::Cloud::Dialogflow::V2::InputAudioConfig\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Dialogflow::V2::InputAudioConfig](./Google-Cloud-Dialogflow-V2-InputAudioConfig)) --- Instructs the speech recognizer how to process the speech audio.\n\n\nNote: The following fields are mutually exclusive: `audio_config`, `text`, `event`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Google::Cloud::Dialogflow::V2::InputAudioConfig](./Google-Cloud-Dialogflow-V2-InputAudioConfig)) --- Instructs the speech recognizer how to process the speech audio.\n\n\n Note: The following fields are mutually exclusive: `audio_config`, `text`, `event`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #event\n\n def event() -\u003e ::Google::Cloud::Dialogflow::V2::EventInput\n\n**Returns**\n\n- ([::Google::Cloud::Dialogflow::V2::EventInput](./Google-Cloud-Dialogflow-V2-EventInput)) --- The event to be processed.\n\n\n Note: The following fields are mutually exclusive: `event`, `audio_config`, `text`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #event=\n\n def event=(value) -\u003e ::Google::Cloud::Dialogflow::V2::EventInput\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Dialogflow::V2::EventInput](./Google-Cloud-Dialogflow-V2-EventInput)) --- The event to be processed.\n\n\nNote: The following fields are mutually exclusive: `event`, `audio_config`, `text`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Google::Cloud::Dialogflow::V2::EventInput](./Google-Cloud-Dialogflow-V2-EventInput)) --- The event to be processed.\n\n\n Note: The following fields are mutually exclusive: `event`, `audio_config`, `text`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #text\n\n def text() -\u003e ::Google::Cloud::Dialogflow::V2::TextInput\n\n**Returns**\n\n- ([::Google::Cloud::Dialogflow::V2::TextInput](./Google-Cloud-Dialogflow-V2-TextInput)) --- The natural language text to be processed. Text length must not exceed 256 character for virtual agent interactions.\n\n\n Note: The following fields are mutually exclusive: `text`, `audio_config`, `event`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #text=\n\n def text=(value) -\u003e ::Google::Cloud::Dialogflow::V2::TextInput\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Dialogflow::V2::TextInput](./Google-Cloud-Dialogflow-V2-TextInput)) --- The natural language text to be processed. Text length must not exceed 256 character for virtual agent interactions.\n\n\nNote: The following fields are mutually exclusive: `text`, `audio_config`, `event`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Google::Cloud::Dialogflow::V2::TextInput](./Google-Cloud-Dialogflow-V2-TextInput)) --- The natural language text to be processed. Text length must not exceed 256 character for virtual agent interactions.\n\n\n Note: The following fields are mutually exclusive: `text`, `audio_config`, `event`. If a field in that set is populated, all other fields in the set will automatically be cleared."]]