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.



14522
14523
14524
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14522

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

Instance Attribute Details

#audio_configGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2InputAudioConfig

Corresponds to the JSON property audioConfig



14510
14511
14512
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14510

def audio_config
  @audio_config
end

#eventGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2EventInput

Corresponds to the JSON property event



14515
14516
14517
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14515

def event
  @event
end

#textGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2TextInput

Corresponds to the JSON property text



14520
14521
14522
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14520

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14527
14528
14529
14530
14531
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14527

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