public static final class PairwiseQuestionAnsweringQualityInstance.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PairwiseQuestionAnsweringQualityInstance.Builder> implements PairwiseQuestionAnsweringQualityInstanceOrBuilder
Spec for pairwise question answering quality instance.Protobuf type
google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstancegetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<PairwiseQuestionAnsweringQualityInstance.Builder>public PairwiseQuestionAnsweringQualityInstance.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<PairwiseQuestionAnsweringQualityInstance.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<PairwiseQuestionAnsweringQualityInstance.Builder>public PairwiseQuestionAnsweringQualityInstance getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic PairwiseQuestionAnsweringQualityInstance build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic PairwiseQuestionAnsweringQualityInstance buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic PairwiseQuestionAnsweringQualityInstance.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<PairwiseQuestionAnsweringQualityInstance.Builder>public PairwiseQuestionAnsweringQualityInstance.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<PairwiseQuestionAnsweringQualityInstance.Builder>public PairwiseQuestionAnsweringQualityInstance.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<PairwiseQuestionAnsweringQualityInstance.Builder>public PairwiseQuestionAnsweringQualityInstance.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<PairwiseQuestionAnsweringQualityInstance.Builder>public PairwiseQuestionAnsweringQualityInstance.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PairwiseQuestionAnsweringQualityInstance.Builder>public PairwiseQuestionAnsweringQualityInstance.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PairwiseQuestionAnsweringQualityInstance.Builder>public PairwiseQuestionAnsweringQualityInstance.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<PairwiseQuestionAnsweringQualityInstance.Builder>public PairwiseQuestionAnsweringQualityInstance.Builder mergeFrom(PairwiseQuestionAnsweringQualityInstance other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<PairwiseQuestionAnsweringQualityInstance.Builder>public PairwiseQuestionAnsweringQualityInstance.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<PairwiseQuestionAnsweringQualityInstance.Builder>IOExceptionpublic boolean hasPrediction()
Required. Output of the candidate model.
optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];hasPrediction in interface PairwiseQuestionAnsweringQualityInstanceOrBuilderpublic String getPrediction()
Required. Output of the candidate model.
optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];getPrediction in interface PairwiseQuestionAnsweringQualityInstanceOrBuilderpublic com.google.protobuf.ByteString getPredictionBytes()
Required. Output of the candidate model.
optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];getPredictionBytes in interface PairwiseQuestionAnsweringQualityInstanceOrBuilderpublic PairwiseQuestionAnsweringQualityInstance.Builder setPrediction(String value)
Required. Output of the candidate model.
optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];value - The prediction to set.public PairwiseQuestionAnsweringQualityInstance.Builder clearPrediction()
Required. Output of the candidate model.
optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];public PairwiseQuestionAnsweringQualityInstance.Builder setPredictionBytes(com.google.protobuf.ByteString value)
Required. Output of the candidate model.
optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];value - The bytes for prediction to set.public boolean hasBaselinePrediction()
Required. Output of the baseline model.
optional string baseline_prediction = 2 [(.google.api.field_behavior) = REQUIRED];
hasBaselinePrediction in interface PairwiseQuestionAnsweringQualityInstanceOrBuilderpublic String getBaselinePrediction()
Required. Output of the baseline model.
optional string baseline_prediction = 2 [(.google.api.field_behavior) = REQUIRED];
getBaselinePrediction in interface PairwiseQuestionAnsweringQualityInstanceOrBuilderpublic com.google.protobuf.ByteString getBaselinePredictionBytes()
Required. Output of the baseline model.
optional string baseline_prediction = 2 [(.google.api.field_behavior) = REQUIRED];
getBaselinePredictionBytes in interface PairwiseQuestionAnsweringQualityInstanceOrBuilderpublic PairwiseQuestionAnsweringQualityInstance.Builder setBaselinePrediction(String value)
Required. Output of the baseline model.
optional string baseline_prediction = 2 [(.google.api.field_behavior) = REQUIRED];
value - The baselinePrediction to set.public PairwiseQuestionAnsweringQualityInstance.Builder clearBaselinePrediction()
Required. Output of the baseline model.
optional string baseline_prediction = 2 [(.google.api.field_behavior) = REQUIRED];
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];
value - The bytes for baselinePrediction to set.public boolean hasReference()
Optional. Ground truth used to compare against the prediction.
optional string reference = 3 [(.google.api.field_behavior) = OPTIONAL];hasReference in interface PairwiseQuestionAnsweringQualityInstanceOrBuilderpublic String getReference()
Optional. Ground truth used to compare against the prediction.
optional string reference = 3 [(.google.api.field_behavior) = OPTIONAL];getReference in interface PairwiseQuestionAnsweringQualityInstanceOrBuilderpublic com.google.protobuf.ByteString getReferenceBytes()
Optional. Ground truth used to compare against the prediction.
optional string reference = 3 [(.google.api.field_behavior) = OPTIONAL];getReferenceBytes in interface PairwiseQuestionAnsweringQualityInstanceOrBuilderpublic PairwiseQuestionAnsweringQualityInstance.Builder setReference(String value)
Optional. Ground truth used to compare against the prediction.
optional string reference = 3 [(.google.api.field_behavior) = OPTIONAL];value - The reference to set.public PairwiseQuestionAnsweringQualityInstance.Builder clearReference()
Optional. Ground truth used to compare against the prediction.
optional string reference = 3 [(.google.api.field_behavior) = OPTIONAL];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];value - The bytes for reference to set.public boolean hasContext()
Required. Text to answer the question.
optional string context = 4 [(.google.api.field_behavior) = REQUIRED];hasContext in interface PairwiseQuestionAnsweringQualityInstanceOrBuilderpublic String getContext()
Required. Text to answer the question.
optional string context = 4 [(.google.api.field_behavior) = REQUIRED];getContext in interface PairwiseQuestionAnsweringQualityInstanceOrBuilderpublic com.google.protobuf.ByteString getContextBytes()
Required. Text to answer the question.
optional string context = 4 [(.google.api.field_behavior) = REQUIRED];getContextBytes in interface PairwiseQuestionAnsweringQualityInstanceOrBuilderpublic PairwiseQuestionAnsweringQualityInstance.Builder setContext(String value)
Required. Text to answer the question.
optional string context = 4 [(.google.api.field_behavior) = REQUIRED];value - The context to set.public PairwiseQuestionAnsweringQualityInstance.Builder clearContext()
Required. Text to answer the question.
optional string context = 4 [(.google.api.field_behavior) = REQUIRED];public PairwiseQuestionAnsweringQualityInstance.Builder setContextBytes(com.google.protobuf.ByteString value)
Required. Text to answer the question.
optional string context = 4 [(.google.api.field_behavior) = REQUIRED];value - The bytes for context to set.public boolean hasInstruction()
Required. Question Answering prompt for LLM.
optional string instruction = 5 [(.google.api.field_behavior) = REQUIRED];hasInstruction in interface PairwiseQuestionAnsweringQualityInstanceOrBuilderpublic String getInstruction()
Required. Question Answering prompt for LLM.
optional string instruction = 5 [(.google.api.field_behavior) = REQUIRED];getInstruction in interface PairwiseQuestionAnsweringQualityInstanceOrBuilderpublic com.google.protobuf.ByteString getInstructionBytes()
Required. Question Answering prompt for LLM.
optional string instruction = 5 [(.google.api.field_behavior) = REQUIRED];getInstructionBytes in interface PairwiseQuestionAnsweringQualityInstanceOrBuilderpublic PairwiseQuestionAnsweringQualityInstance.Builder setInstruction(String value)
Required. Question Answering prompt for LLM.
optional string instruction = 5 [(.google.api.field_behavior) = REQUIRED];value - The instruction to set.public PairwiseQuestionAnsweringQualityInstance.Builder clearInstruction()
Required. Question Answering prompt for LLM.
optional string instruction = 5 [(.google.api.field_behavior) = REQUIRED];public PairwiseQuestionAnsweringQualityInstance.Builder setInstructionBytes(com.google.protobuf.ByteString value)
Required. Question Answering prompt for LLM.
optional string instruction = 5 [(.google.api.field_behavior) = REQUIRED];value - The bytes for instruction to set.public final PairwiseQuestionAnsweringQualityInstance.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PairwiseQuestionAnsweringQualityInstance.Builder>public final PairwiseQuestionAnsweringQualityInstance.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PairwiseQuestionAnsweringQualityInstance.Builder>Copyright © 2025 Google LLC. All rights reserved.