Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AutomatedAgentReply

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

Overview

Represents a response from an automated agent.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2AutomatedAgentReply

Returns a new instance of GoogleCloudDialogflowV2AutomatedAgentReply.



9028
9029
9030
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9028

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

Instance Attribute Details

#allow_cancellationBoolean Also known as: allow_cancellation?

Indicates whether the partial automated agent reply is interruptible when a later reply message arrives. e.g. if the agent specified some music as partial response, it can be cancelled. Corresponds to the JSON property allowCancellation

Returns:

  • (Boolean)


9009
9010
9011
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9009

def allow_cancellation
  @allow_cancellation
end

#automated_agent_reply_typeString

AutomatedAgentReply type. Corresponds to the JSON property automatedAgentReplyType

Returns:

  • (String)


9015
9016
9017
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9015

def automated_agent_reply_type
  @automated_agent_reply_type
end

#cx_current_pageString

The unique identifier of the current Dialogflow CX conversation page. Format: projects//locations//agents//flows//pages/. Corresponds to the JSON property cxCurrentPage

Returns:

  • (String)


9021
9022
9023
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9021

def cx_current_page
  @cx_current_page
end

#detect_intent_responseGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2DetectIntentResponse

The message returned from the DetectIntent method. Corresponds to the JSON property detectIntentResponse



9026
9027
9028
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9026

def detect_intent_response
  @detect_intent_response
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9033
9034
9035
9036
9037
9038
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9033

def update!(**args)
  @allow_cancellation = args[:allow_cancellation] if args.key?(:allow_cancellation)
  @automated_agent_reply_type = args[:automated_agent_reply_type] if args.key?(:automated_agent_reply_type)
  @cx_current_page = args[:cx_current_page] if args.key?(:cx_current_page)
  @detect_intent_response = args[:detect_intent_response] if args.key?(:detect_intent_response)
end