Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2DetectIntentRequest
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowV2DetectIntentRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dialogflow_v2/classes.rb,
generated/google/apis/dialogflow_v2/representations.rb,
generated/google/apis/dialogflow_v2/representations.rb
Overview
============================================================================ Requests and responses for custom methods. The request to detect user's intent.
Instance Attribute Summary collapse
-
#input_audio ⇒ String
Optional.
-
#output_audio_config ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2OutputAudioConfig
Instructs the speech synthesizer on how to generate the output audio content.
-
#query_input ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryInput
Represents the query input.
-
#query_params ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryParameters
Represents the parameters of the conversational query.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2DetectIntentRequest
constructor
A new instance of GoogleCloudDialogflowV2DetectIntentRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2DetectIntentRequest
Returns a new instance of GoogleCloudDialogflowV2DetectIntentRequest.
574 575 576 |
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 574 def initialize(**args) update!(**args) end |
Instance Attribute Details
#input_audio ⇒ String
Optional. The natural language speech audio to be processed. This field
should be populated iff query_input
is set to an input audio config.
A single request can contain up to 1 minute of speech audio data.
Corresponds to the JSON property inputAudio
NOTE: Values are automatically base64 encoded/decoded in the client library.
551 552 553 |
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 551 def input_audio @input_audio end |
#output_audio_config ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2OutputAudioConfig
Instructs the speech synthesizer on how to generate the output audio content.
If this audio config is supplied in a request, it overrides all existing
text-to-speech settings applied to the agent.
Corresponds to the JSON property outputAudioConfig
558 559 560 |
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 558 def output_audio_config @output_audio_config end |
#query_input ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryInput
Represents the query input. It can contain either:
- An audio config which instructs the speech recognizer how to process the speech audio.
- A conversational query in the form of text,.
- An event that specifies which intent to trigger.
Corresponds to the JSON property
queryInput
567 568 569 |
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 567 def query_input @query_input end |
#query_params ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryParameters
Represents the parameters of the conversational query.
Corresponds to the JSON property queryParams
572 573 574 |
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 572 def query_params @query_params end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
579 580 581 582 583 584 |
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 579 def update!(**args) @input_audio = args[:input_audio] if args.key?(:input_audio) @output_audio_config = args[:output_audio_config] if args.key?(:output_audio_config) @query_input = args[:query_input] if args.key?(:query_input) @query_params = args[:query_params] if args.key?(:query_params) end |