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