Class: Google::Cloud::Dialogflow::V2::DetectIntentRequest
- Inherits:
-
Object
- Object
- Google::Cloud::Dialogflow::V2::DetectIntentRequest
- Defined in:
- lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/session.rb
Overview
The request to detect user's intent.
Instance Attribute Summary collapse
-
#input_audio ⇒ String
Optional.
-
#query_input ⇒ Google::Cloud::Dialogflow::V2::QueryInput
Required.
-
#query_params ⇒ Google::Cloud::Dialogflow::V2::QueryParameters
Optional.
-
#session ⇒ String
Required.
Instance Attribute Details
#input_audio ⇒ String
Returns 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.
46 |
# File 'lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/session.rb', line 46 class DetectIntentRequest; end |
#query_input ⇒ Google::Cloud::Dialogflow::V2::QueryInput
Returns Required. The input specification. It can be set to:
an audio config which instructs the speech recognizer how to process the speech audio,
a conversational query in the form of text, or
an event that specifies which intent to trigger.
46 |
# File 'lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/session.rb', line 46 class DetectIntentRequest; end |
#query_params ⇒ Google::Cloud::Dialogflow::V2::QueryParameters
Returns Optional. The parameters of this query.
46 |
# File 'lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/session.rb', line 46 class DetectIntentRequest; end |
#session ⇒ String
Returns Required. The name of the session this query is sent to. Format:
projects/<Project ID>/agent/sessions/<Session ID>
. It's up to the API
caller to choose an appropriate session ID. It can be a random number or
some type of user identifier (preferably hashed). The length of the session
ID must not exceed 36 bytes.
46 |
# File 'lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/session.rb', line 46 class DetectIntentRequest; end |