Class Rubric.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Rubric.Builder>
com.google.cloud.aiplatform.v1beta1.Rubric.Builder
- All Implemented Interfaces:
RubricOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Rubric
public static final class Rubric.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Rubric.Builder>
implements RubricOrBuilder
Message representing a single testable criterion for evaluation. One input prompt could have multiple rubrics.Protobuf type
google.cloud.aiplatform.v1beta1.Rubric-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Required.Optional.Unique identifier for the rubric.Optional.Required.Required.Required.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.intOptional.Unique identifier for the rubric.com.google.protobuf.ByteStringUnique identifier for the rubric.getType()Optional.com.google.protobuf.ByteStringOptional.booleanRequired.booleanOptional.booleanhasType()Optional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeContent(Rubric.Content value) Required.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setContent(Rubric.Content value) Required.setContent(Rubric.Content.Builder builderForValue) Required.setImportance(Rubric.Importance value) Optional.setImportanceValue(int value) Optional.setRubricId(String value) Unique identifier for the rubric.setRubricIdBytes(com.google.protobuf.ByteString value) Unique identifier for the rubric.Optional.setTypeBytes(com.google.protobuf.ByteString 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<Rubric.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<Rubric.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<Rubric.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<Rubric.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Rubric.Builder>
-
mergeFrom
public Rubric.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<Rubric.Builder>- Throws:
IOException
-
getRubricId
Unique identifier for the rubric. This ID is used to refer to this rubric, e.g., in RubricVerdict.
string rubric_id = 1;- Specified by:
getRubricIdin interfaceRubricOrBuilder- Returns:
- The rubricId.
-
getRubricIdBytes
public com.google.protobuf.ByteString getRubricIdBytes()Unique identifier for the rubric. This ID is used to refer to this rubric, e.g., in RubricVerdict.
string rubric_id = 1;- Specified by:
getRubricIdBytesin interfaceRubricOrBuilder- Returns:
- The bytes for rubricId.
-
setRubricId
Unique identifier for the rubric. This ID is used to refer to this rubric, e.g., in RubricVerdict.
string rubric_id = 1;- Parameters:
value- The rubricId to set.- Returns:
- This builder for chaining.
-
clearRubricId
Unique identifier for the rubric. This ID is used to refer to this rubric, e.g., in RubricVerdict.
string rubric_id = 1;- Returns:
- This builder for chaining.
-
setRubricIdBytes
Unique identifier for the rubric. This ID is used to refer to this rubric, e.g., in RubricVerdict.
string rubric_id = 1;- Parameters:
value- The bytes for rubricId to set.- Returns:
- This builder for chaining.
-
hasContent
public boolean hasContent()Required. The actual testable criteria for the rubric.
.google.cloud.aiplatform.v1beta1.Rubric.Content content = 2;- Specified by:
hasContentin interfaceRubricOrBuilder- Returns:
- Whether the content field is set.
-
getContent
Required. The actual testable criteria for the rubric.
.google.cloud.aiplatform.v1beta1.Rubric.Content content = 2;- Specified by:
getContentin interfaceRubricOrBuilder- Returns:
- The content.
-
setContent
Required. The actual testable criteria for the rubric.
.google.cloud.aiplatform.v1beta1.Rubric.Content content = 2; -
setContent
Required. The actual testable criteria for the rubric.
.google.cloud.aiplatform.v1beta1.Rubric.Content content = 2; -
mergeContent
Required. The actual testable criteria for the rubric.
.google.cloud.aiplatform.v1beta1.Rubric.Content content = 2; -
clearContent
Required. The actual testable criteria for the rubric.
.google.cloud.aiplatform.v1beta1.Rubric.Content content = 2; -
getContentBuilder
Required. The actual testable criteria for the rubric.
.google.cloud.aiplatform.v1beta1.Rubric.Content content = 2; -
getContentOrBuilder
Required. The actual testable criteria for the rubric.
.google.cloud.aiplatform.v1beta1.Rubric.Content content = 2;- Specified by:
getContentOrBuilderin interfaceRubricOrBuilder
-
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;- Specified by:
hasTypein interfaceRubricOrBuilder- Returns:
- Whether the type field is set.
-
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;- Specified by:
getTypein interfaceRubricOrBuilder- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.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;- Specified by:
getTypeBytesin interfaceRubricOrBuilder- Returns:
- The bytes for type.
-
setType
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;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setTypeBytes
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;- Parameters:
value- The bytes for type to set.- Returns:
- This builder for chaining.
-
hasImportance
public boolean hasImportance()Optional. The relative importance of this rubric.
optional .google.cloud.aiplatform.v1beta1.Rubric.Importance importance = 4;- Specified by:
hasImportancein interfaceRubricOrBuilder- Returns:
- Whether the importance field is set.
-
getImportanceValue
public int getImportanceValue()Optional. The relative importance of this rubric.
optional .google.cloud.aiplatform.v1beta1.Rubric.Importance importance = 4;- Specified by:
getImportanceValuein interfaceRubricOrBuilder- Returns:
- The enum numeric value on the wire for importance.
-
setImportanceValue
Optional. The relative importance of this rubric.
optional .google.cloud.aiplatform.v1beta1.Rubric.Importance importance = 4;- Parameters:
value- The enum numeric value on the wire for importance to set.- Returns:
- This builder for chaining.
-
getImportance
Optional. The relative importance of this rubric.
optional .google.cloud.aiplatform.v1beta1.Rubric.Importance importance = 4;- Specified by:
getImportancein interfaceRubricOrBuilder- Returns:
- The importance.
-
setImportance
Optional. The relative importance of this rubric.
optional .google.cloud.aiplatform.v1beta1.Rubric.Importance importance = 4;- Parameters:
value- The importance to set.- Returns:
- This builder for chaining.
-
clearImportance
Optional. The relative importance of this rubric.
optional .google.cloud.aiplatform.v1beta1.Rubric.Importance importance = 4;- Returns:
- This builder for chaining.
-