Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1ResponseMessage

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

Returns a new instance of GoogleCloudDialogflowCxV3beta1ResponseMessage.



11759
11760
11761
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 11759

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

Instance Attribute Details

#channelString

Corresponds to the JSON property channel

Returns:

  • (String)


11702
11703
11704
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 11702

def channel
  @channel
end

#conversation_successGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess

Corresponds to the JSON property conversationSuccess



11707
11708
11709
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 11707

def conversation_success
  @conversation_success
end

#end_interactionGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction

Corresponds to the JSON property endInteraction



11712
11713
11714
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 11712

def end_interaction
  @end_interaction
end

#knowledge_info_cardGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1ResponseMessageKnowledgeInfoCard

Corresponds to the JSON property knowledgeInfoCard



11717
11718
11719
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 11717

def knowledge_info_card
  @knowledge_info_card
end

#live_agent_handoffGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff

Corresponds to the JSON property liveAgentHandoff



11722
11723
11724
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 11722

def live_agent_handoff
  @live_agent_handoff
end

#mixed_audioGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio

Corresponds to the JSON property mixedAudio



11727
11728
11729
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 11727

def mixed_audio
  @mixed_audio
end

#output_audio_textGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText

Corresponds to the JSON property outputAudioText



11732
11733
11734
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 11732

def output_audio_text
  @output_audio_text
end

#payloadHash<String,Object>

Corresponds to the JSON property payload

Returns:

  • (Hash<String,Object>)


11737
11738
11739
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 11737

def payload
  @payload
end

#play_audioGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio

Corresponds to the JSON property playAudio



11742
11743
11744
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 11742

def play_audio
  @play_audio
end

#telephony_transfer_callGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall

Corresponds to the JSON property telephonyTransferCall



11747
11748
11749
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 11747

def telephony_transfer_call
  @telephony_transfer_call
end

#textGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1ResponseMessageText

Corresponds to the JSON property text



11752
11753
11754
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 11752

def text
  @text
end

#tool_callGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1ToolCall

Corresponds to the JSON property toolCall



11757
11758
11759
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 11757

def tool_call
  @tool_call
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 11764

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)
  @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