Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DetectIntentRequest
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DetectIntentRequest
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dialogflow_v2beta1/classes.rb,
 generated/google/apis/dialogflow_v2beta1/representations.rb,
 generated/google/apis/dialogflow_v2beta1/representations.rb
Overview
The request to detect user's intent.
Instance Attribute Summary collapse
- 
  
    
      #input_audio  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Optional. 
- 
  
    
      #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. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1DetectIntentRequest
Returns a new instance of GoogleCloudDialogflowV2beta1DetectIntentRequest
| 1874 1875 1876 | # File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 1874 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.
| 1858 1859 1860 | # File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 1858 def input_audio @input_audio end | 
#query_input ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryInput
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
| 1867 1868 1869 | # File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 1867 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
| 1872 1873 1874 | # File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 1872 def query_params @query_params end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1879 1880 1881 1882 1883 | # File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 1879 def update!(**args) @input_audio = args[:input_audio] if args.key?(:input_audio) @query_input = args[:query_input] if args.key?(:query_input) @query_params = args[:query_params] if args.key?(:query_params) end |