Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentAssistantFeedbackKnowledgeAssistFeedback

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

Feedback for knowledge assist.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2AgentAssistantFeedbackKnowledgeAssistFeedback

Returns a new instance of GoogleCloudDialogflowV2AgentAssistantFeedbackKnowledgeAssistFeedback.



8126
8127
8128
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8126

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

Instance Attribute Details

#answer_copiedBoolean Also known as: answer_copied?

Whether the suggested answer was copied by the human agent. If the value is set to be true, AnswerFeedback.clicked will be updated to be true. Corresponds to the JSON property answerCopied

Returns:

  • (Boolean)


8116
8117
8118
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8116

def answer_copied
  @answer_copied
end

#clicked_urisArray<String>

The URIs clicked by the human agent. The value is appended for each UpdateAnswerRecordRequest. If the value is not empty, AnswerFeedback.clicked will be updated to be true. Corresponds to the JSON property clickedUris

Returns:

  • (Array<String>)


8124
8125
8126
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8124

def clicked_uris
  @clicked_uris
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8131
8132
8133
8134
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8131

def update!(**args)
  @answer_copied = args[:answer_copied] if args.key?(:answer_copied)
  @clicked_uris = args[:clicked_uris] if args.key?(:clicked_uris)
end