Class RubricGenerationSpec.Builder (3.94.0)

public static final class RubricGenerationSpec.Builder extends GeneratedMessage.Builder<RubricGenerationSpec.Builder> implements RubricGenerationSpecOrBuilder

Specification for how rubrics should be generated.

Protobuf type google.cloud.aiplatform.v1beta1.RubricGenerationSpec

Static Methods

getDescriptor()

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

Methods

addAllRubricTypeOntology(Iterable<String> values)

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

Parameter
Name Description
values Iterable<String>

The rubricTypeOntology to add.

Returns
Type Description
RubricGenerationSpec.Builder

This builder for chaining.

addRubricTypeOntology(String value)

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

Parameter
Name Description
value String

The rubricTypeOntology to add.

Returns
Type Description
RubricGenerationSpec.Builder

This builder for chaining.

addRubricTypeOntologyBytes(ByteString value)

public RubricGenerationSpec.Builder addRubricTypeOntologyBytes(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];

Parameter
Name Description
value ByteString

The bytes of the rubricTypeOntology to add.

Returns
Type Description
RubricGenerationSpec.Builder

This builder for chaining.

build()

public RubricGenerationSpec build()
Returns
Type Description
RubricGenerationSpec

buildPartial()

public RubricGenerationSpec buildPartial()
Returns
Type Description
RubricGenerationSpec

clear()

public RubricGenerationSpec.Builder clear()
Returns
Type Description
RubricGenerationSpec.Builder
Overrides

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;

Returns
Type Description
RubricGenerationSpec.Builder

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
Type Description
RubricGenerationSpec.Builder

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
Type Description
RubricGenerationSpec.Builder

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
Type Description
RubricGenerationSpec.Builder

This builder for chaining.

getDefaultInstanceForType()

public RubricGenerationSpec getDefaultInstanceForType()
Returns
Type Description
RubricGenerationSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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;

Returns
Type Description
AutoraterConfig

The modelConfig.

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;

Returns
Type Description
AutoraterConfig.Builder

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;

Returns
Type Description
AutoraterConfigOrBuilder

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;

Returns
Type Description
String

The promptTemplate.

getPromptTemplateBytes()

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

Returns
Type Description
ByteString

The bytes for promptTemplate.

getRubricContentType()

public RubricGenerationSpec.RubricContentType getRubricContentType()

The type of rubric content to be generated.

.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType rubric_content_type = 5;

Returns
Type Description
RubricGenerationSpec.RubricContentType

The rubricContentType.

getRubricContentTypeValue()

public int getRubricContentTypeValue()

The type of rubric content to be generated.

.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType rubric_content_type = 5;

Returns
Type Description
int

The enum numeric value on the wire for rubricContentType.

getRubricTypeOntology(int index)

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

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The rubricTypeOntology at the given index.

getRubricTypeOntologyBytes(int index)

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

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the rubricTypeOntology at the given index.

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

Returns
Type Description
int

The count of rubricTypeOntology.

getRubricTypeOntologyList()

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

Returns
Type Description
ProtocolStringList

A list containing the rubricTypeOntology.

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;

Returns
Type Description
boolean

Whether the modelConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RubricGenerationSpec other)

public RubricGenerationSpec.Builder mergeFrom(RubricGenerationSpec other)
Parameter
Name Description
other RubricGenerationSpec
Returns
Type Description
RubricGenerationSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RubricGenerationSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RubricGenerationSpec.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RubricGenerationSpec.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RubricGenerationSpec.Builder
Overrides

mergeModelConfig(AutoraterConfig value)

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;

Parameter
Name Description
value AutoraterConfig
Returns
Type Description
RubricGenerationSpec.Builder

setModelConfig(AutoraterConfig value)

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;

Parameter
Name Description
value AutoraterConfig
Returns
Type Description
RubricGenerationSpec.Builder

setModelConfig(AutoraterConfig.Builder builderForValue)

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;

Parameter
Name Description
builderForValue AutoraterConfig.Builder
Returns
Type Description
RubricGenerationSpec.Builder

setPromptTemplate(String value)

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;

Parameter
Name Description
value String

The promptTemplate to set.

Returns
Type Description
RubricGenerationSpec.Builder

This builder for chaining.

setPromptTemplateBytes(ByteString value)

public RubricGenerationSpec.Builder setPromptTemplateBytes(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;

Parameter
Name Description
value ByteString

The bytes for promptTemplate to set.

Returns
Type Description
RubricGenerationSpec.Builder

This builder for chaining.

setRubricContentType(RubricGenerationSpec.RubricContentType value)

public RubricGenerationSpec.Builder setRubricContentType(RubricGenerationSpec.RubricContentType value)

The type of rubric content to be generated.

.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType rubric_content_type = 5;

Parameter
Name Description
value RubricGenerationSpec.RubricContentType

The rubricContentType to set.

Returns
Type Description
RubricGenerationSpec.Builder

This builder for chaining.

setRubricContentTypeValue(int value)

public RubricGenerationSpec.Builder setRubricContentTypeValue(int value)

The type of rubric content to be generated.

.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType rubric_content_type = 5;

Parameter
Name Description
value int

The enum numeric value on the wire for rubricContentType to set.

Returns
Type Description
RubricGenerationSpec.Builder

This builder for chaining.

setRubricTypeOntology(int index, String value)

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
Name Description
index int

The index to set the value at.

value String

The rubricTypeOntology to set.

Returns
Type Description
RubricGenerationSpec.Builder

This builder for chaining.