Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryInput

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v2/classes.rb,
lib/google/apis/dialogflow_v2/representations.rb,
lib/google/apis/dialogflow_v2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2QueryInput

Returns a new instance of GoogleCloudDialogflowV2QueryInput.



14366
14367
14368
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14366

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#audio_configGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2InputAudioConfig

Corresponds to the JSON property audioConfig



14354
14355
14356
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14354

def audio_config
  @audio_config
end

#eventGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2EventInput

Corresponds to the JSON property event



14359
14360
14361
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14359

def event
  @event
end

#textGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2TextInput

Corresponds to the JSON property text



14364
14365
14366
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14364

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14371
14372
14373
14374
14375
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14371

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