Class EvaluationInstance
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.aiplatform.v1beta1.EvaluationInstance
- All Implemented Interfaces:
EvaluationInstanceOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class EvaluationInstance
extends com.google.protobuf.GeneratedMessage
implements EvaluationInstanceOrBuilder
A single instance to be evaluated. Instances are used to specify the input data for evaluation, from simple string comparisons to complex, multi-turn model evaluationsProtobuf type
google.cloud.aiplatform.v1beta1.EvaluationInstance- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA single instance to be evaluated.static final classDeprecated.static interfaceDeprecated.static final classDeprecated.static interfaceDeprecated.static final classInstance data used to populate placeholders in a metric prompt template.static interfacestatic final classInstance data specified as a map.static interfaceNested 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 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 TypeMethodDescriptionbooleanOptional.booleanDeprecated.google.cloud.aiplatform.v1beta1.EvaluationInstance.agent_data is deprecated.Deprecated.Optional.Optional.static EvaluationInstancestatic final com.google.protobuf.Descriptors.DescriptorOptional.Optional.com.google.protobuf.Parser<EvaluationInstance>Optional.Optional.Optional.Optional.Optional.Optional.Deprecated.intOptional.Optional.getRubricGroupsOrDefault(String key, RubricGroup defaultValue) Optional.Optional.intbooleanDeprecated.google.cloud.aiplatform.v1beta1.EvaluationInstance.agent_data is deprecated.booleanOptional.inthashCode()booleanOptional.booleanOptional.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic EvaluationInstance.Builderstatic EvaluationInstance.BuildernewBuilder(EvaluationInstance prototype) protected EvaluationInstance.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static EvaluationInstanceparseDelimitedFrom(InputStream input) static EvaluationInstanceparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EvaluationInstanceparseFrom(byte[] data) static EvaluationInstanceparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EvaluationInstanceparseFrom(com.google.protobuf.ByteString data) static EvaluationInstanceparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EvaluationInstanceparseFrom(com.google.protobuf.CodedInputStream input) static EvaluationInstanceparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EvaluationInstanceparseFrom(InputStream input) static EvaluationInstanceparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EvaluationInstanceparseFrom(ByteBuffer data) static EvaluationInstanceparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<EvaluationInstance>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, 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
-
PROMPT_FIELD_NUMBER
public static final int PROMPT_FIELD_NUMBER- See Also:
-
RUBRIC_GROUPS_FIELD_NUMBER
public static final int RUBRIC_GROUPS_FIELD_NUMBER- See Also:
-
RESPONSE_FIELD_NUMBER
public static final int RESPONSE_FIELD_NUMBER- See Also:
-
REFERENCE_FIELD_NUMBER
public static final int REFERENCE_FIELD_NUMBER- See Also:
-
OTHER_DATA_FIELD_NUMBER
public static final int OTHER_DATA_FIELD_NUMBER- See Also:
-
AGENT_DATA_FIELD_NUMBER
public static final int AGENT_DATA_FIELD_NUMBER- See Also:
-
AGENT_EVAL_DATA_FIELD_NUMBER
public static final int AGENT_EVAL_DATA_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
hasPrompt
public boolean hasPrompt()Optional. Data used to populate placeholder `prompt` in a metric prompt template.
.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData prompt = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasPromptin interfaceEvaluationInstanceOrBuilder- Returns:
- Whether the prompt field is set.
-
getPrompt
Optional. Data used to populate placeholder `prompt` in a metric prompt template.
.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData prompt = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPromptin interfaceEvaluationInstanceOrBuilder- Returns:
- The prompt.
-
getPromptOrBuilder
Optional. Data used to populate placeholder `prompt` in a metric prompt template.
.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData prompt = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPromptOrBuilderin interfaceEvaluationInstanceOrBuilder
-
getRubricGroupsCount
public int getRubricGroupsCount()Description copied from interface:EvaluationInstanceOrBuilderOptional. Named groups of rubrics associated with the prompt. This is used for rubric-based evaluations where rubrics can be referenced by a key. The key could represent versions, associated metrics, etc.
map<string, .google.cloud.aiplatform.v1beta1.RubricGroup> rubric_groups = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRubricGroupsCountin interfaceEvaluationInstanceOrBuilder
-
containsRubricGroups
Optional. Named groups of rubrics associated with the prompt. This is used for rubric-based evaluations where rubrics can be referenced by a key. The key could represent versions, associated metrics, etc.
map<string, .google.cloud.aiplatform.v1beta1.RubricGroup> rubric_groups = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
containsRubricGroupsin interfaceEvaluationInstanceOrBuilder
-
getRubricGroups
Deprecated.UsegetRubricGroupsMap()instead.- Specified by:
getRubricGroupsin interfaceEvaluationInstanceOrBuilder
-
getRubricGroupsMap
Optional. Named groups of rubrics associated with the prompt. This is used for rubric-based evaluations where rubrics can be referenced by a key. The key could represent versions, associated metrics, etc.
map<string, .google.cloud.aiplatform.v1beta1.RubricGroup> rubric_groups = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRubricGroupsMapin interfaceEvaluationInstanceOrBuilder
-
getRubricGroupsOrDefault
Optional. Named groups of rubrics associated with the prompt. This is used for rubric-based evaluations where rubrics can be referenced by a key. The key could represent versions, associated metrics, etc.
map<string, .google.cloud.aiplatform.v1beta1.RubricGroup> rubric_groups = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRubricGroupsOrDefaultin interfaceEvaluationInstanceOrBuilder
-
getRubricGroupsOrThrow
Optional. Named groups of rubrics associated with the prompt. This is used for rubric-based evaluations where rubrics can be referenced by a key. The key could represent versions, associated metrics, etc.
map<string, .google.cloud.aiplatform.v1beta1.RubricGroup> rubric_groups = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRubricGroupsOrThrowin interfaceEvaluationInstanceOrBuilder
-
hasResponse
public boolean hasResponse()Optional. Data used to populate placeholder `response` in a metric prompt template.
.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData response = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasResponsein interfaceEvaluationInstanceOrBuilder- Returns:
- Whether the response field is set.
-
getResponse
Optional. Data used to populate placeholder `response` in a metric prompt template.
.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData response = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getResponsein interfaceEvaluationInstanceOrBuilder- Returns:
- The response.
-
getResponseOrBuilder
Optional. Data used to populate placeholder `response` in a metric prompt template.
.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData response = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getResponseOrBuilderin interfaceEvaluationInstanceOrBuilder
-
hasReference
public boolean hasReference()Optional. Data used to populate placeholder `reference` in a metric prompt template.
.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData reference = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasReferencein interfaceEvaluationInstanceOrBuilder- Returns:
- Whether the reference field is set.
-
getReference
Optional. Data used to populate placeholder `reference` in a metric prompt template.
.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData reference = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getReferencein interfaceEvaluationInstanceOrBuilder- Returns:
- The reference.
-
getReferenceOrBuilder
Optional. Data used to populate placeholder `reference` in a metric prompt template.
.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData reference = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getReferenceOrBuilderin interfaceEvaluationInstanceOrBuilder
-
hasOtherData
public boolean hasOtherData()Optional. Other data used to populate placeholders based on their key. If a key conflicts with a field in the EvaluationInstance (e.g. `prompt`), the value of the field will take precedence over the value in other_data.
.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance other_data = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasOtherDatain interfaceEvaluationInstanceOrBuilder- Returns:
- Whether the otherData field is set.
-
getOtherData
Optional. Other data used to populate placeholders based on their key. If a key conflicts with a field in the EvaluationInstance (e.g. `prompt`), the value of the field will take precedence over the value in other_data.
.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance other_data = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOtherDatain interfaceEvaluationInstanceOrBuilder- Returns:
- The otherData.
-
getOtherDataOrBuilder
Optional. Other data used to populate placeholders based on their key. If a key conflicts with a field in the EvaluationInstance (e.g. `prompt`), the value of the field will take precedence over the value in other_data.
.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance other_data = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOtherDataOrBuilderin interfaceEvaluationInstanceOrBuilder
-
hasAgentData
Deprecated.google.cloud.aiplatform.v1beta1.EvaluationInstance.agent_data is deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=565Optional. Deprecated: Use `agent_eval_data` instead. Data used for agent evaluation.
.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData agent_data = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];- Specified by:
hasAgentDatain interfaceEvaluationInstanceOrBuilder- Returns:
- Whether the agentData field is set.
-
getAgentData
Deprecated.google.cloud.aiplatform.v1beta1.EvaluationInstance.agent_data is deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=565Optional. Deprecated: Use `agent_eval_data` instead. Data used for agent evaluation.
.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData agent_data = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];- Specified by:
getAgentDatain interfaceEvaluationInstanceOrBuilder- Returns:
- The agentData.
-
getAgentDataOrBuilder
Deprecated.Optional. Deprecated: Use `agent_eval_data` instead. Data used for agent evaluation.
.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData agent_data = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];- Specified by:
getAgentDataOrBuilderin interfaceEvaluationInstanceOrBuilder
-
hasAgentEvalData
public boolean hasAgentEvalData()Optional. Data used for agent evaluation.
.google.cloud.aiplatform.v1beta1.AgentData agent_eval_data = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasAgentEvalDatain interfaceEvaluationInstanceOrBuilder- Returns:
- Whether the agentEvalData field is set.
-
getAgentEvalData
Optional. Data used for agent evaluation.
.google.cloud.aiplatform.v1beta1.AgentData agent_eval_data = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAgentEvalDatain interfaceEvaluationInstanceOrBuilder- Returns:
- The agentEvalData.
-
getAgentEvalDataOrBuilder
Optional. Data used for agent evaluation.
.google.cloud.aiplatform.v1beta1.AgentData agent_eval_data = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAgentEvalDataOrBuilderin interfaceEvaluationInstanceOrBuilder
-
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 EvaluationInstance parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EvaluationInstance parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EvaluationInstance parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EvaluationInstance parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EvaluationInstance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EvaluationInstance parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static EvaluationInstance parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static EvaluationInstance parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static EvaluationInstance parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static EvaluationInstance 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 EvaluationInstance.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
-