Class AnswerFeedback.RatingReason.Builder

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

public static final class AnswerFeedback.RatingReason.Builder extends com.google.protobuf.GeneratedMessage.Builder<AnswerFeedback.RatingReason.Builder> implements AnswerFeedback.RatingReasonOrBuilder
 Stores extra information about why users provided thumbs down rating.
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.AnswerFeedback.RatingReason
  • 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.Builder<AnswerFeedback.RatingReason.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<AnswerFeedback.RatingReason.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<AnswerFeedback.RatingReason.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public AnswerFeedback.RatingReason.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AnswerFeedback.RatingReason.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<AnswerFeedback.RatingReason.Builder>
    • mergeFrom

      public AnswerFeedback.RatingReason.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AnswerFeedback.RatingReason.Builder>
      Throws:
      IOException
    • 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.
    • setReasonLabels

      public AnswerFeedback.RatingReason.Builder setReasonLabels(int index, String value)
       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];
      Parameters:
      index - The index to set the value at.
      value - The reasonLabels to set.
      Returns:
      This builder for chaining.
    • addReasonLabels

      public AnswerFeedback.RatingReason.Builder addReasonLabels(String value)
       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];
      Parameters:
      value - The reasonLabels to add.
      Returns:
      This builder for chaining.
    • addAllReasonLabels

      public AnswerFeedback.RatingReason.Builder addAllReasonLabels(Iterable<String> values)
       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];
      Parameters:
      values - The reasonLabels to add.
      Returns:
      This builder for chaining.
    • clearReasonLabels

      public AnswerFeedback.RatingReason.Builder clearReasonLabels()
       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:
      This builder for chaining.
    • addReasonLabelsBytes

      public AnswerFeedback.RatingReason.Builder addReasonLabelsBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes of the reasonLabels to add.
      Returns:
      This builder for chaining.
    • 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.
    • setFeedback

      public AnswerFeedback.RatingReason.Builder setFeedback(String value)
       Optional. Additional feedback about the rating.
       This field can be populated without choosing a predefined `reason`.
       
      string feedback = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The feedback to set.
      Returns:
      This builder for chaining.
    • clearFeedback

      public AnswerFeedback.RatingReason.Builder clearFeedback()
       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:
      This builder for chaining.
    • setFeedbackBytes

      public AnswerFeedback.RatingReason.Builder setFeedbackBytes(com.google.protobuf.ByteString value)
       Optional. Additional feedback about the rating.
       This field can be populated without choosing a predefined `reason`.
       
      string feedback = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for feedback to set.
      Returns:
      This builder for chaining.