public static interface StudySpec.MetricSpecOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
StudySpec.MetricSpec.GoalType |
getGoal()
Required.
|
int |
getGoalValue()
Required.
|
String |
getMetricId()
Required.
|
com.google.protobuf.ByteString |
getMetricIdBytes()
Required.
|
StudySpec.MetricSpec.SafetyMetricConfig |
getSafetyConfig()
Used for safe search.
|
StudySpec.MetricSpec.SafetyMetricConfigOrBuilder |
getSafetyConfigOrBuilder()
Used for safe search.
|
boolean |
hasSafetyConfig()
Used for safe search.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofString getMetricId()
Required. The ID of the metric. Must not contain whitespaces and must be unique amongst all MetricSpecs.
string metric_id = 1 [(.google.api.field_behavior) = REQUIRED];com.google.protobuf.ByteString getMetricIdBytes()
Required. The ID of the metric. Must not contain whitespaces and must be unique amongst all MetricSpecs.
string metric_id = 1 [(.google.api.field_behavior) = REQUIRED];int getGoalValue()
Required. The optimization goal of the metric.
.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType goal = 2 [(.google.api.field_behavior) = REQUIRED];
StudySpec.MetricSpec.GoalType getGoal()
Required. The optimization goal of the metric.
.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType goal = 2 [(.google.api.field_behavior) = REQUIRED];
boolean hasSafetyConfig()
Used for safe search. In the case, the metric will be a safety metric. You must provide a separate metric for objective metric.
optional .google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig safety_config = 3;
StudySpec.MetricSpec.SafetyMetricConfig getSafetyConfig()
Used for safe search. In the case, the metric will be a safety metric. You must provide a separate metric for objective metric.
optional .google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig safety_config = 3;
StudySpec.MetricSpec.SafetyMetricConfigOrBuilder getSafetyConfigOrBuilder()
Used for safe search. In the case, the metric will be a safety metric. You must provide a separate metric for objective metric.
optional .google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig safety_config = 3;
Copyright © 2025 Google LLC. All rights reserved.