public static final class QuestionAnsweringCorrectnessInstance.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<QuestionAnsweringCorrectnessInstance.Builder> implements QuestionAnsweringCorrectnessInstanceOrBuilder
Spec for question answering correctness instance.Protobuf type
google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInstancegetAllFields, 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<QuestionAnsweringCorrectnessInstance.Builder>public QuestionAnsweringCorrectnessInstance.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<QuestionAnsweringCorrectnessInstance.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<QuestionAnsweringCorrectnessInstance.Builder>public QuestionAnsweringCorrectnessInstance getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic QuestionAnsweringCorrectnessInstance build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic QuestionAnsweringCorrectnessInstance buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic QuestionAnsweringCorrectnessInstance.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<QuestionAnsweringCorrectnessInstance.Builder>public QuestionAnsweringCorrectnessInstance.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<QuestionAnsweringCorrectnessInstance.Builder>public QuestionAnsweringCorrectnessInstance.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<QuestionAnsweringCorrectnessInstance.Builder>public QuestionAnsweringCorrectnessInstance.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<QuestionAnsweringCorrectnessInstance.Builder>public QuestionAnsweringCorrectnessInstance.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<QuestionAnsweringCorrectnessInstance.Builder>public QuestionAnsweringCorrectnessInstance.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<QuestionAnsweringCorrectnessInstance.Builder>public QuestionAnsweringCorrectnessInstance.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<QuestionAnsweringCorrectnessInstance.Builder>public QuestionAnsweringCorrectnessInstance.Builder mergeFrom(QuestionAnsweringCorrectnessInstance other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<QuestionAnsweringCorrectnessInstance.Builder>public QuestionAnsweringCorrectnessInstance.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<QuestionAnsweringCorrectnessInstance.Builder>IOExceptionpublic boolean hasPrediction()
Required. Output of the evaluated model.
optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];hasPrediction in interface QuestionAnsweringCorrectnessInstanceOrBuilderpublic String getPrediction()
Required. Output of the evaluated model.
optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];getPrediction in interface QuestionAnsweringCorrectnessInstanceOrBuilderpublic com.google.protobuf.ByteString getPredictionBytes()
Required. Output of the evaluated model.
optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];getPredictionBytes in interface QuestionAnsweringCorrectnessInstanceOrBuilderpublic QuestionAnsweringCorrectnessInstance.Builder setPrediction(String value)
Required. Output of the evaluated model.
optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];value - The prediction to set.public QuestionAnsweringCorrectnessInstance.Builder clearPrediction()
Required. Output of the evaluated model.
optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];public QuestionAnsweringCorrectnessInstance.Builder setPredictionBytes(com.google.protobuf.ByteString value)
Required. Output of the evaluated model.
optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];value - The bytes for prediction to set.public boolean hasReference()
Optional. Ground truth used to compare against the prediction.
optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL];hasReference in interface QuestionAnsweringCorrectnessInstanceOrBuilderpublic String getReference()
Optional. Ground truth used to compare against the prediction.
optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL];getReference in interface QuestionAnsweringCorrectnessInstanceOrBuilderpublic com.google.protobuf.ByteString getReferenceBytes()
Optional. Ground truth used to compare against the prediction.
optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL];getReferenceBytes in interface QuestionAnsweringCorrectnessInstanceOrBuilderpublic QuestionAnsweringCorrectnessInstance.Builder setReference(String value)
Optional. Ground truth used to compare against the prediction.
optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL];value - The reference to set.public QuestionAnsweringCorrectnessInstance.Builder clearReference()
Optional. Ground truth used to compare against the prediction.
optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL];public QuestionAnsweringCorrectnessInstance.Builder setReferenceBytes(com.google.protobuf.ByteString value)
Optional. Ground truth used to compare against the prediction.
optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for reference to set.public boolean hasContext()
Optional. Text provided as context to answer the question.
optional string context = 3 [(.google.api.field_behavior) = OPTIONAL];hasContext in interface QuestionAnsweringCorrectnessInstanceOrBuilderpublic String getContext()
Optional. Text provided as context to answer the question.
optional string context = 3 [(.google.api.field_behavior) = OPTIONAL];getContext in interface QuestionAnsweringCorrectnessInstanceOrBuilderpublic com.google.protobuf.ByteString getContextBytes()
Optional. Text provided as context to answer the question.
optional string context = 3 [(.google.api.field_behavior) = OPTIONAL];getContextBytes in interface QuestionAnsweringCorrectnessInstanceOrBuilderpublic QuestionAnsweringCorrectnessInstance.Builder setContext(String value)
Optional. Text provided as context to answer the question.
optional string context = 3 [(.google.api.field_behavior) = OPTIONAL];value - The context to set.public QuestionAnsweringCorrectnessInstance.Builder clearContext()
Optional. Text provided as context to answer the question.
optional string context = 3 [(.google.api.field_behavior) = OPTIONAL];public QuestionAnsweringCorrectnessInstance.Builder setContextBytes(com.google.protobuf.ByteString value)
Optional. Text provided as context to answer the question.
optional string context = 3 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for context to set.public boolean hasInstruction()
Required. The question asked and other instruction in the inference prompt.
optional string instruction = 4 [(.google.api.field_behavior) = REQUIRED];hasInstruction in interface QuestionAnsweringCorrectnessInstanceOrBuilderpublic String getInstruction()
Required. The question asked and other instruction in the inference prompt.
optional string instruction = 4 [(.google.api.field_behavior) = REQUIRED];getInstruction in interface QuestionAnsweringCorrectnessInstanceOrBuilderpublic com.google.protobuf.ByteString getInstructionBytes()
Required. The question asked and other instruction in the inference prompt.
optional string instruction = 4 [(.google.api.field_behavior) = REQUIRED];getInstructionBytes in interface QuestionAnsweringCorrectnessInstanceOrBuilderpublic QuestionAnsweringCorrectnessInstance.Builder setInstruction(String value)
Required. The question asked and other instruction in the inference prompt.
optional string instruction = 4 [(.google.api.field_behavior) = REQUIRED];value - The instruction to set.public QuestionAnsweringCorrectnessInstance.Builder clearInstruction()
Required. The question asked and other instruction in the inference prompt.
optional string instruction = 4 [(.google.api.field_behavior) = REQUIRED];public QuestionAnsweringCorrectnessInstance.Builder setInstructionBytes(com.google.protobuf.ByteString value)
Required. The question asked and other instruction in the inference prompt.
optional string instruction = 4 [(.google.api.field_behavior) = REQUIRED];value - The bytes for instruction to set.public final QuestionAnsweringCorrectnessInstance.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<QuestionAnsweringCorrectnessInstance.Builder>public final QuestionAnsweringCorrectnessInstance.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<QuestionAnsweringCorrectnessInstance.Builder>Copyright © 2025 Google LLC. All rights reserved.