Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2DetectIntentResponse

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) ⇒ GoogleCloudDialogflowV2DetectIntentResponse

Returns a new instance of GoogleCloudDialogflowV2DetectIntentResponse.



9191
9192
9193
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9191

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

Instance Attribute Details

#output_audioString

Corresponds to the JSON property outputAudio NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


9169
9170
9171
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9169

def output_audio
  @output_audio
end

#output_audio_configGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2OutputAudioConfig

Corresponds to the JSON property outputAudioConfig



9174
9175
9176
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9174

def output_audio_config
  @output_audio_config
end

#query_resultGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryResult

Corresponds to the JSON property queryResult



9179
9180
9181
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9179

def query_result
  @query_result
end

#response_idString

Corresponds to the JSON property responseId

Returns:

  • (String)


9184
9185
9186
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9184

def response_id
  @response_id
end

#webhook_statusGoogle::Apis::DialogflowV2::GoogleRpcStatus

Corresponds to the JSON property webhookStatus



9189
9190
9191
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9189

def webhook_status
  @webhook_status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9196
9197
9198
9199
9200
9201
9202
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9196

def update!(**args)
  @output_audio = args[:output_audio] if args.key?(:output_audio)
  @output_audio_config = args[:output_audio_config] if args.key?(:output_audio_config)
  @query_result = args[:query_result] if args.key?(:query_result)
  @response_id = args[:response_id] if args.key?(:response_id)
  @webhook_status = args[:webhook_status] if args.key?(:webhook_status)
end