Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3AnswerFeedback
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3AnswerFeedback
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v3/classes.rb,
lib/google/apis/dialogflow_v3/representations.rb,
lib/google/apis/dialogflow_v3/representations.rb
Overview
Stores information about feedback provided by users about a response.
Instance Attribute Summary collapse
-
#custom_rating ⇒ String
Optional.
-
#rating ⇒ String
Optional.
-
#rating_reason ⇒ Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3AnswerFeedbackRatingReason
Stores extra information about why users provided thumbs down rating.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3AnswerFeedback
constructor
A new instance of GoogleCloudDialogflowCxV3AnswerFeedback.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3AnswerFeedback
Returns a new instance of GoogleCloudDialogflowCxV3AnswerFeedback.
430 431 432 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 430 def initialize(**args) update!(**args) end |
Instance Attribute Details
#custom_rating ⇒ String
Optional. Custom rating from the user about the provided answer, with maximum
length of 1024 characters. For example, client could use a customized JSON
object to indicate the rating.
Corresponds to the JSON property customRating
418 419 420 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 418 def @custom_rating end |
#rating ⇒ String
Optional. Rating from user for the specific Dialogflow response.
Corresponds to the JSON property rating
423 424 425 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 423 def @rating end |
#rating_reason ⇒ Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3AnswerFeedbackRatingReason
Stores extra information about why users provided thumbs down rating.
Corresponds to the JSON property ratingReason
428 429 430 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 428 def @rating_reason end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
435 436 437 438 439 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 435 def update!(**args) @custom_rating = args[:custom_rating] if args.key?(:custom_rating) @rating = args[:rating] if args.key?(:rating) @rating_reason = args[:rating_reason] if args.key?(:rating_reason) end |