@Generated public final class Metric extends com.google.protobuf.GeneratedMessage implements MetricOrBuilder
The metric used for running evaluations.Protobuf type
google.cloud.aiplatform.v1beta1.Metric| Modifier and Type | Class and Description |
|---|---|
static class |
Metric.AggregationMetric
The per-metric statistics on evaluation results supported by
`EvaluationService.EvaluateDataset`.
|
static class |
Metric.Builder
The metric used for running evaluations.
|
static class |
Metric.MetricSpecCase |
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 |
AGGREGATION_METRICS_FIELD_NUMBER |
static int |
BLEU_SPEC_FIELD_NUMBER |
static int |
COMPUTATION_BASED_METRIC_SPEC_FIELD_NUMBER |
static int |
EXACT_MATCH_SPEC_FIELD_NUMBER |
static int |
LLM_BASED_METRIC_SPEC_FIELD_NUMBER |
static int |
PAIRWISE_METRIC_SPEC_FIELD_NUMBER |
static int |
POINTWISE_METRIC_SPEC_FIELD_NUMBER |
static int |
PREDEFINED_METRIC_SPEC_FIELD_NUMBER |
static int |
ROUGE_SPEC_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Metric.AggregationMetric |
getAggregationMetrics(int index)
Optional.
|
int |
getAggregationMetricsCount()
Optional.
|
List<Metric.AggregationMetric> |
getAggregationMetricsList()
Optional.
|
int |
getAggregationMetricsValue(int index)
Optional.
|
List<Integer> |
getAggregationMetricsValueList()
Optional.
|
BleuSpec |
getBleuSpec()
Spec for bleu metric.
|
BleuSpecOrBuilder |
getBleuSpecOrBuilder()
Spec for bleu metric.
|
ComputationBasedMetricSpec |
getComputationBasedMetricSpec()
Spec for a computation based metric.
|
ComputationBasedMetricSpecOrBuilder |
getComputationBasedMetricSpecOrBuilder()
Spec for a computation based metric.
|
static Metric |
getDefaultInstance() |
Metric |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
ExactMatchSpec |
getExactMatchSpec()
Spec for exact match metric.
|
ExactMatchSpecOrBuilder |
getExactMatchSpecOrBuilder()
Spec for exact match metric.
|
LLMBasedMetricSpec |
getLlmBasedMetricSpec()
Spec for an LLM based metric.
|
LLMBasedMetricSpecOrBuilder |
getLlmBasedMetricSpecOrBuilder()
Spec for an LLM based metric.
|
Metric.MetricSpecCase |
getMetricSpecCase() |
PairwiseMetricSpec |
getPairwiseMetricSpec()
Spec for pairwise metric.
|
PairwiseMetricSpecOrBuilder |
getPairwiseMetricSpecOrBuilder()
Spec for pairwise metric.
|
com.google.protobuf.Parser<Metric> |
getParserForType() |
PointwiseMetricSpec |
getPointwiseMetricSpec()
Spec for pointwise metric.
|
PointwiseMetricSpecOrBuilder |
getPointwiseMetricSpecOrBuilder()
Spec for pointwise metric.
|
PredefinedMetricSpec |
getPredefinedMetricSpec()
The spec for a pre-defined metric.
|
PredefinedMetricSpecOrBuilder |
getPredefinedMetricSpecOrBuilder()
The spec for a pre-defined metric.
|
RougeSpec |
getRougeSpec()
Spec for rouge metric.
|
RougeSpecOrBuilder |
getRougeSpecOrBuilder()
Spec for rouge metric.
|
int |
getSerializedSize() |
boolean |
hasBleuSpec()
Spec for bleu metric.
|
boolean |
hasComputationBasedMetricSpec()
Spec for a computation based metric.
|
boolean |
hasExactMatchSpec()
Spec for exact match metric.
|
int |
hashCode() |
boolean |
hasLlmBasedMetricSpec()
Spec for an LLM based metric.
|
boolean |
hasPairwiseMetricSpec()
Spec for pairwise metric.
|
boolean |
hasPointwiseMetricSpec()
Spec for pointwise metric.
|
boolean |
hasPredefinedMetricSpec()
The spec for a pre-defined metric.
|
boolean |
hasRougeSpec()
Spec for rouge metric.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Metric.Builder |
newBuilder() |
static Metric.Builder |
newBuilder(Metric prototype) |
Metric.Builder |
newBuilderForType() |
protected Metric.Builder |
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) |
static Metric |
parseDelimitedFrom(InputStream input) |
static Metric |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Metric |
parseFrom(byte[] data) |
static Metric |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Metric |
parseFrom(ByteBuffer data) |
static Metric |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Metric |
parseFrom(com.google.protobuf.ByteString data) |
static Metric |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Metric |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Metric |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Metric |
parseFrom(InputStream input) |
static Metric |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Metric> |
parser() |
Metric.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 PREDEFINED_METRIC_SPEC_FIELD_NUMBER
public static final int COMPUTATION_BASED_METRIC_SPEC_FIELD_NUMBER
public static final int LLM_BASED_METRIC_SPEC_FIELD_NUMBER
public static final int POINTWISE_METRIC_SPEC_FIELD_NUMBER
public static final int PAIRWISE_METRIC_SPEC_FIELD_NUMBER
public static final int EXACT_MATCH_SPEC_FIELD_NUMBER
public static final int BLEU_SPEC_FIELD_NUMBER
public static final int ROUGE_SPEC_FIELD_NUMBER
public static final int AGGREGATION_METRICS_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 Metric.MetricSpecCase getMetricSpecCase()
getMetricSpecCase in interface MetricOrBuilderpublic boolean hasPredefinedMetricSpec()
The spec for a pre-defined metric.
.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_metric_spec = 8;hasPredefinedMetricSpec in interface MetricOrBuilderpublic PredefinedMetricSpec getPredefinedMetricSpec()
The spec for a pre-defined metric.
.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_metric_spec = 8;getPredefinedMetricSpec in interface MetricOrBuilderpublic PredefinedMetricSpecOrBuilder getPredefinedMetricSpecOrBuilder()
The spec for a pre-defined metric.
.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_metric_spec = 8;getPredefinedMetricSpecOrBuilder in interface MetricOrBuilderpublic boolean hasComputationBasedMetricSpec()
Spec for a computation based metric.
.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec computation_based_metric_spec = 9;
hasComputationBasedMetricSpec in interface MetricOrBuilderpublic ComputationBasedMetricSpec getComputationBasedMetricSpec()
Spec for a computation based metric.
.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec computation_based_metric_spec = 9;
getComputationBasedMetricSpec in interface MetricOrBuilderpublic ComputationBasedMetricSpecOrBuilder getComputationBasedMetricSpecOrBuilder()
Spec for a computation based metric.
.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec computation_based_metric_spec = 9;
getComputationBasedMetricSpecOrBuilder in interface MetricOrBuilderpublic boolean hasLlmBasedMetricSpec()
Spec for an LLM based metric.
.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec llm_based_metric_spec = 10;hasLlmBasedMetricSpec in interface MetricOrBuilderpublic LLMBasedMetricSpec getLlmBasedMetricSpec()
Spec for an LLM based metric.
.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec llm_based_metric_spec = 10;getLlmBasedMetricSpec in interface MetricOrBuilderpublic LLMBasedMetricSpecOrBuilder getLlmBasedMetricSpecOrBuilder()
Spec for an LLM based metric.
.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec llm_based_metric_spec = 10;getLlmBasedMetricSpecOrBuilder in interface MetricOrBuilderpublic boolean hasPointwiseMetricSpec()
Spec for pointwise metric.
.google.cloud.aiplatform.v1beta1.PointwiseMetricSpec pointwise_metric_spec = 2;hasPointwiseMetricSpec in interface MetricOrBuilderpublic PointwiseMetricSpec getPointwiseMetricSpec()
Spec for pointwise metric.
.google.cloud.aiplatform.v1beta1.PointwiseMetricSpec pointwise_metric_spec = 2;getPointwiseMetricSpec in interface MetricOrBuilderpublic PointwiseMetricSpecOrBuilder getPointwiseMetricSpecOrBuilder()
Spec for pointwise metric.
.google.cloud.aiplatform.v1beta1.PointwiseMetricSpec pointwise_metric_spec = 2;getPointwiseMetricSpecOrBuilder in interface MetricOrBuilderpublic boolean hasPairwiseMetricSpec()
Spec for pairwise metric.
.google.cloud.aiplatform.v1beta1.PairwiseMetricSpec pairwise_metric_spec = 3;hasPairwiseMetricSpec in interface MetricOrBuilderpublic PairwiseMetricSpec getPairwiseMetricSpec()
Spec for pairwise metric.
.google.cloud.aiplatform.v1beta1.PairwiseMetricSpec pairwise_metric_spec = 3;getPairwiseMetricSpec in interface MetricOrBuilderpublic PairwiseMetricSpecOrBuilder getPairwiseMetricSpecOrBuilder()
Spec for pairwise metric.
.google.cloud.aiplatform.v1beta1.PairwiseMetricSpec pairwise_metric_spec = 3;getPairwiseMetricSpecOrBuilder in interface MetricOrBuilderpublic boolean hasExactMatchSpec()
Spec for exact match metric.
.google.cloud.aiplatform.v1beta1.ExactMatchSpec exact_match_spec = 4;hasExactMatchSpec in interface MetricOrBuilderpublic ExactMatchSpec getExactMatchSpec()
Spec for exact match metric.
.google.cloud.aiplatform.v1beta1.ExactMatchSpec exact_match_spec = 4;getExactMatchSpec in interface MetricOrBuilderpublic ExactMatchSpecOrBuilder getExactMatchSpecOrBuilder()
Spec for exact match metric.
.google.cloud.aiplatform.v1beta1.ExactMatchSpec exact_match_spec = 4;getExactMatchSpecOrBuilder in interface MetricOrBuilderpublic boolean hasBleuSpec()
Spec for bleu metric.
.google.cloud.aiplatform.v1beta1.BleuSpec bleu_spec = 5;hasBleuSpec in interface MetricOrBuilderpublic BleuSpec getBleuSpec()
Spec for bleu metric.
.google.cloud.aiplatform.v1beta1.BleuSpec bleu_spec = 5;getBleuSpec in interface MetricOrBuilderpublic BleuSpecOrBuilder getBleuSpecOrBuilder()
Spec for bleu metric.
.google.cloud.aiplatform.v1beta1.BleuSpec bleu_spec = 5;getBleuSpecOrBuilder in interface MetricOrBuilderpublic boolean hasRougeSpec()
Spec for rouge metric.
.google.cloud.aiplatform.v1beta1.RougeSpec rouge_spec = 6;hasRougeSpec in interface MetricOrBuilderpublic RougeSpec getRougeSpec()
Spec for rouge metric.
.google.cloud.aiplatform.v1beta1.RougeSpec rouge_spec = 6;getRougeSpec in interface MetricOrBuilderpublic RougeSpecOrBuilder getRougeSpecOrBuilder()
Spec for rouge metric.
.google.cloud.aiplatform.v1beta1.RougeSpec rouge_spec = 6;getRougeSpecOrBuilder in interface MetricOrBuilderpublic List<Metric.AggregationMetric> getAggregationMetricsList()
Optional. The aggregation metrics to use.
repeated .google.cloud.aiplatform.v1beta1.Metric.AggregationMetric aggregation_metrics = 1 [(.google.api.field_behavior) = OPTIONAL];
getAggregationMetricsList in interface MetricOrBuilderpublic int getAggregationMetricsCount()
Optional. The aggregation metrics to use.
repeated .google.cloud.aiplatform.v1beta1.Metric.AggregationMetric aggregation_metrics = 1 [(.google.api.field_behavior) = OPTIONAL];
getAggregationMetricsCount in interface MetricOrBuilderpublic Metric.AggregationMetric getAggregationMetrics(int index)
Optional. The aggregation metrics to use.
repeated .google.cloud.aiplatform.v1beta1.Metric.AggregationMetric aggregation_metrics = 1 [(.google.api.field_behavior) = OPTIONAL];
getAggregationMetrics in interface MetricOrBuilderindex - The index of the element to return.public List<Integer> getAggregationMetricsValueList()
Optional. The aggregation metrics to use.
repeated .google.cloud.aiplatform.v1beta1.Metric.AggregationMetric aggregation_metrics = 1 [(.google.api.field_behavior) = OPTIONAL];
getAggregationMetricsValueList in interface MetricOrBuilderpublic int getAggregationMetricsValue(int index)
Optional. The aggregation metrics to use.
repeated .google.cloud.aiplatform.v1beta1.Metric.AggregationMetric aggregation_metrics = 1 [(.google.api.field_behavior) = OPTIONAL];
getAggregationMetricsValue in interface MetricOrBuilderindex - The index of the value to return.public 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 Metric parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Metric parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Metric parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Metric parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Metric parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Metric parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Metric parseFrom(InputStream input) throws IOException
IOExceptionpublic static Metric parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Metric parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Metric parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Metric parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Metric parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Metric.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Metric.Builder newBuilder()
public static Metric.Builder newBuilder(Metric prototype)
public Metric.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Metric.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.AbstractMessagepublic static Metric getDefaultInstance()
public static com.google.protobuf.Parser<Metric> parser()
public com.google.protobuf.Parser<Metric> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic Metric getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2026 Google LLC. All rights reserved.