Class QuestionAnsweringHelpfulnessResult.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<QuestionAnsweringHelpfulnessResult.Builder>
com.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessResult.Builder
All Implemented Interfaces:
QuestionAnsweringHelpfulnessResultOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
QuestionAnsweringHelpfulnessResult

public static final class QuestionAnsweringHelpfulnessResult.Builder extends com.google.protobuf.GeneratedMessage.Builder<QuestionAnsweringHelpfulnessResult.Builder> implements QuestionAnsweringHelpfulnessResultOrBuilder
 Spec for question answering helpfulness result.
 
Protobuf type google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessResult
  • 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<QuestionAnsweringHelpfulnessResult.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<QuestionAnsweringHelpfulnessResult.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<QuestionAnsweringHelpfulnessResult.Builder>
    • getDefaultInstanceForType

      public QuestionAnsweringHelpfulnessResult 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 QuestionAnsweringHelpfulnessResult buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public QuestionAnsweringHelpfulnessResult.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<QuestionAnsweringHelpfulnessResult.Builder>
      Throws:
      IOException
    • hasScore

      public boolean hasScore()
       Output only. Question Answering Helpfulness score.
       
      optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasScore in interface QuestionAnsweringHelpfulnessResultOrBuilder
      Returns:
      Whether the score field is set.
    • getScore

      public float getScore()
       Output only. Question Answering Helpfulness score.
       
      optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getScore in interface QuestionAnsweringHelpfulnessResultOrBuilder
      Returns:
      The score.
    • setScore

      public QuestionAnsweringHelpfulnessResult.Builder setScore(float value)
       Output only. Question Answering Helpfulness score.
       
      optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The score to set.
      Returns:
      This builder for chaining.
    • clearScore

       Output only. Question Answering Helpfulness score.
       
      optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getExplanation

      public String getExplanation()
       Output only. Explanation for question answering helpfulness score.
       
      string explanation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getExplanation in interface QuestionAnsweringHelpfulnessResultOrBuilder
      Returns:
      The explanation.
    • getExplanationBytes

      public com.google.protobuf.ByteString getExplanationBytes()
       Output only. Explanation for question answering helpfulness score.
       
      string explanation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getExplanationBytes in interface QuestionAnsweringHelpfulnessResultOrBuilder
      Returns:
      The bytes for explanation.
    • setExplanation

      public QuestionAnsweringHelpfulnessResult.Builder setExplanation(String value)
       Output only. Explanation for question answering helpfulness score.
       
      string explanation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The explanation to set.
      Returns:
      This builder for chaining.
    • clearExplanation

      public QuestionAnsweringHelpfulnessResult.Builder clearExplanation()
       Output only. Explanation for question answering helpfulness score.
       
      string explanation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setExplanationBytes

      public QuestionAnsweringHelpfulnessResult.Builder setExplanationBytes(com.google.protobuf.ByteString value)
       Output only. Explanation for question answering helpfulness score.
       
      string explanation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for explanation to set.
      Returns:
      This builder for chaining.
    • hasConfidence

      public boolean hasConfidence()
       Output only. Confidence for question answering helpfulness score.
       
      optional float confidence = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasConfidence in interface QuestionAnsweringHelpfulnessResultOrBuilder
      Returns:
      Whether the confidence field is set.
    • getConfidence

      public float getConfidence()
       Output only. Confidence for question answering helpfulness score.
       
      optional float confidence = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getConfidence in interface QuestionAnsweringHelpfulnessResultOrBuilder
      Returns:
      The confidence.
    • setConfidence

      public QuestionAnsweringHelpfulnessResult.Builder setConfidence(float value)
       Output only. Confidence for question answering helpfulness score.
       
      optional float confidence = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The confidence to set.
      Returns:
      This builder for chaining.
    • clearConfidence

       Output only. Confidence for question answering helpfulness score.
       
      optional float confidence = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.