public static enum StudySpec.MetricSpec.GoalType extends Enum<StudySpec.MetricSpec.GoalType> implements com.google.protobuf.ProtocolMessageEnum
The available types of optimization goals.Protobuf enum
google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType| Enum Constant and Description |
|---|
GOAL_TYPE_UNSPECIFIED
Goal Type will default to maximize.
|
MAXIMIZE
Maximize the goal metric.
|
MINIMIZE
Minimize the goal metric.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
GOAL_TYPE_UNSPECIFIED_VALUE
Goal Type will default to maximize.
|
static int |
MAXIMIZE_VALUE
Maximize the goal metric.
|
static int |
MINIMIZE_VALUE
Minimize the goal metric.
|
| Modifier and Type | Method and Description |
|---|---|
static StudySpec.MetricSpec.GoalType |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<StudySpec.MetricSpec.GoalType> |
internalGetValueMap() |
static StudySpec.MetricSpec.GoalType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static StudySpec.MetricSpec.GoalType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static StudySpec.MetricSpec.GoalType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StudySpec.MetricSpec.GoalType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StudySpec.MetricSpec.GoalType GOAL_TYPE_UNSPECIFIED
Goal Type will default to maximize.
GOAL_TYPE_UNSPECIFIED = 0;public static final StudySpec.MetricSpec.GoalType MAXIMIZE
Maximize the goal metric.
MAXIMIZE = 1;public static final StudySpec.MetricSpec.GoalType MINIMIZE
Minimize the goal metric.
MINIMIZE = 2;public static final StudySpec.MetricSpec.GoalType UNRECOGNIZED
public static final int GOAL_TYPE_UNSPECIFIED_VALUE
Goal Type will default to maximize.
GOAL_TYPE_UNSPECIFIED = 0;public static final int MAXIMIZE_VALUE
Maximize the goal metric.
MAXIMIZE = 1;public static final int MINIMIZE_VALUE
Minimize the goal metric.
MINIMIZE = 2;public static StudySpec.MetricSpec.GoalType[] values()
for (StudySpec.MetricSpec.GoalType c : StudySpec.MetricSpec.GoalType.values()) System.out.println(c);
public static StudySpec.MetricSpec.GoalType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static StudySpec.MetricSpec.GoalType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static StudySpec.MetricSpec.GoalType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<StudySpec.MetricSpec.GoalType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static StudySpec.MetricSpec.GoalType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.