@Generated public final class LLMBasedMetricSpec extends com.google.protobuf.GeneratedMessage implements LLMBasedMetricSpecOrBuilder
Specification for an LLM based metric.Protobuf type
google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec| Modifier and Type | Class and Description |
|---|---|
static class |
LLMBasedMetricSpec.Builder
Specification for an LLM based metric.
|
static class |
LLMBasedMetricSpec.RubricsSourceCase |
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>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ADDITIONAL_CONFIG_FIELD_NUMBER |
static int |
JUDGE_AUTORATER_CONFIG_FIELD_NUMBER |
static int |
METRIC_PROMPT_TEMPLATE_FIELD_NUMBER |
static int |
PREDEFINED_RUBRIC_GENERATION_SPEC_FIELD_NUMBER |
static int |
RUBRIC_GROUP_KEY_FIELD_NUMBER |
static int |
SYSTEM_INSTRUCTION_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
com.google.protobuf.Struct |
getAdditionalConfig()
Optional.
|
com.google.protobuf.StructOrBuilder |
getAdditionalConfigOrBuilder()
Optional.
|
static LLMBasedMetricSpec |
getDefaultInstance() |
LLMBasedMetricSpec |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
AutoraterConfig |
getJudgeAutoraterConfig()
Optional.
|
AutoraterConfigOrBuilder |
getJudgeAutoraterConfigOrBuilder()
Optional.
|
String |
getMetricPromptTemplate()
Required.
|
com.google.protobuf.ByteString |
getMetricPromptTemplateBytes()
Required.
|
com.google.protobuf.Parser<LLMBasedMetricSpec> |
getParserForType() |
PredefinedMetricSpec |
getPredefinedRubricGenerationSpec()
Dynamically generate rubrics using a predefined spec.
|
PredefinedMetricSpecOrBuilder |
getPredefinedRubricGenerationSpecOrBuilder()
Dynamically generate rubrics using a predefined spec.
|
String |
getRubricGroupKey()
Use a pre-defined group of rubrics associated with the input.
|
com.google.protobuf.ByteString |
getRubricGroupKeyBytes()
Use a pre-defined group of rubrics associated with the input.
|
LLMBasedMetricSpec.RubricsSourceCase |
getRubricsSourceCase() |
int |
getSerializedSize() |
String |
getSystemInstruction()
Optional.
|
com.google.protobuf.ByteString |
getSystemInstructionBytes()
Optional.
|
boolean |
hasAdditionalConfig()
Optional.
|
int |
hashCode() |
boolean |
hasJudgeAutoraterConfig()
Optional.
|
boolean |
hasMetricPromptTemplate()
Required.
|
boolean |
hasPredefinedRubricGenerationSpec()
Dynamically generate rubrics using a predefined spec.
|
boolean |
hasRubricGroupKey()
Use a pre-defined group of rubrics associated with the input.
|
boolean |
hasSystemInstruction()
Optional.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static LLMBasedMetricSpec.Builder |
newBuilder() |
static LLMBasedMetricSpec.Builder |
newBuilder(LLMBasedMetricSpec prototype) |
LLMBasedMetricSpec.Builder |
newBuilderForType() |
protected LLMBasedMetricSpec.Builder |
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) |
static LLMBasedMetricSpec |
parseDelimitedFrom(InputStream input) |
static LLMBasedMetricSpec |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LLMBasedMetricSpec |
parseFrom(byte[] data) |
static LLMBasedMetricSpec |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LLMBasedMetricSpec |
parseFrom(ByteBuffer data) |
static LLMBasedMetricSpec |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LLMBasedMetricSpec |
parseFrom(com.google.protobuf.ByteString data) |
static LLMBasedMetricSpec |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LLMBasedMetricSpec |
parseFrom(com.google.protobuf.CodedInputStream input) |
static LLMBasedMetricSpec |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LLMBasedMetricSpec |
parseFrom(InputStream input) |
static LLMBasedMetricSpec |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<LLMBasedMetricSpec> |
parser() |
LLMBasedMetricSpec.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashFields, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int RUBRIC_GROUP_KEY_FIELD_NUMBER
public static final int PREDEFINED_RUBRIC_GENERATION_SPEC_FIELD_NUMBER
public static final int METRIC_PROMPT_TEMPLATE_FIELD_NUMBER
public static final int SYSTEM_INSTRUCTION_FIELD_NUMBER
public static final int JUDGE_AUTORATER_CONFIG_FIELD_NUMBER
public static final int ADDITIONAL_CONFIG_FIELD_NUMBER
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic LLMBasedMetricSpec.RubricsSourceCase getRubricsSourceCase()
getRubricsSourceCase in interface LLMBasedMetricSpecOrBuilderpublic 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;hasRubricGroupKey in interface LLMBasedMetricSpecOrBuilderpublic String 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;getRubricGroupKey in interface LLMBasedMetricSpecOrBuilderpublic 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;getRubricGroupKeyBytes in interface LLMBasedMetricSpecOrBuilderpublic boolean hasPredefinedRubricGenerationSpec()
Dynamically generate rubrics using a predefined spec.
.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 6;
hasPredefinedRubricGenerationSpec in interface LLMBasedMetricSpecOrBuilderpublic PredefinedMetricSpec getPredefinedRubricGenerationSpec()
Dynamically generate rubrics using a predefined spec.
.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 6;
getPredefinedRubricGenerationSpec in interface LLMBasedMetricSpecOrBuilderpublic PredefinedMetricSpecOrBuilder getPredefinedRubricGenerationSpecOrBuilder()
Dynamically generate rubrics using a predefined spec.
.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 6;
getPredefinedRubricGenerationSpecOrBuilder in interface LLMBasedMetricSpecOrBuilderpublic boolean hasMetricPromptTemplate()
Required. Template for the prompt sent to the judge model.
optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED];
hasMetricPromptTemplate in interface LLMBasedMetricSpecOrBuilderpublic String getMetricPromptTemplate()
Required. Template for the prompt sent to the judge model.
optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED];
getMetricPromptTemplate in interface LLMBasedMetricSpecOrBuilderpublic 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];
getMetricPromptTemplateBytes in interface LLMBasedMetricSpecOrBuilderpublic boolean hasSystemInstruction()
Optional. System instructions for the judge model.
optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL];hasSystemInstruction in interface LLMBasedMetricSpecOrBuilderpublic String getSystemInstruction()
Optional. System instructions for the judge model.
optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL];getSystemInstruction in interface LLMBasedMetricSpecOrBuilderpublic com.google.protobuf.ByteString getSystemInstructionBytes()
Optional. System instructions for the judge model.
optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL];getSystemInstructionBytes in interface LLMBasedMetricSpecOrBuilderpublic boolean hasJudgeAutoraterConfig()
Optional. Optional configuration for the judge LLM (Autorater).
optional .google.cloud.aiplatform.v1beta1.AutoraterConfig judge_autorater_config = 3 [(.google.api.field_behavior) = OPTIONAL];
hasJudgeAutoraterConfig in interface LLMBasedMetricSpecOrBuilderpublic AutoraterConfig getJudgeAutoraterConfig()
Optional. Optional configuration for the judge LLM (Autorater).
optional .google.cloud.aiplatform.v1beta1.AutoraterConfig judge_autorater_config = 3 [(.google.api.field_behavior) = OPTIONAL];
getJudgeAutoraterConfig in interface LLMBasedMetricSpecOrBuilderpublic AutoraterConfigOrBuilder getJudgeAutoraterConfigOrBuilder()
Optional. Optional configuration for the judge LLM (Autorater).
optional .google.cloud.aiplatform.v1beta1.AutoraterConfig judge_autorater_config = 3 [(.google.api.field_behavior) = OPTIONAL];
getJudgeAutoraterConfigOrBuilder in interface LLMBasedMetricSpecOrBuilderpublic boolean hasAdditionalConfig()
Optional. Optional additional configuration for the metric.
optional .google.protobuf.Struct additional_config = 7 [(.google.api.field_behavior) = OPTIONAL];
hasAdditionalConfig in interface LLMBasedMetricSpecOrBuilderpublic com.google.protobuf.Struct getAdditionalConfig()
Optional. Optional additional configuration for the metric.
optional .google.protobuf.Struct additional_config = 7 [(.google.api.field_behavior) = OPTIONAL];
getAdditionalConfig in interface LLMBasedMetricSpecOrBuilderpublic com.google.protobuf.StructOrBuilder getAdditionalConfigOrBuilder()
Optional. Optional additional configuration for the metric.
optional .google.protobuf.Struct additional_config = 7 [(.google.api.field_behavior) = OPTIONAL];
getAdditionalConfigOrBuilder in interface LLMBasedMetricSpecOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessagepublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageIOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessagepublic boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static LLMBasedMetricSpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LLMBasedMetricSpec parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LLMBasedMetricSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LLMBasedMetricSpec parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LLMBasedMetricSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LLMBasedMetricSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LLMBasedMetricSpec parseFrom(InputStream input) throws IOException
IOExceptionpublic static LLMBasedMetricSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static LLMBasedMetricSpec parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static LLMBasedMetricSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static LLMBasedMetricSpec parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static LLMBasedMetricSpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic LLMBasedMetricSpec.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static LLMBasedMetricSpec.Builder newBuilder()
public static LLMBasedMetricSpec.Builder newBuilder(LLMBasedMetricSpec prototype)
public LLMBasedMetricSpec.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected LLMBasedMetricSpec.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.AbstractMessagepublic static LLMBasedMetricSpec getDefaultInstance()
public static com.google.protobuf.Parser<LLMBasedMetricSpec> parser()
public com.google.protobuf.Parser<LLMBasedMetricSpec> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic LLMBasedMetricSpec getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2026 Google LLC. All rights reserved.