class Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1QueryInput

Represents the query input. It can contain one of: 1. A conversational query in the form of text. 2. An intent query that specifies which intent to trigger.

  1. Natural language speech audio to be processed. 4. An event to be triggered.

Attributes

audio[RW]

Represents the natural speech audio to be processed. Corresponds to the JSON property `audio` @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1AudioInput]

dtmf[RW]

Represents the input for dtmf event. Corresponds to the JSON property `dtmf` @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1DtmfInput]

event[RW]

Represents the event to trigger. Corresponds to the JSON property `event` @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1EventInput]

intent[RW]

Represents the intent to trigger programmatically rather than as a result of natural language processing. Corresponds to the JSON property `intent` @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1IntentInput]

language_code[RW]

Required. The language of the input. See [Language Support](cloud. google.com/dialogflow/cx/docs/reference/language) for a list of the currently supported language codes. Note that queries in the same session do not necessarily need to specify the same language. Corresponds to the JSON property `languageCode` @return [String]

text[RW]

Represents the natural language text to be processed. Corresponds to the JSON property `text` @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1TextInput]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dialogflow_v3/classes.rb, line 7366
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dialogflow_v3/classes.rb, line 7371
def update!(**args)
  @audio = args[:audio] if args.key?(:audio)
  @dtmf = args[:dtmf] if args.key?(:dtmf)
  @event = args[:event] if args.key?(:event)
  @intent = args[:intent] if args.key?(:intent)
  @language_code = args[:language_code] if args.key?(:language_code)
  @text = args[:text] if args.key?(:text)
end