Interface AnswerFeedback.RatingReasonOrBuilder (0.50.0)

public static interface AnswerFeedback.RatingReasonOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getFeedback()

public abstract String getFeedback()

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

string feedback = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The feedback.

getFeedbackBytes()

public abstract ByteString getFeedbackBytes()

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

string feedback = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for feedback.

getReasonLabels(int index)

public abstract String getReasonLabels(int index)

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.

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

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The reasonLabels at the given index.

getReasonLabelsBytes(int index)

public abstract ByteString getReasonLabelsBytes(int index)

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.

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

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the reasonLabels at the given index.

getReasonLabelsCount()

public abstract int getReasonLabelsCount()

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.

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

Returns
Type Description
int

The count of reasonLabels.

getReasonLabelsList()

public abstract List<String> getReasonLabelsList()

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.

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

Returns
Type Description
List<String>

A list containing the reasonLabels.