Class RubricVerdict.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RubricVerdict.Builder>
com.google.cloud.aiplatform.v1beta1.RubricVerdict.Builder
- All Implemented Interfaces:
RubricVerdictOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- RubricVerdict
public static final class RubricVerdict.Builder
extends com.google.protobuf.GeneratedMessage.Builder<RubricVerdict.Builder>
implements RubricVerdictOrBuilder
Represents the verdict of an evaluation against a single rubric.Protobuf type
google.cloud.aiplatform.v1beta1.RubricVerdict-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Required.Optional.Required.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.Required.Required.Optional.com.google.protobuf.ByteStringOptional.booleanRequired.booleanRequired.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeEvaluatedRubric(Rubric value) Required.mergeFrom(RubricVerdict other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setEvaluatedRubric(Rubric value) Required.setEvaluatedRubric(Rubric.Builder builderForValue) Required.setReasoning(String value) Optional.setReasoningBytes(com.google.protobuf.ByteString value) Optional.setVerdict(boolean value) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<RubricVerdict.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<RubricVerdict.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<RubricVerdict.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RubricVerdict.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<RubricVerdict.Builder>
-
mergeFrom
public RubricVerdict.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RubricVerdict.Builder>- Throws:
IOException
-
hasEvaluatedRubric
public boolean hasEvaluatedRubric()Required. The full rubric definition that was evaluated. Storing this ensures the verdict is self-contained and understandable, especially if the original rubric definition changes or was dynamically generated.
.google.cloud.aiplatform.v1beta1.Rubric evaluated_rubric = 1;- Specified by:
hasEvaluatedRubricin interfaceRubricVerdictOrBuilder- Returns:
- Whether the evaluatedRubric field is set.
-
getEvaluatedRubric
Required. The full rubric definition that was evaluated. Storing this ensures the verdict is self-contained and understandable, especially if the original rubric definition changes or was dynamically generated.
.google.cloud.aiplatform.v1beta1.Rubric evaluated_rubric = 1;- Specified by:
getEvaluatedRubricin interfaceRubricVerdictOrBuilder- Returns:
- The evaluatedRubric.
-
setEvaluatedRubric
Required. The full rubric definition that was evaluated. Storing this ensures the verdict is self-contained and understandable, especially if the original rubric definition changes or was dynamically generated.
.google.cloud.aiplatform.v1beta1.Rubric evaluated_rubric = 1; -
setEvaluatedRubric
Required. The full rubric definition that was evaluated. Storing this ensures the verdict is self-contained and understandable, especially if the original rubric definition changes or was dynamically generated.
.google.cloud.aiplatform.v1beta1.Rubric evaluated_rubric = 1; -
mergeEvaluatedRubric
Required. The full rubric definition that was evaluated. Storing this ensures the verdict is self-contained and understandable, especially if the original rubric definition changes or was dynamically generated.
.google.cloud.aiplatform.v1beta1.Rubric evaluated_rubric = 1; -
clearEvaluatedRubric
Required. The full rubric definition that was evaluated. Storing this ensures the verdict is self-contained and understandable, especially if the original rubric definition changes or was dynamically generated.
.google.cloud.aiplatform.v1beta1.Rubric evaluated_rubric = 1; -
getEvaluatedRubricBuilder
Required. The full rubric definition that was evaluated. Storing this ensures the verdict is self-contained and understandable, especially if the original rubric definition changes or was dynamically generated.
.google.cloud.aiplatform.v1beta1.Rubric evaluated_rubric = 1; -
getEvaluatedRubricOrBuilder
Required. The full rubric definition that was evaluated. Storing this ensures the verdict is self-contained and understandable, especially if the original rubric definition changes or was dynamically generated.
.google.cloud.aiplatform.v1beta1.Rubric evaluated_rubric = 1;- Specified by:
getEvaluatedRubricOrBuilderin interfaceRubricVerdictOrBuilder
-
getVerdict
public boolean getVerdict()Required. Outcome of the evaluation against the rubric, represented as a boolean. `true` indicates a "Pass", `false` indicates a "Fail".
bool verdict = 2;- Specified by:
getVerdictin interfaceRubricVerdictOrBuilder- Returns:
- The verdict.
-
setVerdict
Required. Outcome of the evaluation against the rubric, represented as a boolean. `true` indicates a "Pass", `false` indicates a "Fail".
bool verdict = 2;- Parameters:
value- The verdict to set.- Returns:
- This builder for chaining.
-
clearVerdict
Required. Outcome of the evaluation against the rubric, represented as a boolean. `true` indicates a "Pass", `false` indicates a "Fail".
bool verdict = 2;- Returns:
- This builder for chaining.
-
hasReasoning
public boolean hasReasoning()Optional. Human-readable reasoning or explanation for the verdict. This can include specific examples or details from the evaluated content that justify the given verdict.
optional string reasoning = 3;- Specified by:
hasReasoningin interfaceRubricVerdictOrBuilder- Returns:
- Whether the reasoning field is set.
-
getReasoning
Optional. Human-readable reasoning or explanation for the verdict. This can include specific examples or details from the evaluated content that justify the given verdict.
optional string reasoning = 3;- Specified by:
getReasoningin interfaceRubricVerdictOrBuilder- Returns:
- The reasoning.
-
getReasoningBytes
public com.google.protobuf.ByteString getReasoningBytes()Optional. Human-readable reasoning or explanation for the verdict. This can include specific examples or details from the evaluated content that justify the given verdict.
optional string reasoning = 3;- Specified by:
getReasoningBytesin interfaceRubricVerdictOrBuilder- Returns:
- The bytes for reasoning.
-
setReasoning
Optional. Human-readable reasoning or explanation for the verdict. This can include specific examples or details from the evaluated content that justify the given verdict.
optional string reasoning = 3;- Parameters:
value- The reasoning to set.- Returns:
- This builder for chaining.
-
clearReasoning
Optional. Human-readable reasoning or explanation for the verdict. This can include specific examples or details from the evaluated content that justify the given verdict.
optional string reasoning = 3;- Returns:
- This builder for chaining.
-
setReasoningBytes
Optional. Human-readable reasoning or explanation for the verdict. This can include specific examples or details from the evaluated content that justify the given verdict.
optional string reasoning = 3;- Parameters:
value- The bytes for reasoning to set.- Returns:
- This builder for chaining.
-