Package com.google.cloud.aiplatform.v1
Class LLMBasedMetricSpec
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.aiplatform.v1.LLMBasedMetricSpec
- All Implemented Interfaces:
LLMBasedMetricSpecOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class LLMBasedMetricSpec
extends com.google.protobuf.GeneratedMessage
implements LLMBasedMetricSpecOrBuilder
Specification for an LLM based metric.Protobuf type
google.cloud.aiplatform.v1.LLMBasedMetricSpec- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSpecification for an LLM based metric.static enumNested 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 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 TypeMethodDescriptionbooleancom.google.protobuf.StructOptional.com.google.protobuf.StructOrBuilderOptional.static LLMBasedMetricSpecstatic final com.google.protobuf.Descriptors.DescriptorOptional.Optional.Required.com.google.protobuf.ByteStringRequired.com.google.protobuf.Parser<LLMBasedMetricSpec>Dynamically generate rubrics using a predefined spec.Dynamically generate rubrics using a predefined spec.Use a pre-defined group of rubrics associated with the input.com.google.protobuf.ByteStringUse a pre-defined group of rubrics associated with the input.intOptional.com.google.protobuf.ByteStringOptional.booleanOptional.inthashCode()booleanOptional.booleanRequired.booleanDynamically generate rubrics using a predefined spec.booleanUse a pre-defined group of rubrics associated with the input.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic LLMBasedMetricSpec.Builderstatic LLMBasedMetricSpec.BuildernewBuilder(LLMBasedMetricSpec prototype) protected LLMBasedMetricSpec.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static LLMBasedMetricSpecparseDelimitedFrom(InputStream input) static LLMBasedMetricSpecparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static LLMBasedMetricSpecparseFrom(byte[] data) static LLMBasedMetricSpecparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static LLMBasedMetricSpecparseFrom(com.google.protobuf.ByteString data) static LLMBasedMetricSpecparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static LLMBasedMetricSpecparseFrom(com.google.protobuf.CodedInputStream input) static LLMBasedMetricSpecparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static LLMBasedMetricSpecparseFrom(InputStream input) static LLMBasedMetricSpecparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static LLMBasedMetricSpecparseFrom(ByteBuffer data) static LLMBasedMetricSpecparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<LLMBasedMetricSpec>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
-
RUBRIC_GROUP_KEY_FIELD_NUMBER
public static final int RUBRIC_GROUP_KEY_FIELD_NUMBER- See Also:
-
PREDEFINED_RUBRIC_GENERATION_SPEC_FIELD_NUMBER
public static final int PREDEFINED_RUBRIC_GENERATION_SPEC_FIELD_NUMBER- See Also:
-
METRIC_PROMPT_TEMPLATE_FIELD_NUMBER
public static final int METRIC_PROMPT_TEMPLATE_FIELD_NUMBER- See Also:
-
SYSTEM_INSTRUCTION_FIELD_NUMBER
public static final int SYSTEM_INSTRUCTION_FIELD_NUMBER- See Also:
-
JUDGE_AUTORATER_CONFIG_FIELD_NUMBER
public static final int JUDGE_AUTORATER_CONFIG_FIELD_NUMBER- See Also:
-
ADDITIONAL_CONFIG_FIELD_NUMBER
public static final int ADDITIONAL_CONFIG_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
-
getRubricsSourceCase
- Specified by:
getRubricsSourceCasein interfaceLLMBasedMetricSpecOrBuilder
-
hasRubricGroupKey
public boolean hasRubricGroupKey()Use a pre-defined group of rubrics associated with the input. Refers to a key in the rubric_groups map of EvaluationInstance.
string rubric_group_key = 4;- Specified by:
hasRubricGroupKeyin interfaceLLMBasedMetricSpecOrBuilder- Returns:
- Whether the rubricGroupKey field is set.
-
getRubricGroupKey
Use a pre-defined group of rubrics associated with the input. Refers to a key in the rubric_groups map of EvaluationInstance.
string rubric_group_key = 4;- Specified by:
getRubricGroupKeyin interfaceLLMBasedMetricSpecOrBuilder- Returns:
- The rubricGroupKey.
-
getRubricGroupKeyBytes
public com.google.protobuf.ByteString getRubricGroupKeyBytes()Use a pre-defined group of rubrics associated with the input. Refers to a key in the rubric_groups map of EvaluationInstance.
string rubric_group_key = 4;- Specified by:
getRubricGroupKeyBytesin interfaceLLMBasedMetricSpecOrBuilder- Returns:
- The bytes for rubricGroupKey.
-
hasPredefinedRubricGenerationSpec
public boolean hasPredefinedRubricGenerationSpec()Dynamically generate rubrics using a predefined spec.
.google.cloud.aiplatform.v1.PredefinedMetricSpec predefined_rubric_generation_spec = 6;- Specified by:
hasPredefinedRubricGenerationSpecin interfaceLLMBasedMetricSpecOrBuilder- Returns:
- Whether the predefinedRubricGenerationSpec field is set.
-
getPredefinedRubricGenerationSpec
Dynamically generate rubrics using a predefined spec.
.google.cloud.aiplatform.v1.PredefinedMetricSpec predefined_rubric_generation_spec = 6;- Specified by:
getPredefinedRubricGenerationSpecin interfaceLLMBasedMetricSpecOrBuilder- Returns:
- The predefinedRubricGenerationSpec.
-
getPredefinedRubricGenerationSpecOrBuilder
Dynamically generate rubrics using a predefined spec.
.google.cloud.aiplatform.v1.PredefinedMetricSpec predefined_rubric_generation_spec = 6;- Specified by:
getPredefinedRubricGenerationSpecOrBuilderin interfaceLLMBasedMetricSpecOrBuilder
-
hasMetricPromptTemplate
public boolean hasMetricPromptTemplate()Required. Template for the prompt sent to the judge model.
optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasMetricPromptTemplatein interfaceLLMBasedMetricSpecOrBuilder- Returns:
- Whether the metricPromptTemplate field is set.
-
getMetricPromptTemplate
Required. Template for the prompt sent to the judge model.
optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getMetricPromptTemplatein interfaceLLMBasedMetricSpecOrBuilder- Returns:
- The metricPromptTemplate.
-
getMetricPromptTemplateBytes
public com.google.protobuf.ByteString getMetricPromptTemplateBytes()Required. Template for the prompt sent to the judge model.
optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getMetricPromptTemplateBytesin interfaceLLMBasedMetricSpecOrBuilder- Returns:
- The bytes for metricPromptTemplate.
-
hasSystemInstruction
public boolean hasSystemInstruction()Optional. System instructions for the judge model.
optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasSystemInstructionin interfaceLLMBasedMetricSpecOrBuilder- Returns:
- Whether the systemInstruction field is set.
-
getSystemInstruction
Optional. System instructions for the judge model.
optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSystemInstructionin interfaceLLMBasedMetricSpecOrBuilder- Returns:
- The systemInstruction.
-
getSystemInstructionBytes
public com.google.protobuf.ByteString getSystemInstructionBytes()Optional. System instructions for the judge model.
optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSystemInstructionBytesin interfaceLLMBasedMetricSpecOrBuilder- Returns:
- The bytes for systemInstruction.
-
hasJudgeAutoraterConfig
public boolean hasJudgeAutoraterConfig()Optional. Optional configuration for the judge LLM (Autorater).
optional .google.cloud.aiplatform.v1.AutoraterConfig judge_autorater_config = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasJudgeAutoraterConfigin interfaceLLMBasedMetricSpecOrBuilder- Returns:
- Whether the judgeAutoraterConfig field is set.
-
getJudgeAutoraterConfig
Optional. Optional configuration for the judge LLM (Autorater).
optional .google.cloud.aiplatform.v1.AutoraterConfig judge_autorater_config = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getJudgeAutoraterConfigin interfaceLLMBasedMetricSpecOrBuilder- Returns:
- The judgeAutoraterConfig.
-
getJudgeAutoraterConfigOrBuilder
Optional. Optional configuration for the judge LLM (Autorater).
optional .google.cloud.aiplatform.v1.AutoraterConfig judge_autorater_config = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getJudgeAutoraterConfigOrBuilderin interfaceLLMBasedMetricSpecOrBuilder
-
hasAdditionalConfig
public boolean hasAdditionalConfig()Optional. Optional additional configuration for the metric.
optional .google.protobuf.Struct additional_config = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasAdditionalConfigin interfaceLLMBasedMetricSpecOrBuilder- Returns:
- Whether the additionalConfig field is set.
-
getAdditionalConfig
public com.google.protobuf.Struct getAdditionalConfig()Optional. Optional additional configuration for the metric.
optional .google.protobuf.Struct additional_config = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAdditionalConfigin interfaceLLMBasedMetricSpecOrBuilder- Returns:
- The additionalConfig.
-
getAdditionalConfigOrBuilder
public com.google.protobuf.StructOrBuilder getAdditionalConfigOrBuilder()Optional. Optional additional configuration for the metric.
optional .google.protobuf.Struct additional_config = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAdditionalConfigOrBuilderin interfaceLLMBasedMetricSpecOrBuilder
-
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 LLMBasedMetricSpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LLMBasedMetricSpec parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LLMBasedMetricSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LLMBasedMetricSpec parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LLMBasedMetricSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LLMBasedMetricSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static LLMBasedMetricSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static LLMBasedMetricSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static LLMBasedMetricSpec parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static LLMBasedMetricSpec 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 LLMBasedMetricSpec.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
-