public static final class Rubric.Builder extends GeneratedMessage.Builder<Rubric.Builder> implements RubricOrBuilderMessage representing a single testable criterion for evaluation. One input prompt could have multiple rubrics.
Protobuf type google.cloud.aiplatform.v1beta1.Rubric
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Rubric.BuilderImplements
RubricOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Rubric build()| Returns | |
|---|---|
| Type | Description |
Rubric |
|
buildPartial()
public Rubric buildPartial()| Returns | |
|---|---|
| Type | Description |
Rubric |
|
clear()
public Rubric.Builder clear()| Returns | |
|---|---|
| Type | Description |
Rubric.Builder |
|
clearContent()
public Rubric.Builder clearContent()Required. The actual testable criteria for the rubric.
.google.cloud.aiplatform.v1beta1.Rubric.Content content = 2;
| Returns | |
|---|---|
| Type | Description |
Rubric.Builder |
|
clearImportance()
public Rubric.Builder clearImportance()Optional. The relative importance of this rubric.
optional .google.cloud.aiplatform.v1beta1.Rubric.Importance importance = 4;
| Returns | |
|---|---|
| Type | Description |
Rubric.Builder |
This builder for chaining. |
clearRubricId()
public Rubric.Builder clearRubricId()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 |
Rubric.Builder |
This builder for chaining. |
clearType()
public Rubric.Builder clearType()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 |
Rubric.Builder |
This builder for chaining. |
getContent()
public Rubric.Content getContent()Required. The actual testable criteria for the rubric.
.google.cloud.aiplatform.v1beta1.Rubric.Content content = 2;
| Returns | |
|---|---|
| Type | Description |
Rubric.Content |
The content. |
getContentBuilder()
public Rubric.Content.Builder getContentBuilder()Required. The actual testable criteria for the rubric.
.google.cloud.aiplatform.v1beta1.Rubric.Content content = 2;
| Returns | |
|---|---|
| Type | Description |
Rubric.Content.Builder |
|
getContentOrBuilder()
public Rubric.ContentOrBuilder getContentOrBuilder()Required. The actual testable criteria for the rubric.
.google.cloud.aiplatform.v1beta1.Rubric.Content content = 2;
| Returns | |
|---|---|
| Type | Description |
Rubric.ContentOrBuilder |
|
getDefaultInstanceForType()
public Rubric getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Rubric |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getImportance()
public Rubric.Importance getImportance()Optional. The relative importance of this rubric.
optional .google.cloud.aiplatform.v1beta1.Rubric.Importance importance = 4;
| Returns | |
|---|---|
| Type | Description |
Rubric.Importance |
The importance. |
getImportanceValue()
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. |
getRubricId()
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. |
getRubricIdBytes()
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. |
getType()
public String getType()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. |
getTypeBytes()
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. |
hasImportance()
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. |
hasType()
public boolean hasType()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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeContent(Rubric.Content value)
public Rubric.Builder mergeContent(Rubric.Content value)Required. The actual testable criteria for the rubric.
.google.cloud.aiplatform.v1beta1.Rubric.Content content = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
Rubric.Content |
| Returns | |
|---|---|
| Type | Description |
Rubric.Builder |
|
mergeFrom(Rubric other)
public Rubric.Builder mergeFrom(Rubric other)| Parameter | |
|---|---|
| Name | Description |
other |
Rubric |
| Returns | |
|---|---|
| Type | Description |
Rubric.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Rubric.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Rubric.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Rubric.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Rubric.Builder |
|
setContent(Rubric.Content value)
public Rubric.Builder setContent(Rubric.Content value)Required. The actual testable criteria for the rubric.
.google.cloud.aiplatform.v1beta1.Rubric.Content content = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
Rubric.Content |
| Returns | |
|---|---|
| Type | Description |
Rubric.Builder |
|
setContent(Rubric.Content.Builder builderForValue)
public Rubric.Builder setContent(Rubric.Content.Builder builderForValue)Required. The actual testable criteria for the rubric.
.google.cloud.aiplatform.v1beta1.Rubric.Content content = 2;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Rubric.Content.Builder |
| Returns | |
|---|---|
| Type | Description |
Rubric.Builder |
|
setImportance(Rubric.Importance value)
public Rubric.Builder setImportance(Rubric.Importance value)Optional. The relative importance of this rubric.
optional .google.cloud.aiplatform.v1beta1.Rubric.Importance importance = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
Rubric.ImportanceThe importance to set. |
| Returns | |
|---|---|
| Type | Description |
Rubric.Builder |
This builder for chaining. |
setImportanceValue(int value)
public Rubric.Builder setImportanceValue(int value)Optional. The relative importance of this rubric.
optional .google.cloud.aiplatform.v1beta1.Rubric.Importance importance = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for importance to set. |
| Returns | |
|---|---|
| Type | Description |
Rubric.Builder |
This builder for chaining. |
setRubricId(String value)
public Rubric.Builder setRubricId(String value)Unique identifier for the rubric. This ID is used to refer to this rubric, e.g., in RubricVerdict.
string rubric_id = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe rubricId to set. |
| Returns | |
|---|---|
| Type | Description |
Rubric.Builder |
This builder for chaining. |
setRubricIdBytes(ByteString value)
public Rubric.Builder setRubricIdBytes(ByteString value)Unique identifier for the rubric. This ID is used to refer to this rubric, e.g., in RubricVerdict.
string rubric_id = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for rubricId to set. |
| Returns | |
|---|---|
| Type | Description |
Rubric.Builder |
This builder for chaining. |
setType(String value)
public Rubric.Builder setType(String value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe type to set. |
| Returns | |
|---|---|
| Type | Description |
Rubric.Builder |
This builder for chaining. |
setTypeBytes(ByteString value)
public Rubric.Builder setTypeBytes(ByteString value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for type to set. |
| Returns | |
|---|---|
| Type | Description |
Rubric.Builder |
This builder for chaining. |