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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<RubricVerdict.Builder>
    • clear

      public RubricVerdict.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<RubricVerdict.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<RubricVerdict.Builder>
    • getDefaultInstanceForType

      public RubricVerdict getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public RubricVerdict build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public RubricVerdict buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public RubricVerdict.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RubricVerdict.Builder>
    • mergeFrom

      public RubricVerdict.Builder mergeFrom(RubricVerdict other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasEvaluatedRubric in interface RubricVerdictOrBuilder
      Returns:
      Whether the evaluatedRubric field is set.
    • 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;
      Specified by:
      getEvaluatedRubric in interface RubricVerdictOrBuilder
      Returns:
      The evaluatedRubric.
    • setEvaluatedRubric

      public RubricVerdict.Builder setEvaluatedRubric(Rubric value)
       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

      public RubricVerdict.Builder setEvaluatedRubric(Rubric.Builder builderForValue)
       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

      public RubricVerdict.Builder mergeEvaluatedRubric(Rubric value)
       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

      public RubricVerdict.Builder 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

      public Rubric.Builder 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

      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;
      Specified by:
      getEvaluatedRubricOrBuilder in interface RubricVerdictOrBuilder
    • 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:
      getVerdict in interface RubricVerdictOrBuilder
      Returns:
      The verdict.
    • setVerdict

      public RubricVerdict.Builder setVerdict(boolean value)
       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

      public RubricVerdict.Builder 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:
      hasReasoning in interface RubricVerdictOrBuilder
      Returns:
      Whether the reasoning field is set.
    • 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;
      Specified by:
      getReasoning in interface RubricVerdictOrBuilder
      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:
      getReasoningBytes in interface RubricVerdictOrBuilder
      Returns:
      The bytes for reasoning.
    • setReasoning

      public RubricVerdict.Builder setReasoning(String value)
       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

      public RubricVerdict.Builder 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

      public RubricVerdict.Builder setReasoningBytes(com.google.protobuf.ByteString value)
       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.