Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryInput
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryInput
 
 
- 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
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.
 
Instance Attribute Summary collapse
- 
  
    
      #audio_config  ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InputAudioConfig 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Instructs the speech recognizer how to process the audio content.
 - 
  
    
      #event  ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EventInput 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Events allow for matching intents by event name instead of the natural language input.
 - 
  
    
      #text  ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TextInput 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Represents the natural language text to be processed.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ GoogleCloudDialogflowV2beta1QueryInput 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of GoogleCloudDialogflowV2beta1QueryInput.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1QueryInput
Returns a new instance of GoogleCloudDialogflowV2beta1QueryInput
      3852 3853 3854  | 
    
      # File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 3852 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#audio_config ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InputAudioConfig
Instructs the speech recognizer how to process the audio content.
Corresponds to the JSON property audioConfig
      3836 3837 3838  | 
    
      # File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 3836 def audio_config @audio_config end  | 
  
#event ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EventInput
Events allow for matching intents by event name instead of the natural
language input. For instance, input <event: name: “welcome_event”,
parameters: name: “Sam” > can trigger a personalized welcome response.
The parameter name may be used by the agent in the response:
“Hello #welcome_event.name! What can I do for you today?”.
Corresponds to the JSON property event
      3845 3846 3847  | 
    
      # File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 3845 def event @event end  | 
  
#text ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TextInput
Represents the natural language text to be processed.
Corresponds to the JSON property text
      3850 3851 3852  | 
    
      # File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 3850 def text @text end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      3857 3858 3859 3860 3861  | 
    
      # File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 3857 def update!(**args) @audio_config = args[:audio_config] if args.key?(:audio_config) @event = args[:event] if args.key?(:event) @text = args[:text] if args.key?(:text) end  |