Class Rubric.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Rubric.Builder>
com.google.cloud.aiplatform.v1beta1.Rubric.Builder
All Implemented Interfaces:
RubricOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Rubric

public static final class Rubric.Builder extends com.google.protobuf.GeneratedMessage.Builder<Rubric.Builder> implements RubricOrBuilder
 Message representing a single testable criterion for evaluation.
 One input prompt could have multiple rubrics.
 
Protobuf type google.cloud.aiplatform.v1beta1.Rubric
  • 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<Rubric.Builder>
    • clear

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

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

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

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

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

      public Rubric.Builder mergeFrom(Rubric other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Rubric.Builder>
    • mergeFrom

      public Rubric.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<Rubric.Builder>
      Throws:
      IOException
    • getRubricId

      public String getRubricId()
       Unique identifier for the rubric.
       This ID is used to refer to this rubric, e.g., in RubricVerdict.
       
      string rubric_id = 1;
      Specified by:
      getRubricId in interface RubricOrBuilder
      Returns:
      The rubricId.
    • getRubricIdBytes

      public com.google.protobuf.ByteString getRubricIdBytes()
       Unique identifier for the rubric.
       This ID is used to refer to this rubric, e.g., in RubricVerdict.
       
      string rubric_id = 1;
      Specified by:
      getRubricIdBytes in interface RubricOrBuilder
      Returns:
      The bytes for rubricId.
    • setRubricId

      public Rubric.Builder setRubricId(String value)
       Unique identifier for the rubric.
       This ID is used to refer to this rubric, e.g., in RubricVerdict.
       
      string rubric_id = 1;
      Parameters:
      value - The rubricId to set.
      Returns:
      This builder for chaining.
    • clearRubricId

      public Rubric.Builder clearRubricId()
       Unique identifier for the rubric.
       This ID is used to refer to this rubric, e.g., in RubricVerdict.
       
      string rubric_id = 1;
      Returns:
      This builder for chaining.
    • setRubricIdBytes

      public Rubric.Builder setRubricIdBytes(com.google.protobuf.ByteString value)
       Unique identifier for the rubric.
       This ID is used to refer to this rubric, e.g., in RubricVerdict.
       
      string rubric_id = 1;
      Parameters:
      value - The bytes for rubricId to set.
      Returns:
      This builder for chaining.
    • hasContent

      public boolean hasContent()
       Required. The actual testable criteria for the rubric.
       
      .google.cloud.aiplatform.v1beta1.Rubric.Content content = 2;
      Specified by:
      hasContent in interface RubricOrBuilder
      Returns:
      Whether the content field is set.
    • getContent

      public Rubric.Content getContent()
       Required. The actual testable criteria for the rubric.
       
      .google.cloud.aiplatform.v1beta1.Rubric.Content content = 2;
      Specified by:
      getContent in interface RubricOrBuilder
      Returns:
      The content.
    • setContent

      public Rubric.Builder setContent(Rubric.Content value)
       Required. The actual testable criteria for the rubric.
       
      .google.cloud.aiplatform.v1beta1.Rubric.Content content = 2;
    • setContent

      public Rubric.Builder setContent(Rubric.Content.Builder builderForValue)
       Required. The actual testable criteria for the rubric.
       
      .google.cloud.aiplatform.v1beta1.Rubric.Content content = 2;
    • mergeContent

      public Rubric.Builder mergeContent(Rubric.Content value)
       Required. The actual testable criteria for the rubric.
       
      .google.cloud.aiplatform.v1beta1.Rubric.Content content = 2;
    • clearContent

      public Rubric.Builder clearContent()
       Required. The actual testable criteria for the rubric.
       
      .google.cloud.aiplatform.v1beta1.Rubric.Content content = 2;
    • getContentBuilder

      public Rubric.Content.Builder getContentBuilder()
       Required. The actual testable criteria for the rubric.
       
      .google.cloud.aiplatform.v1beta1.Rubric.Content content = 2;
    • getContentOrBuilder

      public Rubric.ContentOrBuilder getContentOrBuilder()
       Required. The actual testable criteria for the rubric.
       
      .google.cloud.aiplatform.v1beta1.Rubric.Content content = 2;
      Specified by:
      getContentOrBuilder in interface RubricOrBuilder
    • hasType

      public boolean hasType()
       Optional. A type designator for the rubric, which can inform how it's
       evaluated or interpreted by systems or users.
       It's recommended to use consistent, well-defined, upper snake_case strings.
       Examples: "SUMMARIZATION_QUALITY", "SAFETY_HARMFUL_CONTENT",
       "INSTRUCTION_ADHERENCE".
       
      optional string type = 3;
      Specified by:
      hasType in interface RubricOrBuilder
      Returns:
      Whether the type field is set.
    • getType

      public String getType()
       Optional. A type designator for the rubric, which can inform how it's
       evaluated or interpreted by systems or users.
       It's recommended to use consistent, well-defined, upper snake_case strings.
       Examples: "SUMMARIZATION_QUALITY", "SAFETY_HARMFUL_CONTENT",
       "INSTRUCTION_ADHERENCE".
       
      optional string type = 3;
      Specified by:
      getType in interface RubricOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       Optional. A type designator for the rubric, which can inform how it's
       evaluated or interpreted by systems or users.
       It's recommended to use consistent, well-defined, upper snake_case strings.
       Examples: "SUMMARIZATION_QUALITY", "SAFETY_HARMFUL_CONTENT",
       "INSTRUCTION_ADHERENCE".
       
      optional string type = 3;
      Specified by:
      getTypeBytes in interface RubricOrBuilder
      Returns:
      The bytes for type.
    • setType

      public Rubric.Builder setType(String value)
       Optional. A type designator for the rubric, which can inform how it's
       evaluated or interpreted by systems or users.
       It's recommended to use consistent, well-defined, upper snake_case strings.
       Examples: "SUMMARIZATION_QUALITY", "SAFETY_HARMFUL_CONTENT",
       "INSTRUCTION_ADHERENCE".
       
      optional string type = 3;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public Rubric.Builder clearType()
       Optional. A type designator for the rubric, which can inform how it's
       evaluated or interpreted by systems or users.
       It's recommended to use consistent, well-defined, upper snake_case strings.
       Examples: "SUMMARIZATION_QUALITY", "SAFETY_HARMFUL_CONTENT",
       "INSTRUCTION_ADHERENCE".
       
      optional string type = 3;
      Returns:
      This builder for chaining.
    • setTypeBytes

      public Rubric.Builder setTypeBytes(com.google.protobuf.ByteString value)
       Optional. A type designator for the rubric, which can inform how it's
       evaluated or interpreted by systems or users.
       It's recommended to use consistent, well-defined, upper snake_case strings.
       Examples: "SUMMARIZATION_QUALITY", "SAFETY_HARMFUL_CONTENT",
       "INSTRUCTION_ADHERENCE".
       
      optional string type = 3;
      Parameters:
      value - The bytes for type to set.
      Returns:
      This builder for chaining.
    • hasImportance

      public boolean hasImportance()
       Optional. The relative importance of this rubric.
       
      optional .google.cloud.aiplatform.v1beta1.Rubric.Importance importance = 4;
      Specified by:
      hasImportance in interface RubricOrBuilder
      Returns:
      Whether the importance field is set.
    • getImportanceValue

      public int getImportanceValue()
       Optional. The relative importance of this rubric.
       
      optional .google.cloud.aiplatform.v1beta1.Rubric.Importance importance = 4;
      Specified by:
      getImportanceValue in interface RubricOrBuilder
      Returns:
      The enum numeric value on the wire for importance.
    • setImportanceValue

      public Rubric.Builder setImportanceValue(int value)
       Optional. The relative importance of this rubric.
       
      optional .google.cloud.aiplatform.v1beta1.Rubric.Importance importance = 4;
      Parameters:
      value - The enum numeric value on the wire for importance to set.
      Returns:
      This builder for chaining.
    • getImportance

      public Rubric.Importance getImportance()
       Optional. The relative importance of this rubric.
       
      optional .google.cloud.aiplatform.v1beta1.Rubric.Importance importance = 4;
      Specified by:
      getImportance in interface RubricOrBuilder
      Returns:
      The importance.
    • setImportance

      public Rubric.Builder setImportance(Rubric.Importance value)
       Optional. The relative importance of this rubric.
       
      optional .google.cloud.aiplatform.v1beta1.Rubric.Importance importance = 4;
      Parameters:
      value - The importance to set.
      Returns:
      This builder for chaining.
    • clearImportance

      public Rubric.Builder clearImportance()
       Optional. The relative importance of this rubric.
       
      optional .google.cloud.aiplatform.v1beta1.Rubric.Importance importance = 4;
      Returns:
      This builder for chaining.