Class RubricGenerationSpec.Builder

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

public static final class RubricGenerationSpec.Builder extends com.google.protobuf.GeneratedMessage.Builder<RubricGenerationSpec.Builder> implements RubricGenerationSpecOrBuilder
 Specification for how rubrics should be generated.
 
Protobuf type google.cloud.aiplatform.v1beta1.RubricGenerationSpec
  • 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<RubricGenerationSpec.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<RubricGenerationSpec.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<RubricGenerationSpec.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

      public RubricGenerationSpec.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<RubricGenerationSpec.Builder>
      Throws:
      IOException
    • 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.
    • setPromptTemplate

      public RubricGenerationSpec.Builder setPromptTemplate(String value)
       Template for the prompt used to generate rubrics.
       The details should be updated based on the most-recent recipe requirements.
       
      string prompt_template = 1;
      Parameters:
      value - The promptTemplate to set.
      Returns:
      This builder for chaining.
    • clearPromptTemplate

      public RubricGenerationSpec.Builder clearPromptTemplate()
       Template for the prompt used to generate rubrics.
       The details should be updated based on the most-recent recipe requirements.
       
      string prompt_template = 1;
      Returns:
      This builder for chaining.
    • setPromptTemplateBytes

      public RubricGenerationSpec.Builder setPromptTemplateBytes(com.google.protobuf.ByteString value)
       Template for the prompt used to generate rubrics.
       The details should be updated based on the most-recent recipe requirements.
       
      string prompt_template = 1;
      Parameters:
      value - The bytes for promptTemplate to set.
      Returns:
      This builder for chaining.
    • 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.
    • setModelConfig

      public RubricGenerationSpec.Builder setModelConfig(AutoraterConfig value)
       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;
    • setModelConfig

      public RubricGenerationSpec.Builder setModelConfig(AutoraterConfig.Builder builderForValue)
       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;
    • mergeModelConfig

      public RubricGenerationSpec.Builder mergeModelConfig(AutoraterConfig value)
       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;
    • clearModelConfig

      public RubricGenerationSpec.Builder clearModelConfig()
       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;
    • getModelConfigBuilder

      public AutoraterConfig.Builder getModelConfigBuilder()
       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;
    • 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.
    • setRubricContentTypeValue

      public RubricGenerationSpec.Builder setRubricContentTypeValue(int value)
       The type of rubric content to be generated.
       
      .google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType rubric_content_type = 5;
      Parameters:
      value - The enum numeric value on the wire for rubricContentType to set.
      Returns:
      This builder for chaining.
    • 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.
    • setRubricContentType

       The type of rubric content to be generated.
       
      .google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType rubric_content_type = 5;
      Parameters:
      value - The rubricContentType to set.
      Returns:
      This builder for chaining.
    • clearRubricContentType

      public RubricGenerationSpec.Builder clearRubricContentType()
       The type of rubric content to be generated.
       
      .google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType rubric_content_type = 5;
      Returns:
      This builder for chaining.
    • 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.
    • setRubricTypeOntology

      public RubricGenerationSpec.Builder setRubricTypeOntology(int index, String value)
       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];
      Parameters:
      index - The index to set the value at.
      value - The rubricTypeOntology to set.
      Returns:
      This builder for chaining.
    • addRubricTypeOntology

      public RubricGenerationSpec.Builder addRubricTypeOntology(String value)
       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];
      Parameters:
      value - The rubricTypeOntology to add.
      Returns:
      This builder for chaining.
    • addAllRubricTypeOntology

      public RubricGenerationSpec.Builder addAllRubricTypeOntology(Iterable<String> values)
       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];
      Parameters:
      values - The rubricTypeOntology to add.
      Returns:
      This builder for chaining.
    • clearRubricTypeOntology

      public RubricGenerationSpec.Builder clearRubricTypeOntology()
       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];
      Returns:
      This builder for chaining.
    • addRubricTypeOntologyBytes

      public RubricGenerationSpec.Builder addRubricTypeOntologyBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes of the rubricTypeOntology to add.
      Returns:
      This builder for chaining.