Class AnswerFeedback.RatingReason

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.dialogflow.cx.v3beta1.AnswerFeedback.RatingReason
All Implemented Interfaces:
AnswerFeedback.RatingReasonOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
AnswerFeedback

public static final class AnswerFeedback.RatingReason extends com.google.protobuf.GeneratedMessage implements AnswerFeedback.RatingReasonOrBuilder
 Stores extra information about why users provided thumbs down rating.
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.AnswerFeedback.RatingReason
See Also:
  • Field Details

    • REASON_LABELS_FIELD_NUMBER

      public static final int REASON_LABELS_FIELD_NUMBER
      See Also:
    • FEEDBACK_FIELD_NUMBER

      public static final int FEEDBACK_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getReasonLabelsList

      public com.google.protobuf.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];
      Specified by:
      getReasonLabelsList in interface AnswerFeedback.RatingReasonOrBuilder
      Returns:
      A list containing the reasonLabels.
    • 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];
      Specified by:
      getReasonLabelsCount in interface AnswerFeedback.RatingReasonOrBuilder
      Returns:
      The count of reasonLabels.
    • getReasonLabels

      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];
      Specified by:
      getReasonLabels in interface AnswerFeedback.RatingReasonOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The reasonLabels at the given index.
    • getReasonLabelsBytes

      public com.google.protobuf.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];
      Specified by:
      getReasonLabelsBytes in interface AnswerFeedback.RatingReasonOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the reasonLabels at the given index.
    • 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];
      Specified by:
      getFeedback in interface AnswerFeedback.RatingReasonOrBuilder
      Returns:
      The feedback.
    • getFeedbackBytes

      public com.google.protobuf.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];
      Specified by:
      getFeedbackBytes in interface AnswerFeedback.RatingReasonOrBuilder
      Returns:
      The bytes for feedback.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static AnswerFeedback.RatingReason parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AnswerFeedback.RatingReason parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AnswerFeedback.RatingReason parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AnswerFeedback.RatingReason parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AnswerFeedback.RatingReason parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AnswerFeedback.RatingReason parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AnswerFeedback.RatingReason parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AnswerFeedback.RatingReason parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AnswerFeedback.RatingReason parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AnswerFeedback.RatingReason parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AnswerFeedback.RatingReason parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AnswerFeedback.RatingReason parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public AnswerFeedback.RatingReason.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static AnswerFeedback.RatingReason.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected AnswerFeedback.RatingReason.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static AnswerFeedback.RatingReason getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<AnswerFeedback.RatingReason> parser()
    • getParserForType

      public com.google.protobuf.Parser<AnswerFeedback.RatingReason> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public AnswerFeedback.RatingReason getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder