Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3QueryInput

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3QueryInput

Returns a new instance of GoogleCloudDialogflowCxV3QueryInput.



6165
6166
6167
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6165

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

Instance Attribute Details

#audioGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3AudioInput

Corresponds to the JSON property audio



6133
6134
6135
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6133

def audio
  @audio
end

#dtmfGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DtmfInput

Corresponds to the JSON property dtmf



6138
6139
6140
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6138

def dtmf
  @dtmf
end

#eventGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EventInput

Corresponds to the JSON property event



6143
6144
6145
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6143

def event
  @event
end

#intentGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3IntentInput

Corresponds to the JSON property intent



6148
6149
6150
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6148

def intent
  @intent
end

#language_codeString

Corresponds to the JSON property languageCode

Returns:

  • (String)


6153
6154
6155
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6153

def language_code
  @language_code
end

#textGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TextInput

Corresponds to the JSON property text



6158
6159
6160
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6158

def text
  @text
end

#tool_call_resultGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ToolCallResult

Corresponds to the JSON property toolCallResult



6163
6164
6165
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6163

def tool_call_result
  @tool_call_result
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6170
6171
6172
6173
6174
6175
6176
6177
6178
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6170

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)
  @tool_call_result = args[:tool_call_result] if args.key?(:tool_call_result)
end