Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DetectIntentRequest
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DetectIntentRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2beta1/classes.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb
Overview
The request to detect user's intent.
Instance Attribute Summary collapse
-
#input_audio ⇒ String
The natural language speech audio to be processed.
-
#output_audio_config ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1OutputAudioConfig
Instructs the speech synthesizer how to generate the output audio content.
-
#output_audio_config_mask ⇒ String
Mask for output_audio_config indicating which settings in this request-level config should override speech synthesizer settings defined at agent-level.
-
#query_input ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryInput
Represents the query input.
-
#query_params ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryParameters
Represents the parameters of the conversational query.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1DetectIntentRequest
constructor
A new instance of GoogleCloudDialogflowV2beta1DetectIntentRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1DetectIntentRequest
Returns a new instance of GoogleCloudDialogflowV2beta1DetectIntentRequest.
14366 14367 14368 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 14366 def initialize(**args) update!(**args) end |
Instance Attribute Details
#input_audio ⇒ String
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.
14336 14337 14338 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 14336 def input_audio @input_audio end |
#output_audio_config ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1OutputAudioConfig
Instructs the speech synthesizer 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
14343 14344 14345 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 14343 def output_audio_config @output_audio_config end |
#output_audio_config_mask ⇒ String
Mask for output_audio_config indicating which settings in this request-level
config should override speech synthesizer settings defined at agent-level. If
unspecified or empty, output_audio_config replaces the agent-level config in
its entirety.
Corresponds to the JSON property outputAudioConfigMask
14351 14352 14353 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 14351 def output_audio_config_mask @output_audio_config_mask end |
#query_input ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryInput
Represents the query input. It can contain either: 1. An audio config which
instructs the speech recognizer how to process the speech audio. 2. A
conversational query in the form of text. 3. An event that specifies which
intent to trigger.
Corresponds to the JSON property queryInput
14359 14360 14361 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 14359 def query_input @query_input end |
#query_params ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryParameters
Represents the parameters of the conversational query.
Corresponds to the JSON property queryParams
14364 14365 14366 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 14364 def query_params @query_params end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
14371 14372 14373 14374 14375 14376 14377 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 14371 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) @output_audio_config_mask = args[:output_audio_config_mask] if args.key?(:output_audio_config_mask) @query_input = args[:query_input] if args.key?(:query_input) @query_params = args[:query_params] if args.key?(:query_params) end |