Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AnswerFeedback

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 feedback the customer has about the quality & correctness of a certain answer in a conversation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2AnswerFeedback

Returns a new instance of GoogleCloudDialogflowV2AnswerFeedback.



8185
8186
8187
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8185

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

Instance Attribute Details

#agent_assistant_detail_feedbackGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentAssistantFeedback

Detail feedback of Agent Assist result. Corresponds to the JSON property agentAssistantDetailFeedback



8153
8154
8155
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8153

def agent_assistant_detail_feedback
  @agent_assistant_detail_feedback
end

#click_timeString

Time when the answer/item was clicked. Corresponds to the JSON property clickTime

Returns:

  • (String)


8158
8159
8160
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8158

def click_time
  @click_time
end

#clickedBoolean Also known as: clicked?

Indicates whether the answer/item was clicked by the human agent or not. Default to false. For knowledge search and knowledge assist, the answer record is considered to be clicked if the answer was copied or any URI was clicked. Corresponds to the JSON property clicked

Returns:

  • (Boolean)


8165
8166
8167
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8165

def clicked
  @clicked
end

#correctness_levelString

The correctness level of the specific answer. Corresponds to the JSON property correctnessLevel

Returns:

  • (String)


8171
8172
8173
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8171

def correctness_level
  @correctness_level
end

#display_timeString

Time when the answer/item was displayed. Corresponds to the JSON property displayTime

Returns:

  • (String)


8176
8177
8178
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8176

def display_time
  @display_time
end

#displayedBoolean Also known as: displayed?

Indicates whether the answer/item was displayed to the human agent in the agent desktop UI. Default to false. Corresponds to the JSON property displayed

Returns:

  • (Boolean)


8182
8183
8184
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8182

def displayed
  @displayed
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8190
8191
8192
8193
8194
8195
8196
8197
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8190

def update!(**args)
  @agent_assistant_detail_feedback = args[:agent_assistant_detail_feedback] if args.key?(:agent_assistant_detail_feedback)
  @click_time = args[:click_time] if args.key?(:click_time)
  @clicked = args[:clicked] if args.key?(:clicked)
  @correctness_level = args[:correctness_level] if args.key?(:correctness_level)
  @display_time = args[:display_time] if args.key?(:display_time)
  @displayed = args[:displayed] if args.key?(:displayed)
end