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.



11812
11813
11814
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 11812

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)


11750
11751
11752
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 11750

def allow_cancellation
  @allow_cancellation
end

#automated_agent_reply_typeString

AutomatedAgentReply type. Corresponds to the JSON property automatedAgentReplyType

Returns:

  • (String)


11756
11757
11758
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 11756

def automated_agent_reply_type
  @automated_agent_reply_type
end

#call_companion_auth_codeString

The auth code for accessing Call Companion UI. Corresponds to the JSON property callCompanionAuthCode NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


11762
11763
11764
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 11762

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


11768
11769
11770
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 11768

def cx_current_page
  @cx_current_page
end

#cx_session_parametersHash<String,Object>

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

Returns:

  • (Hash<String,Object>)


11774
11775
11776
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 11774

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



11779
11780
11781
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 11779

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)


11784
11785
11786
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 11784

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)


11791
11792
11793
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 11791

def intent
  @intent
end

#match_confidenceFloat

The confidence of the match. Values range from 0.0 (completely uncertain) to 1. 0 (completely certain). This value is for informational purpose only and is only used to help match the best intent within the classification threshold. This value may change for the same end-user expression at any time due to a model retraining or change in implementation. Corresponds to the JSON property matchConfidence

Returns:

  • (Float)


11800
11801
11802
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 11800

def match_confidence
  @match_confidence
end

#parametersHash<String,Object>

The collection of current parameters at the time of this response. Corresponds to the JSON property parameters

Returns:

  • (Hash<String,Object>)


11805
11806
11807
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 11805

def parameters
  @parameters
end

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

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



11810
11811
11812
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 11810

def response_messages
  @response_messages
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 11817

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)
  @call_companion_auth_code = args[:call_companion_auth_code] if args.key?(:call_companion_auth_code)
  @cx_current_page = args[:cx_current_page] if args.key?(:cx_current_page)
  @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)
  @match_confidence = args[:match_confidence] if args.key?(:match_confidence)
  @parameters = args[:parameters] if args.key?(:parameters)
  @response_messages = args[:response_messages] if args.key?(:response_messages)
end