Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1AnswerFeedbackRatingReason
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1AnswerFeedbackRatingReason
- 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 extra information about why users provided thumbs down rating.
Instance Attribute Summary collapse
-
#feedback ⇒ String
Optional.
-
#reason_labels ⇒ Array<String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1AnswerFeedbackRatingReason
constructor
A new instance of GoogleCloudDialogflowCxV3beta1AnswerFeedbackRatingReason.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1AnswerFeedbackRatingReason
Returns a new instance of GoogleCloudDialogflowCxV3beta1AnswerFeedbackRatingReason.
4379 4380 4381 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4379 def initialize(**args) update!(**args) end |
Instance Attribute Details
#feedback ⇒ String
Optional. Additional feedback about the rating. This field can be populated
without choosing a predefined reason
.
Corresponds to the JSON property feedback
4370 4371 4372 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4370 def feedback @feedback end |
#reason_labels ⇒ Array<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
4377 4378 4379 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4377 def reason_labels @reason_labels end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4384 4385 4386 4387 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4384 def update!(**args) @feedback = args[:feedback] if args.key?(:feedback) @reason_labels = args[:reason_labels] if args.key?(:reason_labels) end |