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.



14315
14316
14317
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14315

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

Instance Attribute Details

#audio_configGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2InputAudioConfig

Corresponds to the JSON property audioConfig



14303
14304
14305
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14303

def audio_config
  @audio_config
end

#eventGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2EventInput

Corresponds to the JSON property event



14308
14309
14310
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14308

def event
  @event
end

#textGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2TextInput

Corresponds to the JSON property text



14313
14314
14315
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14313

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14320
14321
14322
14323
14324
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14320

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