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.



9177
9178
9179
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9177

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)


9155
9156
9157
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9155

def output_audio
  @output_audio
end

#output_audio_configGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2OutputAudioConfig

Corresponds to the JSON property outputAudioConfig



9160
9161
9162
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9160

def output_audio_config
  @output_audio_config
end

#query_resultGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryResult

Corresponds to the JSON property queryResult



9165
9166
9167
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9165

def query_result
  @query_result
end

#response_idString

Corresponds to the JSON property responseId

Returns:

  • (String)


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

def response_id
  @response_id
end

#webhook_statusGoogle::Apis::DialogflowV2::GoogleRpcStatus

Corresponds to the JSON property webhookStatus



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

def webhook_status
  @webhook_status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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