Class AnswerFeedback.RatingReason (0.52.0)

public static final class AnswerFeedback.RatingReason extends GeneratedMessageV3 implements AnswerFeedback.RatingReasonOrBuilder

Stores extra information about why users provided thumbs down rating.

Protobuf type google.cloud.dialogflow.cx.v3beta1.AnswerFeedback.RatingReason

Static Fields

FEEDBACK_FIELD_NUMBER

public static final int FEEDBACK_FIELD_NUMBER
Field Value
TypeDescription
int

REASON_LABELS_FIELD_NUMBER

public static final int REASON_LABELS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AnswerFeedback.RatingReason getDefaultInstance()
Returns
TypeDescription
AnswerFeedback.RatingReason

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static AnswerFeedback.RatingReason.Builder newBuilder()
Returns
TypeDescription
AnswerFeedback.RatingReason.Builder

newBuilder(AnswerFeedback.RatingReason prototype)

public static AnswerFeedback.RatingReason.Builder newBuilder(AnswerFeedback.RatingReason prototype)
Parameter
NameDescription
prototypeAnswerFeedback.RatingReason
Returns
TypeDescription
AnswerFeedback.RatingReason.Builder

parseDelimitedFrom(InputStream input)

public static AnswerFeedback.RatingReason parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AnswerFeedback.RatingReason
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AnswerFeedback.RatingReason parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnswerFeedback.RatingReason
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static AnswerFeedback.RatingReason parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
AnswerFeedback.RatingReason
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AnswerFeedback.RatingReason parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnswerFeedback.RatingReason
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AnswerFeedback.RatingReason parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AnswerFeedback.RatingReason
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AnswerFeedback.RatingReason parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnswerFeedback.RatingReason
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AnswerFeedback.RatingReason parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AnswerFeedback.RatingReason
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AnswerFeedback.RatingReason parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnswerFeedback.RatingReason
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static AnswerFeedback.RatingReason parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AnswerFeedback.RatingReason
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AnswerFeedback.RatingReason parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnswerFeedback.RatingReason
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static AnswerFeedback.RatingReason parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AnswerFeedback.RatingReason
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AnswerFeedback.RatingReason parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnswerFeedback.RatingReason
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<AnswerFeedback.RatingReason> parser()
Returns
TypeDescription
Parser<RatingReason>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public AnswerFeedback.RatingReason getDefaultInstanceForType()
Returns
TypeDescription
AnswerFeedback.RatingReason

getFeedback()

public 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 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.

getParserForType()

public Parser<AnswerFeedback.RatingReason> getParserForType()
Returns
TypeDescription
Parser<RatingReason>
Overrides

getReasonLabels(int index)

public 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 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 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 ProtocolStringList 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
ProtocolStringList

A list containing the reasonLabels.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public AnswerFeedback.RatingReason.Builder newBuilderForType()
Returns
TypeDescription
AnswerFeedback.RatingReason.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AnswerFeedback.RatingReason.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
AnswerFeedback.RatingReason.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public AnswerFeedback.RatingReason.Builder toBuilder()
Returns
TypeDescription
AnswerFeedback.RatingReason.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException