Class: Google::Cloud::Dialogflow::CX::V3::AnswerFeedback
- Inherits:
-
Object
- Object
- Google::Cloud::Dialogflow::CX::V3::AnswerFeedback
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/dialogflow/cx/v3/session.rb
Overview
Stores information about feedback provided by users about a response.
Defined Under Namespace
Modules: Rating Classes: RatingReason
Instance Attribute Summary collapse
-
#custom_rating ⇒ ::String
Optional.
-
#rating ⇒ ::Google::Cloud::Dialogflow::CX::V3::AnswerFeedback::Rating
Optional.
-
#rating_reason ⇒ ::Google::Cloud::Dialogflow::CX::V3::AnswerFeedback::RatingReason
Optional.
Instance Attribute Details
#custom_rating ⇒ ::String
Returns 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.
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'proto_docs/google/cloud/dialogflow/cx/v3/session.rb', line 38 class AnswerFeedback include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Stores extra information about why users provided thumbs down rating. # @!attribute [rw] reason_labels # @return [::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. # @!attribute [rw] feedback # @return [::String] # Optional. Additional feedback about the rating. # This field can be populated without choosing a predefined `reason`. class RatingReason include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Represents thumbs up/down rating provided by user about a response. module Rating # Rating not specified. RATING_UNSPECIFIED = 0 # Thumbs up feedback from user. THUMBS_UP = 1 # Thumbs down feedback from user. THUMBS_DOWN = 2 end end |
#rating ⇒ ::Google::Cloud::Dialogflow::CX::V3::AnswerFeedback::Rating
Returns Optional. Rating from user for the specific Dialogflow response.
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'proto_docs/google/cloud/dialogflow/cx/v3/session.rb', line 38 class AnswerFeedback include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Stores extra information about why users provided thumbs down rating. # @!attribute [rw] reason_labels # @return [::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. # @!attribute [rw] feedback # @return [::String] # Optional. Additional feedback about the rating. # This field can be populated without choosing a predefined `reason`. class RatingReason include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Represents thumbs up/down rating provided by user about a response. module Rating # Rating not specified. RATING_UNSPECIFIED = 0 # Thumbs up feedback from user. THUMBS_UP = 1 # Thumbs down feedback from user. THUMBS_DOWN = 2 end end |
#rating_reason ⇒ ::Google::Cloud::Dialogflow::CX::V3::AnswerFeedback::RatingReason
Returns Optional. In case of thumbs down rating provided, users can optionally provide context about the rating.
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'proto_docs/google/cloud/dialogflow/cx/v3/session.rb', line 38 class AnswerFeedback include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Stores extra information about why users provided thumbs down rating. # @!attribute [rw] reason_labels # @return [::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. # @!attribute [rw] feedback # @return [::String] # Optional. Additional feedback about the rating. # This field can be populated without choosing a predefined `reason`. class RatingReason include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Represents thumbs up/down rating provided by user about a response. module Rating # Rating not specified. RATING_UNSPECIFIED = 0 # Thumbs up feedback from user. THUMBS_UP = 1 # Thumbs down feedback from user. THUMBS_DOWN = 2 end end |