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.



6116
6117
6118
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 6116

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)


6103
6104
6105
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 6103

def allow_cancellation
  @allow_cancellation
end

#automated_agent_reply_typeString

AutomatedAgentReply type. Corresponds to the JSON property automatedAgentReplyType

Returns:

  • (String)


6109
6110
6111
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 6109

def automated_agent_reply_type
  @automated_agent_reply_type
end

#detect_intent_responseGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2DetectIntentResponse

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



6114
6115
6116
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 6114

def detect_intent_response
  @detect_intent_response
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6121
6122
6123
6124
6125
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 6121

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)
  @detect_intent_response = args[:detect_intent_response] if args.key?(:detect_intent_response)
end