Class PairwiseQuestionAnsweringQualityInstance.Builder

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

public static final class PairwiseQuestionAnsweringQualityInstance.Builder extends com.google.protobuf.GeneratedMessage.Builder<PairwiseQuestionAnsweringQualityInstance.Builder> implements PairwiseQuestionAnsweringQualityInstanceOrBuilder
 Spec for pairwise question answering quality instance.
 
Protobuf type google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInstance
  • 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<PairwiseQuestionAnsweringQualityInstance.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<PairwiseQuestionAnsweringQualityInstance.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<PairwiseQuestionAnsweringQualityInstance.Builder>
    • getDefaultInstanceForType

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

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

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

      public PairwiseQuestionAnsweringQualityInstance.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<PairwiseQuestionAnsweringQualityInstance.Builder>
      Throws:
      IOException
    • hasPrediction

      public boolean hasPrediction()
       Required. Output of the candidate model.
       
      optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasPrediction in interface PairwiseQuestionAnsweringQualityInstanceOrBuilder
      Returns:
      Whether the prediction field is set.
    • getPrediction

      public String getPrediction()
       Required. Output of the candidate model.
       
      optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPrediction in interface PairwiseQuestionAnsweringQualityInstanceOrBuilder
      Returns:
      The prediction.
    • getPredictionBytes

      public com.google.protobuf.ByteString getPredictionBytes()
       Required. Output of the candidate model.
       
      optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPredictionBytes in interface PairwiseQuestionAnsweringQualityInstanceOrBuilder
      Returns:
      The bytes for prediction.
    • setPrediction

       Required. Output of the candidate model.
       
      optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The prediction to set.
      Returns:
      This builder for chaining.
    • clearPrediction

       Required. Output of the candidate model.
       
      optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setPredictionBytes

      public PairwiseQuestionAnsweringQualityInstance.Builder setPredictionBytes(com.google.protobuf.ByteString value)
       Required. Output of the candidate model.
       
      optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for prediction to set.
      Returns:
      This builder for chaining.
    • hasBaselinePrediction

      public boolean hasBaselinePrediction()
       Required. Output of the baseline model.
       
      optional string baseline_prediction = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasBaselinePrediction in interface PairwiseQuestionAnsweringQualityInstanceOrBuilder
      Returns:
      Whether the baselinePrediction field is set.
    • getBaselinePrediction

      public String getBaselinePrediction()
       Required. Output of the baseline model.
       
      optional string baseline_prediction = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getBaselinePrediction in interface PairwiseQuestionAnsweringQualityInstanceOrBuilder
      Returns:
      The baselinePrediction.
    • getBaselinePredictionBytes

      public com.google.protobuf.ByteString getBaselinePredictionBytes()
       Required. Output of the baseline model.
       
      optional string baseline_prediction = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getBaselinePredictionBytes in interface PairwiseQuestionAnsweringQualityInstanceOrBuilder
      Returns:
      The bytes for baselinePrediction.
    • setBaselinePrediction

      public PairwiseQuestionAnsweringQualityInstance.Builder setBaselinePrediction(String value)
       Required. Output of the baseline model.
       
      optional string baseline_prediction = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The baselinePrediction to set.
      Returns:
      This builder for chaining.
    • clearBaselinePrediction

      public PairwiseQuestionAnsweringQualityInstance.Builder clearBaselinePrediction()
       Required. Output of the baseline model.
       
      optional string baseline_prediction = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setBaselinePredictionBytes

      public PairwiseQuestionAnsweringQualityInstance.Builder setBaselinePredictionBytes(com.google.protobuf.ByteString value)
       Required. Output of the baseline model.
       
      optional string baseline_prediction = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for baselinePrediction to set.
      Returns:
      This builder for chaining.
    • hasReference

      public boolean hasReference()
       Optional. Ground truth used to compare against the prediction.
       
      optional string reference = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasReference in interface PairwiseQuestionAnsweringQualityInstanceOrBuilder
      Returns:
      Whether the reference field is set.
    • getReference

      public String getReference()
       Optional. Ground truth used to compare against the prediction.
       
      optional string reference = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getReference in interface PairwiseQuestionAnsweringQualityInstanceOrBuilder
      Returns:
      The reference.
    • getReferenceBytes

      public com.google.protobuf.ByteString getReferenceBytes()
       Optional. Ground truth used to compare against the prediction.
       
      optional string reference = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getReferenceBytes in interface PairwiseQuestionAnsweringQualityInstanceOrBuilder
      Returns:
      The bytes for reference.
    • setReference

       Optional. Ground truth used to compare against the prediction.
       
      optional string reference = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The reference to set.
      Returns:
      This builder for chaining.
    • clearReference

       Optional. Ground truth used to compare against the prediction.
       
      optional string reference = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setReferenceBytes

      public PairwiseQuestionAnsweringQualityInstance.Builder setReferenceBytes(com.google.protobuf.ByteString value)
       Optional. Ground truth used to compare against the prediction.
       
      optional string reference = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for reference to set.
      Returns:
      This builder for chaining.
    • hasContext

      public boolean hasContext()
       Required. Text to answer the question.
       
      optional string context = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasContext in interface PairwiseQuestionAnsweringQualityInstanceOrBuilder
      Returns:
      Whether the context field is set.
    • getContext

      public String getContext()
       Required. Text to answer the question.
       
      optional string context = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getContext in interface PairwiseQuestionAnsweringQualityInstanceOrBuilder
      Returns:
      The context.
    • getContextBytes

      public com.google.protobuf.ByteString getContextBytes()
       Required. Text to answer the question.
       
      optional string context = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getContextBytes in interface PairwiseQuestionAnsweringQualityInstanceOrBuilder
      Returns:
      The bytes for context.
    • setContext

       Required. Text to answer the question.
       
      optional string context = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The context to set.
      Returns:
      This builder for chaining.
    • clearContext

       Required. Text to answer the question.
       
      optional string context = 4 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setContextBytes

      public PairwiseQuestionAnsweringQualityInstance.Builder setContextBytes(com.google.protobuf.ByteString value)
       Required. Text to answer the question.
       
      optional string context = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for context to set.
      Returns:
      This builder for chaining.
    • hasInstruction

      public boolean hasInstruction()
       Required. Question Answering prompt for LLM.
       
      optional string instruction = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasInstruction in interface PairwiseQuestionAnsweringQualityInstanceOrBuilder
      Returns:
      Whether the instruction field is set.
    • getInstruction

      public String getInstruction()
       Required. Question Answering prompt for LLM.
       
      optional string instruction = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInstruction in interface PairwiseQuestionAnsweringQualityInstanceOrBuilder
      Returns:
      The instruction.
    • getInstructionBytes

      public com.google.protobuf.ByteString getInstructionBytes()
       Required. Question Answering prompt for LLM.
       
      optional string instruction = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInstructionBytes in interface PairwiseQuestionAnsweringQualityInstanceOrBuilder
      Returns:
      The bytes for instruction.
    • setInstruction

       Required. Question Answering prompt for LLM.
       
      optional string instruction = 5 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The instruction to set.
      Returns:
      This builder for chaining.
    • clearInstruction

       Required. Question Answering prompt for LLM.
       
      optional string instruction = 5 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setInstructionBytes

      public PairwiseQuestionAnsweringQualityInstance.Builder setInstructionBytes(com.google.protobuf.ByteString value)
       Required. Question Answering prompt for LLM.
       
      optional string instruction = 5 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for instruction to set.
      Returns:
      This builder for chaining.