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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSpecification for how rubrics should be generated.static enumSpecifies the type of rubric content to generate.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic RubricGenerationSpecstatic final com.google.protobuf.Descriptors.DescriptorConfiguration for the model used in rubric generation.Configuration for the model used in rubric generation.com.google.protobuf.Parser<RubricGenerationSpec>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.intinthashCode()booleanConfiguration for the model used in rubric generation.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic RubricGenerationSpec.Builderstatic RubricGenerationSpec.BuildernewBuilder(RubricGenerationSpec prototype) protected RubricGenerationSpec.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static RubricGenerationSpecparseDelimitedFrom(InputStream input) static RubricGenerationSpecparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RubricGenerationSpecparseFrom(byte[] data) static RubricGenerationSpecparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RubricGenerationSpecparseFrom(com.google.protobuf.ByteString data) static RubricGenerationSpecparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RubricGenerationSpecparseFrom(com.google.protobuf.CodedInputStream input) static RubricGenerationSpecparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RubricGenerationSpecparseFrom(InputStream input) static RubricGenerationSpecparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RubricGenerationSpecparseFrom(ByteBuffer data) static RubricGenerationSpecparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<RubricGenerationSpec>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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.
-
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.
-
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.
-
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.
-
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.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- Throws:
IOException
-
parseFrom
public static RubricGenerationSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected RubricGenerationSpec.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-