Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3AnswerFeedbackRatingReason

Inherits:
Object
  • Object
show all
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 extra information about why users provided thumbs down rating.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3AnswerFeedbackRatingReason

Returns a new instance of GoogleCloudDialogflowCxV3AnswerFeedbackRatingReason.



459
460
461
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 459

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

Instance Attribute Details

#feedbackString

Optional. Additional feedback about the rating. This field can be populated without choosing a predefined reason. Corresponds to the JSON property feedback

Returns:

  • (String)


450
451
452
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 450

def feedback
  @feedback
end

#reason_labelsArray<String>

Optional. Custom reason labels for thumbs down rating provided by the user. The maximum number of labels allowed is 10 and the maximum length of a single label is 128 characters. Corresponds to the JSON property reasonLabels

Returns:

  • (Array<String>)


457
458
459
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 457

def reason_labels
  @reason_labels
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



464
465
466
467
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 464

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