Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ConversationInteraction

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v3beta1/classes.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb

Overview

Represents an interaction between an end user and a Dialogflow CX agent using V3 (Streaming)DetectIntent API, or an interaction between an end user and a Dialogflow CX agent using V2 (Streaming)AnalyzeContent API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1ConversationInteraction

Returns a new instance of GoogleCloudDialogflowCxV3beta1ConversationInteraction.



5086
5087
5088
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5086

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

Instance Attribute Details

#create_timeString

The time that the interaction was created. Corresponds to the JSON property createTime

Returns:

  • (String)


5050
5051
5052
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5050

def create_time
  @create_time
end

#missing_transitionGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ConversationInteractionMissingTransition

Information collected for DF CX agents in case NLU predicted an intent that was filtered out as being inactive which may indicate a missing transition and/ or absent functionality. Corresponds to the JSON property missingTransition



5057
5058
5059
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5057

def missing_transition
  @missing_transition
end

#partial_responsesArray<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DetectIntentResponse>

The partial responses of the interaction. Empty if there is no partial response in the interaction. See the partial response documentation. Corresponds to the JSON property partialResponses



5063
5064
5065
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5063

def partial_responses
  @partial_responses
end

#requestGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DetectIntentRequest

The request to detect user's intent. Corresponds to the JSON property request



5068
5069
5070
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5068

def request
  @request
end

#request_utterancesString

The input text or the transcript of the input audio in the request. Corresponds to the JSON property requestUtterances

Returns:

  • (String)


5073
5074
5075
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5073

def request_utterances
  @request_utterances
end

#responseGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DetectIntentResponse

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



5078
5079
5080
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5078

def response
  @response
end

#response_utterancesString

The output text or the transcript of the output audio in the responses. If multiple output messages are returned, they will be concatenated into one. Corresponds to the JSON property responseUtterances

Returns:

  • (String)


5084
5085
5086
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5084

def response_utterances
  @response_utterances
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5091
5092
5093
5094
5095
5096
5097
5098
5099
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5091

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @missing_transition = args[:missing_transition] if args.key?(:missing_transition)
  @partial_responses = args[:partial_responses] if args.key?(:partial_responses)
  @request = args[:request] if args.key?(:request)
  @request_utterances = args[:request_utterances] if args.key?(:request_utterances)
  @response = args[:response] if args.key?(:response)
  @response_utterances = args[:response_utterances] if args.key?(:response_utterances)
end