Optional. In case of thumbs down rating provided, users can optionally provide context about the rating.
↳ 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.
getRating
Optional. Rating from user for the specific Dialogflow response.
Returns
Type
Description
int
setRating
Optional. Rating from user for the specific Dialogflow response.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getRatingReason
Optional. In case of thumbs down rating provided, users can optionally
provide context about the rating.
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.
Returns
Type
Description
string
setCustomRating
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Dialogflow Cx V3 Client - Class AnswerFeedback (0.8.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.8.1 (latest)](/php/docs/reference/cloud-dialogflow-cx/latest/V3.AnswerFeedback)\n- [0.8.0](/php/docs/reference/cloud-dialogflow-cx/0.8.0/V3.AnswerFeedback)\n- [0.7.2](/php/docs/reference/cloud-dialogflow-cx/0.7.2/V3.AnswerFeedback)\n- [0.6.0](/php/docs/reference/cloud-dialogflow-cx/0.6.0/V3.AnswerFeedback)\n- [0.5.2](/php/docs/reference/cloud-dialogflow-cx/0.5.2/V3.AnswerFeedback)\n- [0.4.1](/php/docs/reference/cloud-dialogflow-cx/0.4.1/V3.AnswerFeedback)\n- [0.3.4](/php/docs/reference/cloud-dialogflow-cx/0.3.4/V3.AnswerFeedback)\n- [0.2.1](/php/docs/reference/cloud-dialogflow-cx/0.2.1/V3.AnswerFeedback)\n- [0.1.1](/php/docs/reference/cloud-dialogflow-cx/0.1.1/V3.AnswerFeedback) \nReference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class AnswerFeedback.\n\nStores information about feedback provided by users about a response.\n\nGenerated from protobuf message `google.cloud.dialogflow.cx.v3.AnswerFeedback`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dialogflow \\\\ Cx \\\\ V3\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getRating\n\nOptional. Rating from user for the specific Dialogflow response.\n\n### setRating\n\nOptional. Rating from user for the specific Dialogflow response.\n\n### getRatingReason\n\nOptional. In case of thumbs down rating provided, users can optionally\nprovide context about the rating.\n\n### hasRatingReason\n\n### clearRatingReason\n\n### setRatingReason\n\nOptional. In case of thumbs down rating provided, users can optionally\nprovide context about the rating.\n\n### getCustomRating\n\nOptional. Custom rating from the user about the provided answer, with\nmaximum length of 1024 characters. For example, client could use a\ncustomized JSON object to indicate the rating.\n\n### setCustomRating\n\nOptional. Custom rating from the user about the provided answer, with\nmaximum length of 1024 characters. For example, client could use a\ncustomized JSON object to indicate the rating."]]