Interface AnswerFeedback.RatingReasonOrBuilder (0.52.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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
List<String>

A list containing the reasonLabels.