public final class Metric extends com.google.protobuf.GeneratedMessageV3 implements MetricOrBuilder
The metric used for dataset level evaluation.Protobuf type
google.cloud.aiplatform.v1beta1.Metric| Modifier and Type | Class and Description |
|---|---|
static class |
Metric.AggregationMetric
The aggregation metrics supported by EvaluationService.EvaluateDataset.
|
static class |
Metric.Builder
The metric used for dataset level evaluation.
|
static class |
Metric.MetricSpecCase |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
AGGREGATION_METRICS_FIELD_NUMBER |
static int |
BLEU_SPEC_FIELD_NUMBER |
static int |
EXACT_MATCH_SPEC_FIELD_NUMBER |
static int |
PAIRWISE_METRIC_SPEC_FIELD_NUMBER |
static int |
POINTWISE_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.
|
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.
|
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.
|
RougeSpec |
getRougeSpec()
Spec for rouge metric.
|
RougeSpecOrBuilder |
getRougeSpecOrBuilder()
Spec for rouge metric.
|
int |
getSerializedSize() |
boolean |
hasBleuSpec()
Spec for bleu metric.
|
boolean |
hasExactMatchSpec()
Spec for exact match metric.
|
int |
hashCode() |
boolean |
hasPairwiseMetricSpec()
Spec for pairwise metric.
|
boolean |
hasPointwiseMetricSpec()
Spec for pointwise metric.
|
boolean |
hasRougeSpec()
Spec for rouge metric.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Metric.Builder |
newBuilder() |
static Metric.Builder |
newBuilder(Metric prototype) |
Metric.Builder |
newBuilderForType() |
protected Metric.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
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, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public Metric.MetricSpecCase getMetricSpecCase()
getMetricSpecCase 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.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public 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.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public 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.GeneratedMessageV3public Metric getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.