StudySpec_MetricSpec class final
Represents a metric to optimize.
- Inheritance
-
- Object
- ProtoMessage
- StudySpec_MetricSpec
Constructors
- StudySpec_MetricSpec({required String metricId, required StudySpec_MetricSpec_GoalType goal, StudySpec_MetricSpec_SafetyMetricConfig? safetyConfig})
- StudySpec_MetricSpec.fromJson(Object? j)
-
factory
Properties
- goal → StudySpec_MetricSpec_GoalType
-
Required. The optimization goal of the metric.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- metricId → String
-
Required. The ID of the metric. Must not contain whitespaces and must be
unique amongst all MetricSpecs.
final
- qualifiedName → String
-
The fully qualified name of this message, i.e.,
google.protobuf.Durationorgoogle.rpc.ErrorInfo.finalinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- safetyConfig → StudySpec_MetricSpec_SafetyMetricConfig?
-
Used for safe search. In the case, the metric will be a safety
metric. You must provide a separate metric for objective metric.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Object -
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- fullyQualifiedName → const String