Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessage

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

Returns a new instance of GoogleCloudDialogflowCxV3ResponseMessage.



6539
6540
6541
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6539

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

Instance Attribute Details

#channelString

Corresponds to the JSON property channel

Returns:

  • (String)


6477
6478
6479
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6477

def channel
  @channel
end

#conversation_successGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess

Corresponds to the JSON property conversationSuccess



6482
6483
6484
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6482

def conversation_success
  @conversation_success
end

#end_interactionGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessageEndInteraction

Corresponds to the JSON property endInteraction



6487
6488
6489
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6487

def end_interaction
  @end_interaction
end

#knowledge_info_cardGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessageKnowledgeInfoCard

Corresponds to the JSON property knowledgeInfoCard



6492
6493
6494
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6492

def knowledge_info_card
  @knowledge_info_card
end

#live_agent_handoffGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff

Corresponds to the JSON property liveAgentHandoff



6497
6498
6499
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6497

def live_agent_handoff
  @live_agent_handoff
end

#mixed_audioGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessageMixedAudio

Corresponds to the JSON property mixedAudio



6502
6503
6504
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6502

def mixed_audio
  @mixed_audio
end

#output_audio_textGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText

Corresponds to the JSON property outputAudioText



6507
6508
6509
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6507

def output_audio_text
  @output_audio_text
end

#payloadHash<String,Object>

Corresponds to the JSON property payload

Returns:

  • (Hash<String,Object>)


6512
6513
6514
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6512

def payload
  @payload
end

#play_audioGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessagePlayAudio

Corresponds to the JSON property playAudio



6517
6518
6519
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6517

def play_audio
  @play_audio
end

#response_typeString

Corresponds to the JSON property responseType

Returns:

  • (String)


6522
6523
6524
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6522

def response_type
  @response_type
end

#telephony_transfer_callGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall

Corresponds to the JSON property telephonyTransferCall



6527
6528
6529
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6527

def telephony_transfer_call
  @telephony_transfer_call
end

#textGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessageText

Corresponds to the JSON property text



6532
6533
6534
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6532

def text
  @text
end

#tool_callGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ToolCall

Corresponds to the JSON property toolCall



6537
6538
6539
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6537

def tool_call
  @tool_call
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6544

def update!(**args)
  @channel = args[:channel] if args.key?(:channel)
  @conversation_success = args[:conversation_success] if args.key?(:conversation_success)
  @end_interaction = args[:end_interaction] if args.key?(:end_interaction)
  @knowledge_info_card = args[:knowledge_info_card] if args.key?(:knowledge_info_card)
  @live_agent_handoff = args[:live_agent_handoff] if args.key?(:live_agent_handoff)
  @mixed_audio = args[:mixed_audio] if args.key?(:mixed_audio)
  @output_audio_text = args[:output_audio_text] if args.key?(:output_audio_text)
  @payload = args[:payload] if args.key?(:payload)
  @play_audio = args[:play_audio] if args.key?(:play_audio)
  @response_type = args[:response_type] if args.key?(:response_type)
  @telephony_transfer_call = args[:telephony_transfer_call] if args.key?(:telephony_transfer_call)
  @text = args[:text] if args.key?(:text)
  @tool_call = args[:tool_call] if args.key?(:tool_call)
end