Class AnswerFeedback.Builder

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

public static final class AnswerFeedback.Builder extends com.google.protobuf.GeneratedMessage.Builder<AnswerFeedback.Builder> implements AnswerFeedbackOrBuilder
 Stores information about feedback provided by users about a response.
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.AnswerFeedback
  • 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.Builder>
    • clear

      public AnswerFeedback.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.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.Builder>
    • getDefaultInstanceForType

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

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

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

      public AnswerFeedback.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.Builder>
    • mergeFrom

      public AnswerFeedback.Builder mergeFrom(AnswerFeedback other)
    • isInitialized

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

      public AnswerFeedback.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.Builder>
      Throws:
      IOException
    • getRatingValue

      public int getRatingValue()
       Optional. Rating from user for the specific Dialogflow response.
       
      .google.cloud.dialogflow.cx.v3beta1.AnswerFeedback.Rating rating = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRatingValue in interface AnswerFeedbackOrBuilder
      Returns:
      The enum numeric value on the wire for rating.
    • setRatingValue

      public AnswerFeedback.Builder setRatingValue(int value)
       Optional. Rating from user for the specific Dialogflow response.
       
      .google.cloud.dialogflow.cx.v3beta1.AnswerFeedback.Rating rating = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for rating to set.
      Returns:
      This builder for chaining.
    • getRating

      public AnswerFeedback.Rating getRating()
       Optional. Rating from user for the specific Dialogflow response.
       
      .google.cloud.dialogflow.cx.v3beta1.AnswerFeedback.Rating rating = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRating in interface AnswerFeedbackOrBuilder
      Returns:
      The rating.
    • setRating

       Optional. Rating from user for the specific Dialogflow response.
       
      .google.cloud.dialogflow.cx.v3beta1.AnswerFeedback.Rating rating = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The rating to set.
      Returns:
      This builder for chaining.
    • clearRating

      public AnswerFeedback.Builder clearRating()
       Optional. Rating from user for the specific Dialogflow response.
       
      .google.cloud.dialogflow.cx.v3beta1.AnswerFeedback.Rating rating = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasRatingReason

      public boolean hasRatingReason()
       Optional. In case of thumbs down rating provided, users can optionally
       provide context about the rating.
       
      .google.cloud.dialogflow.cx.v3beta1.AnswerFeedback.RatingReason rating_reason = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasRatingReason in interface AnswerFeedbackOrBuilder
      Returns:
      Whether the ratingReason field is set.
    • getRatingReason

      public AnswerFeedback.RatingReason getRatingReason()
       Optional. In case of thumbs down rating provided, users can optionally
       provide context about the rating.
       
      .google.cloud.dialogflow.cx.v3beta1.AnswerFeedback.RatingReason rating_reason = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRatingReason in interface AnswerFeedbackOrBuilder
      Returns:
      The ratingReason.
    • setRatingReason

      public AnswerFeedback.Builder setRatingReason(AnswerFeedback.RatingReason value)
       Optional. In case of thumbs down rating provided, users can optionally
       provide context about the rating.
       
      .google.cloud.dialogflow.cx.v3beta1.AnswerFeedback.RatingReason rating_reason = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setRatingReason

      public AnswerFeedback.Builder setRatingReason(AnswerFeedback.RatingReason.Builder builderForValue)
       Optional. In case of thumbs down rating provided, users can optionally
       provide context about the rating.
       
      .google.cloud.dialogflow.cx.v3beta1.AnswerFeedback.RatingReason rating_reason = 2 [(.google.api.field_behavior) = OPTIONAL];
    • mergeRatingReason

      public AnswerFeedback.Builder mergeRatingReason(AnswerFeedback.RatingReason value)
       Optional. In case of thumbs down rating provided, users can optionally
       provide context about the rating.
       
      .google.cloud.dialogflow.cx.v3beta1.AnswerFeedback.RatingReason rating_reason = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearRatingReason

      public AnswerFeedback.Builder clearRatingReason()
       Optional. In case of thumbs down rating provided, users can optionally
       provide context about the rating.
       
      .google.cloud.dialogflow.cx.v3beta1.AnswerFeedback.RatingReason rating_reason = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getRatingReasonBuilder

      public AnswerFeedback.RatingReason.Builder getRatingReasonBuilder()
       Optional. In case of thumbs down rating provided, users can optionally
       provide context about the rating.
       
      .google.cloud.dialogflow.cx.v3beta1.AnswerFeedback.RatingReason rating_reason = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getRatingReasonOrBuilder

      public AnswerFeedback.RatingReasonOrBuilder getRatingReasonOrBuilder()
       Optional. In case of thumbs down rating provided, users can optionally
       provide context about the rating.
       
      .google.cloud.dialogflow.cx.v3beta1.AnswerFeedback.RatingReason rating_reason = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRatingReasonOrBuilder in interface AnswerFeedbackOrBuilder
    • getCustomRating

      public String getCustomRating()
       Optional. Custom rating from the user about the provided answer, with
       maximum length of 1024 characters. For example, client could use a
       customized JSON object to indicate the rating.
       
      string custom_rating = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCustomRating in interface AnswerFeedbackOrBuilder
      Returns:
      The customRating.
    • getCustomRatingBytes

      public com.google.protobuf.ByteString getCustomRatingBytes()
       Optional. Custom rating from the user about the provided answer, with
       maximum length of 1024 characters. For example, client could use a
       customized JSON object to indicate the rating.
       
      string custom_rating = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCustomRatingBytes in interface AnswerFeedbackOrBuilder
      Returns:
      The bytes for customRating.
    • setCustomRating

      public AnswerFeedback.Builder setCustomRating(String value)
       Optional. Custom rating from the user about the provided answer, with
       maximum length of 1024 characters. For example, client could use a
       customized JSON object to indicate the rating.
       
      string custom_rating = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The customRating to set.
      Returns:
      This builder for chaining.
    • clearCustomRating

      public AnswerFeedback.Builder clearCustomRating()
       Optional. Custom rating from the user about the provided answer, with
       maximum length of 1024 characters. For example, client could use a
       customized JSON object to indicate the rating.
       
      string custom_rating = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setCustomRatingBytes

      public AnswerFeedback.Builder setCustomRatingBytes(com.google.protobuf.ByteString value)
       Optional. Custom rating from the user about the provided answer, with
       maximum length of 1024 characters. For example, client could use a
       customized JSON object to indicate the rating.
       
      string custom_rating = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for customRating to set.
      Returns:
      This builder for chaining.