Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2DetectIntentRequest

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

Overview

The request to detect user's intent.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2DetectIntentRequest

Returns a new instance of GoogleCloudDialogflowV2DetectIntentRequest



444
445
446
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 444

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

Instance Attribute Details

#input_audioString

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.

Returns:

  • (String)


428
429
430
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 428

def input_audio
  @input_audio
end

#query_inputGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryInput

Represents the query input. It can contain either:

  1. An audio config which instructs the speech recognizer how to process the speech audio.
  2. A conversational query in the form of text,.
  3. An event that specifies which intent to trigger. Corresponds to the JSON property queryInput


437
438
439
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 437

def query_input
  @query_input
end

#query_paramsGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryParameters

Represents the parameters of the conversational query. Corresponds to the JSON property queryParams



442
443
444
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 442

def query_params
  @query_params
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



449
450
451
452
453
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 449

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