Package com.google.cloud.aiplatform.v1
Class Metric
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.aiplatform.v1.Metric
- All Implemented Interfaces:
MetricOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class Metric
extends com.google.protobuf.GeneratedMessage
implements MetricOrBuilder
The metric used for running evaluations.Protobuf type
google.cloud.aiplatform.v1.Metric- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe per-metric statistics on evaluation results supported by `EvaluationService.EvaluateDataset`.static final classThe metric used for running evaluations.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 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 TypeMethodDescriptionbooleangetAggregationMetrics(int index) Optional.intOptional.Optional.intgetAggregationMetricsValue(int index) Optional.Optional.Spec for bleu metric.Spec for bleu metric.Spec for a computation based metric.Spec for a computation based metric.static Metricstatic final com.google.protobuf.Descriptors.DescriptorSpec for exact match metric.Spec for exact match metric.Spec for an LLM based metric.Spec for an LLM based metric.Spec for pairwise metric.Spec for pairwise metric.com.google.protobuf.Parser<Metric>Spec for pointwise metric.Spec for pointwise metric.The spec for a pre-defined metric.The spec for a pre-defined metric.Spec for rouge metric.Spec for rouge metric.intbooleanSpec for bleu metric.booleanSpec for a computation based metric.booleanSpec for exact match metric.inthashCode()booleanSpec for an LLM based metric.booleanSpec for pairwise metric.booleanSpec for pointwise metric.booleanThe spec for a pre-defined metric.booleanSpec for rouge metric.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic Metric.Builderstatic Metric.BuildernewBuilder(Metric prototype) protected Metric.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static MetricparseDelimitedFrom(InputStream input) static MetricparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MetricparseFrom(byte[] data) static MetricparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MetricparseFrom(com.google.protobuf.ByteString data) static MetricparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MetricparseFrom(com.google.protobuf.CodedInputStream input) static MetricparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MetricparseFrom(InputStream input) static MetricparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MetricparseFrom(ByteBuffer data) static MetricparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Metric>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
-
PREDEFINED_METRIC_SPEC_FIELD_NUMBER
public static final int PREDEFINED_METRIC_SPEC_FIELD_NUMBER- See Also:
-
COMPUTATION_BASED_METRIC_SPEC_FIELD_NUMBER
public static final int COMPUTATION_BASED_METRIC_SPEC_FIELD_NUMBER- See Also:
-
LLM_BASED_METRIC_SPEC_FIELD_NUMBER
public static final int LLM_BASED_METRIC_SPEC_FIELD_NUMBER- See Also:
-
POINTWISE_METRIC_SPEC_FIELD_NUMBER
public static final int POINTWISE_METRIC_SPEC_FIELD_NUMBER- See Also:
-
PAIRWISE_METRIC_SPEC_FIELD_NUMBER
public static final int PAIRWISE_METRIC_SPEC_FIELD_NUMBER- See Also:
-
EXACT_MATCH_SPEC_FIELD_NUMBER
public static final int EXACT_MATCH_SPEC_FIELD_NUMBER- See Also:
-
BLEU_SPEC_FIELD_NUMBER
public static final int BLEU_SPEC_FIELD_NUMBER- See Also:
-
ROUGE_SPEC_FIELD_NUMBER
public static final int ROUGE_SPEC_FIELD_NUMBER- See Also:
-
AGGREGATION_METRICS_FIELD_NUMBER
public static final int AGGREGATION_METRICS_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
-
getMetricSpecCase
- Specified by:
getMetricSpecCasein interfaceMetricOrBuilder
-
hasPredefinedMetricSpec
public boolean hasPredefinedMetricSpec()The spec for a pre-defined metric.
.google.cloud.aiplatform.v1.PredefinedMetricSpec predefined_metric_spec = 8;- Specified by:
hasPredefinedMetricSpecin interfaceMetricOrBuilder- Returns:
- Whether the predefinedMetricSpec field is set.
-
getPredefinedMetricSpec
The spec for a pre-defined metric.
.google.cloud.aiplatform.v1.PredefinedMetricSpec predefined_metric_spec = 8;- Specified by:
getPredefinedMetricSpecin interfaceMetricOrBuilder- Returns:
- The predefinedMetricSpec.
-
getPredefinedMetricSpecOrBuilder
The spec for a pre-defined metric.
.google.cloud.aiplatform.v1.PredefinedMetricSpec predefined_metric_spec = 8;- Specified by:
getPredefinedMetricSpecOrBuilderin interfaceMetricOrBuilder
-
hasComputationBasedMetricSpec
public boolean hasComputationBasedMetricSpec()Spec for a computation based metric.
.google.cloud.aiplatform.v1.ComputationBasedMetricSpec computation_based_metric_spec = 9;- Specified by:
hasComputationBasedMetricSpecin interfaceMetricOrBuilder- Returns:
- Whether the computationBasedMetricSpec field is set.
-
getComputationBasedMetricSpec
Spec for a computation based metric.
.google.cloud.aiplatform.v1.ComputationBasedMetricSpec computation_based_metric_spec = 9;- Specified by:
getComputationBasedMetricSpecin interfaceMetricOrBuilder- Returns:
- The computationBasedMetricSpec.
-
getComputationBasedMetricSpecOrBuilder
Spec for a computation based metric.
.google.cloud.aiplatform.v1.ComputationBasedMetricSpec computation_based_metric_spec = 9;- Specified by:
getComputationBasedMetricSpecOrBuilderin interfaceMetricOrBuilder
-
hasLlmBasedMetricSpec
public boolean hasLlmBasedMetricSpec()Spec for an LLM based metric.
.google.cloud.aiplatform.v1.LLMBasedMetricSpec llm_based_metric_spec = 10;- Specified by:
hasLlmBasedMetricSpecin interfaceMetricOrBuilder- Returns:
- Whether the llmBasedMetricSpec field is set.
-
getLlmBasedMetricSpec
Spec for an LLM based metric.
.google.cloud.aiplatform.v1.LLMBasedMetricSpec llm_based_metric_spec = 10;- Specified by:
getLlmBasedMetricSpecin interfaceMetricOrBuilder- Returns:
- The llmBasedMetricSpec.
-
getLlmBasedMetricSpecOrBuilder
Spec for an LLM based metric.
.google.cloud.aiplatform.v1.LLMBasedMetricSpec llm_based_metric_spec = 10;- Specified by:
getLlmBasedMetricSpecOrBuilderin interfaceMetricOrBuilder
-
hasPointwiseMetricSpec
public boolean hasPointwiseMetricSpec()Spec for pointwise metric.
.google.cloud.aiplatform.v1.PointwiseMetricSpec pointwise_metric_spec = 2;- Specified by:
hasPointwiseMetricSpecin interfaceMetricOrBuilder- Returns:
- Whether the pointwiseMetricSpec field is set.
-
getPointwiseMetricSpec
Spec for pointwise metric.
.google.cloud.aiplatform.v1.PointwiseMetricSpec pointwise_metric_spec = 2;- Specified by:
getPointwiseMetricSpecin interfaceMetricOrBuilder- Returns:
- The pointwiseMetricSpec.
-
getPointwiseMetricSpecOrBuilder
Spec for pointwise metric.
.google.cloud.aiplatform.v1.PointwiseMetricSpec pointwise_metric_spec = 2;- Specified by:
getPointwiseMetricSpecOrBuilderin interfaceMetricOrBuilder
-
hasPairwiseMetricSpec
public boolean hasPairwiseMetricSpec()Spec for pairwise metric.
.google.cloud.aiplatform.v1.PairwiseMetricSpec pairwise_metric_spec = 3;- Specified by:
hasPairwiseMetricSpecin interfaceMetricOrBuilder- Returns:
- Whether the pairwiseMetricSpec field is set.
-
getPairwiseMetricSpec
Spec for pairwise metric.
.google.cloud.aiplatform.v1.PairwiseMetricSpec pairwise_metric_spec = 3;- Specified by:
getPairwiseMetricSpecin interfaceMetricOrBuilder- Returns:
- The pairwiseMetricSpec.
-
getPairwiseMetricSpecOrBuilder
Spec for pairwise metric.
.google.cloud.aiplatform.v1.PairwiseMetricSpec pairwise_metric_spec = 3;- Specified by:
getPairwiseMetricSpecOrBuilderin interfaceMetricOrBuilder
-
hasExactMatchSpec
public boolean hasExactMatchSpec()Spec for exact match metric.
.google.cloud.aiplatform.v1.ExactMatchSpec exact_match_spec = 4;- Specified by:
hasExactMatchSpecin interfaceMetricOrBuilder- Returns:
- Whether the exactMatchSpec field is set.
-
getExactMatchSpec
Spec for exact match metric.
.google.cloud.aiplatform.v1.ExactMatchSpec exact_match_spec = 4;- Specified by:
getExactMatchSpecin interfaceMetricOrBuilder- Returns:
- The exactMatchSpec.
-
getExactMatchSpecOrBuilder
Spec for exact match metric.
.google.cloud.aiplatform.v1.ExactMatchSpec exact_match_spec = 4;- Specified by:
getExactMatchSpecOrBuilderin interfaceMetricOrBuilder
-
hasBleuSpec
public boolean hasBleuSpec()Spec for bleu metric.
.google.cloud.aiplatform.v1.BleuSpec bleu_spec = 5;- Specified by:
hasBleuSpecin interfaceMetricOrBuilder- Returns:
- Whether the bleuSpec field is set.
-
getBleuSpec
Spec for bleu metric.
.google.cloud.aiplatform.v1.BleuSpec bleu_spec = 5;- Specified by:
getBleuSpecin interfaceMetricOrBuilder- Returns:
- The bleuSpec.
-
getBleuSpecOrBuilder
Spec for bleu metric.
.google.cloud.aiplatform.v1.BleuSpec bleu_spec = 5;- Specified by:
getBleuSpecOrBuilderin interfaceMetricOrBuilder
-
hasRougeSpec
public boolean hasRougeSpec()Spec for rouge metric.
.google.cloud.aiplatform.v1.RougeSpec rouge_spec = 6;- Specified by:
hasRougeSpecin interfaceMetricOrBuilder- Returns:
- Whether the rougeSpec field is set.
-
getRougeSpec
Spec for rouge metric.
.google.cloud.aiplatform.v1.RougeSpec rouge_spec = 6;- Specified by:
getRougeSpecin interfaceMetricOrBuilder- Returns:
- The rougeSpec.
-
getRougeSpecOrBuilder
Spec for rouge metric.
.google.cloud.aiplatform.v1.RougeSpec rouge_spec = 6;- Specified by:
getRougeSpecOrBuilderin interfaceMetricOrBuilder
-
getAggregationMetricsList
Optional. The aggregation metrics to use.
repeated .google.cloud.aiplatform.v1.Metric.AggregationMetric aggregation_metrics = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAggregationMetricsListin interfaceMetricOrBuilder- Returns:
- A list containing the aggregationMetrics.
-
getAggregationMetricsCount
public int getAggregationMetricsCount()Optional. The aggregation metrics to use.
repeated .google.cloud.aiplatform.v1.Metric.AggregationMetric aggregation_metrics = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAggregationMetricsCountin interfaceMetricOrBuilder- Returns:
- The count of aggregationMetrics.
-
getAggregationMetrics
Optional. The aggregation metrics to use.
repeated .google.cloud.aiplatform.v1.Metric.AggregationMetric aggregation_metrics = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAggregationMetricsin interfaceMetricOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The aggregationMetrics at the given index.
-
getAggregationMetricsValueList
Optional. The aggregation metrics to use.
repeated .google.cloud.aiplatform.v1.Metric.AggregationMetric aggregation_metrics = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAggregationMetricsValueListin interfaceMetricOrBuilder- Returns:
- A list containing the enum numeric values on the wire for aggregationMetrics.
-
getAggregationMetricsValue
public int getAggregationMetricsValue(int index) Optional. The aggregation metrics to use.
repeated .google.cloud.aiplatform.v1.Metric.AggregationMetric aggregation_metrics = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAggregationMetricsValuein interfaceMetricOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of aggregationMetrics at the given index.
-
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 Metric parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Metric parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Metric parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Metric parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Metric parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Metric parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Metric parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Metric parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Metric 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 Metric.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
-