Interface AnswerFeedbackOrBuilder (0.52.0)

public interface AnswerFeedbackOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getCustomRating()

public abstract String getCustomRating()

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.

string custom_rating = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The customRating.

getCustomRatingBytes()

public abstract ByteString getCustomRatingBytes()

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.

string custom_rating = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for customRating.

getRating()

public abstract AnswerFeedback.Rating getRating()

Optional. Rating from user for the specific Dialogflow response.

.google.cloud.dialogflow.cx.v3.AnswerFeedback.Rating rating = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AnswerFeedback.Rating

The rating.

getRatingReason()

public abstract AnswerFeedback.RatingReason getRatingReason()

Optional. In case of thumbs down rating provided, users can optionally provide context about the rating.

.google.cloud.dialogflow.cx.v3.AnswerFeedback.RatingReason rating_reason = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AnswerFeedback.RatingReason

The ratingReason.

getRatingReasonOrBuilder()

public abstract AnswerFeedback.RatingReasonOrBuilder getRatingReasonOrBuilder()

Optional. In case of thumbs down rating provided, users can optionally provide context about the rating.

.google.cloud.dialogflow.cx.v3.AnswerFeedback.RatingReason rating_reason = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AnswerFeedback.RatingReasonOrBuilder

getRatingValue()

public abstract int getRatingValue()

Optional. Rating from user for the specific Dialogflow response.

.google.cloud.dialogflow.cx.v3.AnswerFeedback.Rating rating = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The enum numeric value on the wire for rating.

hasRatingReason()

public abstract boolean hasRatingReason()

Optional. In case of thumbs down rating provided, users can optionally provide context about the rating.

.google.cloud.dialogflow.cx.v3.AnswerFeedback.RatingReason rating_reason = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the ratingReason field is set.