Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AutomatedAgentReply

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1AutomatedAgentReply

Returns a new instance of GoogleCloudDialogflowV2beta1AutomatedAgentReply.



7844
7845
7846
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7844

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

Instance Attribute Details

#cx_session_parametersHash<String,Object>

The collection of current Dialogflow CX agent session parameters at the time of this response. Corresponds to the JSON property cxSessionParameters

Returns:

  • (Hash<String,Object>)


7820
7821
7822
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7820

def cx_session_parameters
  @cx_session_parameters
end

#detect_intent_responseGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DetectIntentResponse

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



7825
7826
7827
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7825

def detect_intent_response
  @detect_intent_response
end

#eventString

Event name if an event is triggered for the query. Corresponds to the JSON property event

Returns:

  • (String)


7830
7831
7832
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7830

def event
  @event
end

#intentString

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

Returns:

  • (String)


7837
7838
7839
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7837

def intent
  @intent
end

#response_messagesArray<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ResponseMessage>

Response messages from the automated agent. Corresponds to the JSON property responseMessages



7842
7843
7844
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7842

def response_messages
  @response_messages
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7849
7850
7851
7852
7853
7854
7855
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7849

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