Class RubricGenerationSpec

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec
All Implemented Interfaces:
RubricGenerationSpecOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class RubricGenerationSpec extends com.google.protobuf.GeneratedMessage implements RubricGenerationSpecOrBuilder
 Specification for how rubrics should be generated.
 
Protobuf type google.cloud.aiplatform.v1beta1.RubricGenerationSpec
See Also:
  • Field Details

    • PROMPT_TEMPLATE_FIELD_NUMBER

      public static final int PROMPT_TEMPLATE_FIELD_NUMBER
      See Also:
    • MODEL_CONFIG_FIELD_NUMBER

      public static final int MODEL_CONFIG_FIELD_NUMBER
      See Also:
    • RUBRIC_CONTENT_TYPE_FIELD_NUMBER

      public static final int RUBRIC_CONTENT_TYPE_FIELD_NUMBER
      See Also:
    • RUBRIC_TYPE_ONTOLOGY_FIELD_NUMBER

      public static final int RUBRIC_TYPE_ONTOLOGY_FIELD_NUMBER
      See Also:
  • 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
    • getPromptTemplate

      public String getPromptTemplate()
       Template for the prompt used to generate rubrics.
       The details should be updated based on the most-recent recipe requirements.
       
      string prompt_template = 1;
      Specified by:
      getPromptTemplate in interface RubricGenerationSpecOrBuilder
      Returns:
      The promptTemplate.
    • getPromptTemplateBytes

      public com.google.protobuf.ByteString getPromptTemplateBytes()
       Template for the prompt used to generate rubrics.
       The details should be updated based on the most-recent recipe requirements.
       
      string prompt_template = 1;
      Specified by:
      getPromptTemplateBytes in interface RubricGenerationSpecOrBuilder
      Returns:
      The bytes for promptTemplate.
    • hasModelConfig

      public boolean hasModelConfig()
       Configuration for the model used in rubric generation.
       Configs including sampling count and base model can be specified here.
       Flipping is not supported for rubric generation.
       
      optional .google.cloud.aiplatform.v1beta1.AutoraterConfig model_config = 4;
      Specified by:
      hasModelConfig in interface RubricGenerationSpecOrBuilder
      Returns:
      Whether the modelConfig field is set.
    • getModelConfig

      public AutoraterConfig getModelConfig()
       Configuration for the model used in rubric generation.
       Configs including sampling count and base model can be specified here.
       Flipping is not supported for rubric generation.
       
      optional .google.cloud.aiplatform.v1beta1.AutoraterConfig model_config = 4;
      Specified by:
      getModelConfig in interface RubricGenerationSpecOrBuilder
      Returns:
      The modelConfig.
    • getModelConfigOrBuilder

      public AutoraterConfigOrBuilder getModelConfigOrBuilder()
       Configuration for the model used in rubric generation.
       Configs including sampling count and base model can be specified here.
       Flipping is not supported for rubric generation.
       
      optional .google.cloud.aiplatform.v1beta1.AutoraterConfig model_config = 4;
      Specified by:
      getModelConfigOrBuilder in interface RubricGenerationSpecOrBuilder
    • getRubricContentTypeValue

      public int getRubricContentTypeValue()
       The type of rubric content to be generated.
       
      .google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType rubric_content_type = 5;
      Specified by:
      getRubricContentTypeValue in interface RubricGenerationSpecOrBuilder
      Returns:
      The enum numeric value on the wire for rubricContentType.
    • getRubricContentType

      public RubricGenerationSpec.RubricContentType getRubricContentType()
       The type of rubric content to be generated.
       
      .google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType rubric_content_type = 5;
      Specified by:
      getRubricContentType in interface RubricGenerationSpecOrBuilder
      Returns:
      The rubricContentType.
    • getRubricTypeOntologyList

      public com.google.protobuf.ProtocolStringList getRubricTypeOntologyList()
       Optional. An optional, pre-defined list of allowed types for generated
       rubrics. If this field is provided, it implies `include_rubric_type` should
       be true, and the generated rubric types should be chosen from this
       ontology.
       
      repeated string rubric_type_ontology = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRubricTypeOntologyList in interface RubricGenerationSpecOrBuilder
      Returns:
      A list containing the rubricTypeOntology.
    • getRubricTypeOntologyCount

      public int getRubricTypeOntologyCount()
       Optional. An optional, pre-defined list of allowed types for generated
       rubrics. If this field is provided, it implies `include_rubric_type` should
       be true, and the generated rubric types should be chosen from this
       ontology.
       
      repeated string rubric_type_ontology = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRubricTypeOntologyCount in interface RubricGenerationSpecOrBuilder
      Returns:
      The count of rubricTypeOntology.
    • getRubricTypeOntology

      public String getRubricTypeOntology(int index)
       Optional. An optional, pre-defined list of allowed types for generated
       rubrics. If this field is provided, it implies `include_rubric_type` should
       be true, and the generated rubric types should be chosen from this
       ontology.
       
      repeated string rubric_type_ontology = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRubricTypeOntology in interface RubricGenerationSpecOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The rubricTypeOntology at the given index.
    • getRubricTypeOntologyBytes

      public com.google.protobuf.ByteString getRubricTypeOntologyBytes(int index)
       Optional. An optional, pre-defined list of allowed types for generated
       rubrics. If this field is provided, it implies `include_rubric_type` should
       be true, and the generated rubric types should be chosen from this
       ontology.
       
      repeated string rubric_type_ontology = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRubricTypeOntologyBytes in interface RubricGenerationSpecOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the rubricTypeOntology at the given index.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static RubricGenerationSpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RubricGenerationSpec parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RubricGenerationSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RubricGenerationSpec parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RubricGenerationSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RubricGenerationSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RubricGenerationSpec parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RubricGenerationSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static RubricGenerationSpec parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static RubricGenerationSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RubricGenerationSpec parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RubricGenerationSpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public RubricGenerationSpec.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static RubricGenerationSpec.Builder newBuilder()
    • newBuilder

      public static RubricGenerationSpec.Builder newBuilder(RubricGenerationSpec prototype)
    • toBuilder

      public RubricGenerationSpec.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected RubricGenerationSpec.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static RubricGenerationSpec getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<RubricGenerationSpec> parser()
    • getParserForType

      public com.google.protobuf.Parser<RubricGenerationSpec> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public RubricGenerationSpec getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder