public final class Rubric extends GeneratedMessage implements RubricOrBuilder
Message representing a single testable criterion for evaluation.
One input prompt could have multiple rubrics.
Protobuf type google.cloud.aiplatform.v1beta1.Rubric
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
CONTENT_FIELD_NUMBER
public static final int CONTENT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int IMPORTANCE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int RUBRIC_ID_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int TYPE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
public static Rubric getDefaultInstance()
| Returns |
| Type |
Description |
Rubric |
|
public static final Descriptors.Descriptor getDescriptor()
public static Rubric.Builder newBuilder()
public static Rubric.Builder newBuilder(Rubric prototype)
| Parameter |
| Name |
Description |
prototype |
Rubric
|
public static Rubric parseDelimitedFrom(InputStream input)
| Returns |
| Type |
Description |
Rubric |
|
public static Rubric parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Rubric |
|
public static Rubric parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
| Returns |
| Type |
Description |
Rubric |
|
public static Rubric parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Rubric |
|
public static Rubric parseFrom(ByteString data)
| Returns |
| Type |
Description |
Rubric |
|
public static Rubric parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Rubric |
|
public static Rubric parseFrom(CodedInputStream input)
| Returns |
| Type |
Description |
Rubric |
|
public static Rubric parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Rubric |
|
public static Rubric parseFrom(InputStream input)
| Returns |
| Type |
Description |
Rubric |
|
public static Rubric parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Rubric |
|
public static Rubric parseFrom(ByteBuffer data)
| Returns |
| Type |
Description |
Rubric |
|
public static Rubric parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Rubric |
|
public static Parser<Rubric> parser()
Methods
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getContent()
public Rubric.Content getContent()
Required. The actual testable criteria for the rubric.
.google.cloud.aiplatform.v1beta1.Rubric.Content content = 2;
getContentOrBuilder()
public Rubric.ContentOrBuilder getContentOrBuilder()
Required. The actual testable criteria for the rubric.
.google.cloud.aiplatform.v1beta1.Rubric.Content content = 2;
public Rubric getDefaultInstanceForType()
| Returns |
| Type |
Description |
Rubric |
|
public Rubric.Importance getImportance()
Optional. The relative importance of this rubric.
optional .google.cloud.aiplatform.v1beta1.Rubric.Importance importance = 4;
public int getImportanceValue()
Optional. The relative importance of this rubric.
optional .google.cloud.aiplatform.v1beta1.Rubric.Importance importance = 4;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for importance.
|
public Parser<Rubric> getParserForType()
Overrides
public String getRubricId()
Unique identifier for the rubric.
This ID is used to refer to this rubric, e.g., in RubricVerdict.
string rubric_id = 1;
| Returns |
| Type |
Description |
String |
The rubricId.
|
public ByteString getRubricIdBytes()
Unique identifier for the rubric.
This ID is used to refer to this rubric, e.g., in RubricVerdict.
string rubric_id = 1;
| Returns |
| Type |
Description |
ByteString |
The bytes for rubricId.
|
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
Optional. A type designator for the rubric, which can inform how it's
evaluated or interpreted by systems or users.
It's recommended to use consistent, well-defined, upper snake_case strings.
Examples: "SUMMARIZATION_QUALITY", "SAFETY_HARMFUL_CONTENT",
"INSTRUCTION_ADHERENCE".
optional string type = 3;
| Returns |
| Type |
Description |
String |
The type.
|
public ByteString getTypeBytes()
Optional. A type designator for the rubric, which can inform how it's
evaluated or interpreted by systems or users.
It's recommended to use consistent, well-defined, upper snake_case strings.
Examples: "SUMMARIZATION_QUALITY", "SAFETY_HARMFUL_CONTENT",
"INSTRUCTION_ADHERENCE".
optional string type = 3;
| Returns |
| Type |
Description |
ByteString |
The bytes for type.
|
hasContent()
public boolean hasContent()
Required. The actual testable criteria for the rubric.
.google.cloud.aiplatform.v1beta1.Rubric.Content content = 2;
| Returns |
| Type |
Description |
boolean |
Whether the content field is set.
|
public boolean hasImportance()
Optional. The relative importance of this rubric.
optional .google.cloud.aiplatform.v1beta1.Rubric.Importance importance = 4;
| Returns |
| Type |
Description |
boolean |
Whether the importance field is set.
|
Optional. A type designator for the rubric, which can inform how it's
evaluated or interpreted by systems or users.
It's recommended to use consistent, well-defined, upper snake_case strings.
Examples: "SUMMARIZATION_QUALITY", "SAFETY_HARMFUL_CONTENT",
"INSTRUCTION_ADHERENCE".
optional string type = 3;
| Returns |
| Type |
Description |
boolean |
Whether the type field is set.
|
| Returns |
| Type |
Description |
int |
|
Overrides
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public Rubric.Builder newBuilderForType()
protected Rubric.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
public Rubric.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides