Class RubricVerdict (3.100.0)

public final class RubricVerdict extends GeneratedMessage implements RubricVerdictOrBuilder

Represents the verdict of an evaluation against a single rubric.

Protobuf type google.cloud.aiplatform.v1beta1.RubricVerdict

Static Fields

EVALUATED_RUBRIC_FIELD_NUMBER

public static final int EVALUATED_RUBRIC_FIELD_NUMBER
Field Value
Type Description
int

REASONING_FIELD_NUMBER

public static final int REASONING_FIELD_NUMBER
Field Value
Type Description
int

VERDICT_FIELD_NUMBER

public static final int VERDICT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static RubricVerdict getDefaultInstance()
Returns
Type Description
RubricVerdict

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static RubricVerdict.Builder newBuilder()
Returns
Type Description
RubricVerdict.Builder

newBuilder(RubricVerdict prototype)

public static RubricVerdict.Builder newBuilder(RubricVerdict prototype)
Parameter
Name Description
prototype RubricVerdict
Returns
Type Description
RubricVerdict.Builder

parseDelimitedFrom(InputStream input)

public static RubricVerdict parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RubricVerdict
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RubricVerdict parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RubricVerdict
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static RubricVerdict parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
RubricVerdict
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RubricVerdict parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RubricVerdict
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RubricVerdict parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
RubricVerdict
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RubricVerdict parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RubricVerdict
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RubricVerdict parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
RubricVerdict
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RubricVerdict parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RubricVerdict
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static RubricVerdict parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RubricVerdict
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RubricVerdict parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RubricVerdict
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static RubricVerdict parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
RubricVerdict
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RubricVerdict parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RubricVerdict
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<RubricVerdict> parser()
Returns
Type Description
Parser<RubricVerdict>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public RubricVerdict getDefaultInstanceForType()
Returns
Type Description
RubricVerdict

getEvaluatedRubric()

public Rubric 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;

Returns
Type Description
Rubric

The evaluatedRubric.

getEvaluatedRubricOrBuilder()

public RubricOrBuilder 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;

Returns
Type Description
RubricOrBuilder

getParserForType()

public Parser<RubricVerdict> getParserForType()
Returns
Type Description
Parser<RubricVerdict>
Overrides

getReasoning()

public String 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;

Returns
Type Description
String

The reasoning.

getReasoningBytes()

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

Returns
Type Description
ByteString

The bytes for reasoning.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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;

Returns
Type Description
boolean

The verdict.

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;

Returns
Type Description
boolean

Whether the evaluatedRubric field is set.

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;

Returns
Type Description
boolean

Whether the reasoning field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public RubricVerdict.Builder newBuilderForType()
Returns
Type Description
RubricVerdict.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected RubricVerdict.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
RubricVerdict.Builder
Overrides

toBuilder()

public RubricVerdict.Builder toBuilder()
Returns
Type Description
RubricVerdict.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException