Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1AnswerFeedback

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

Stores information about feedback provided by users about a response.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1AnswerFeedback

Returns a new instance of GoogleCloudDialogflowCxV3beta1AnswerFeedback.



4452
4453
4454
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4452

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

Instance Attribute Details

#custom_ratingString

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

Returns:

  • (String)


4440
4441
4442
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4440

def custom_rating
  @custom_rating
end

#ratingString

Optional. Rating from user for the specific Dialogflow response. Corresponds to the JSON property rating

Returns:

  • (String)


4445
4446
4447
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4445

def rating
  @rating
end

#rating_reasonGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1AnswerFeedbackRatingReason

Stores extra information about why users provided thumbs down rating. Corresponds to the JSON property ratingReason



4450
4451
4452
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4450

def rating_reason
  @rating_reason
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4457
4458
4459
4460
4461
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4457

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