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 Summary
Modifier and TypeMethodDescriptionaddAllRubricTypeOntology(Iterable<String> values) Optional.addRubricTypeOntology(String value) Optional.addRubricTypeOntologyBytes(com.google.protobuf.ByteString value) Optional.build()clear()Configuration for the model used in rubric generation.Template for the prompt used to generate rubrics.The type of rubric content to be generated.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorConfiguration for the model used in rubric generation.Configuration for the model used in rubric generation.Configuration for the model used in rubric generation.Template for the prompt used to generate rubrics.com.google.protobuf.ByteStringTemplate for the prompt used to generate rubrics.The type of rubric content to be generated.intThe type of rubric content to be generated.getRubricTypeOntology(int index) Optional.com.google.protobuf.ByteStringgetRubricTypeOntologyBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.booleanConfiguration for the model used in rubric generation.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(RubricGenerationSpec other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeModelConfig(AutoraterConfig value) Configuration for the model used in rubric generation.setModelConfig(AutoraterConfig value) Configuration for the model used in rubric generation.setModelConfig(AutoraterConfig.Builder builderForValue) Configuration for the model used in rubric generation.setPromptTemplate(String value) Template for the prompt used to generate rubrics.setPromptTemplateBytes(com.google.protobuf.ByteString value) Template for the prompt used to generate rubrics.The type of rubric content to be generated.setRubricContentTypeValue(int value) The type of rubric content to be generated.setRubricTypeOntology(int index, String value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<RubricGenerationSpec.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<RubricGenerationSpec.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<RubricGenerationSpec.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RubricGenerationSpec.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RubricGenerationSpec.Builder>- Throws:
IOException
-
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:
getPromptTemplatein interfaceRubricGenerationSpecOrBuilder- 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:
getPromptTemplateBytesin interfaceRubricGenerationSpecOrBuilder- Returns:
- The bytes for promptTemplate.
-
setPromptTemplate
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
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
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:
hasModelConfigin interfaceRubricGenerationSpecOrBuilder- Returns:
- Whether the modelConfig field is set.
-
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:
getModelConfigin interfaceRubricGenerationSpecOrBuilder- Returns:
- The modelConfig.
-
setModelConfig
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
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
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
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
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
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:
getModelConfigOrBuilderin interfaceRubricGenerationSpecOrBuilder
-
getRubricContentTypeValue
public int getRubricContentTypeValue()The type of rubric content to be generated.
.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType rubric_content_type = 5;- Specified by:
getRubricContentTypeValuein interfaceRubricGenerationSpecOrBuilder- Returns:
- The enum numeric value on the wire for rubricContentType.
-
setRubricContentTypeValue
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
The type of rubric content to be generated.
.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType rubric_content_type = 5;- Specified by:
getRubricContentTypein interfaceRubricGenerationSpecOrBuilder- Returns:
- The rubricContentType.
-
setRubricContentType
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;- Parameters:
value- The rubricContentType to set.- Returns:
- This builder for chaining.
-
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:
getRubricTypeOntologyListin interfaceRubricGenerationSpecOrBuilder- 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:
getRubricTypeOntologyCountin interfaceRubricGenerationSpecOrBuilder- Returns:
- The count of rubricTypeOntology.
-
getRubricTypeOntology
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:
getRubricTypeOntologyin interfaceRubricGenerationSpecOrBuilder- 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:
getRubricTypeOntologyBytesin interfaceRubricGenerationSpecOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the rubricTypeOntology at the given index.
-
setRubricTypeOntology
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
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
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
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.
-