Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AutomatedAgentReply
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AutomatedAgentReply
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2beta1/classes.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb
Overview
Represents a response from an automated agent.
Instance Attribute Summary collapse
-
#cx_session_parameters ⇒ Hash<String,Object>
The collection of current Dialogflow CX agent session parameters at the time of this response.
-
#detect_intent_response ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DetectIntentResponse
The message returned from the DetectIntent method.
-
#event ⇒ String
Event name if an event is triggered for the query.
-
#intent ⇒ String
Name of the intent if an intent is matched for the query.
-
#response_messages ⇒ Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ResponseMessage>
Response messages from the automated agent.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1AutomatedAgentReply
constructor
A new instance of GoogleCloudDialogflowV2beta1AutomatedAgentReply.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1AutomatedAgentReply
Returns a new instance of GoogleCloudDialogflowV2beta1AutomatedAgentReply.
7680 7681 7682 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7680 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cx_session_parameters ⇒ Hash<String,Object>
The collection of current Dialogflow CX agent session parameters at the time
of this response.
Corresponds to the JSON property cxSessionParameters
7656 7657 7658 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7656 def cx_session_parameters @cx_session_parameters end |
#detect_intent_response ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DetectIntentResponse
The message returned from the DetectIntent method.
Corresponds to the JSON property detectIntentResponse
7661 7662 7663 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7661 def detect_intent_response @detect_intent_response end |
#event ⇒ String
Event name if an event is triggered for the query.
Corresponds to the JSON property event
7666 7667 7668 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7666 def event @event end |
#intent ⇒ String
Name of the intent if an intent is matched for the query. For a V2 query, the
value format is projects//locations/ /agent/intents/. For a V3 query, the
value format is projects//locations/ /agents//intents/.
Corresponds to the JSON property intent
7673 7674 7675 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7673 def intent @intent end |
#response_messages ⇒ Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ResponseMessage>
Response messages from the automated agent.
Corresponds to the JSON property responseMessages
7678 7679 7680 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7678 def @response_messages end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7685 7686 7687 7688 7689 7690 7691 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7685 def update!(**args) @cx_session_parameters = args[:cx_session_parameters] if args.key?(:cx_session_parameters) @detect_intent_response = args[:detect_intent_response] if args.key?(:detect_intent_response) @event = args[:event] if args.key?(:event) @intent = args[:intent] if args.key?(:intent) @response_messages = args[:response_messages] if args.key?(:response_messages) end |