public final class RubricGenerationSpec extends GeneratedMessage implements RubricGenerationSpecOrBuilder
Specification for how rubrics should be generated.
Protobuf type google.cloud.aiplatform.v1beta1.RubricGenerationSpec
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
public static final int MODEL_CONFIG_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int PROMPT_TEMPLATE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
RUBRIC_CONTENT_TYPE_FIELD_NUMBER
public static final int RUBRIC_CONTENT_TYPE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int RUBRIC_TYPE_ONTOLOGY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
public static RubricGenerationSpec getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static RubricGenerationSpec.Builder newBuilder()
public static RubricGenerationSpec.Builder newBuilder(RubricGenerationSpec prototype)
public static RubricGenerationSpec parseDelimitedFrom(InputStream input)
public static RubricGenerationSpec parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static RubricGenerationSpec parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
public static RubricGenerationSpec parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RubricGenerationSpec parseFrom(ByteString data)
public static RubricGenerationSpec parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RubricGenerationSpec parseFrom(CodedInputStream input)
public static RubricGenerationSpec parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static RubricGenerationSpec parseFrom(InputStream input)
public static RubricGenerationSpec parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static RubricGenerationSpec parseFrom(ByteBuffer data)
public static RubricGenerationSpec parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<RubricGenerationSpec> parser()
Methods
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
public RubricGenerationSpec getDefaultInstanceForType()
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;
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;
public Parser<RubricGenerationSpec> getParserForType()
Overrides
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.
|
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;
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.
|
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.
|
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.
|
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.
|
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];
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
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.
|
| Returns |
| Type |
Description |
int |
|
Overrides
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public RubricGenerationSpec.Builder newBuilderForType()
protected RubricGenerationSpec.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
public RubricGenerationSpec.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides