public static final class StudySpec.MetricSpec extends GeneratedMessageV3 implements StudySpec.MetricSpecOrBuilder
Represents a metric to optimize.
Protobuf type google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec
Static Fields
public static final int GOAL_FIELD_NUMBER
Field Value
public static final int METRIC_ID_FIELD_NUMBER
Field Value
Static Methods
public static StudySpec.MetricSpec getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static StudySpec.MetricSpec.Builder newBuilder()
Returns
public static StudySpec.MetricSpec.Builder newBuilder(StudySpec.MetricSpec prototype)
Parameter
Returns
public static StudySpec.MetricSpec parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static StudySpec.MetricSpec parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static StudySpec.MetricSpec parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static StudySpec.MetricSpec parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static StudySpec.MetricSpec parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static StudySpec.MetricSpec parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static StudySpec.MetricSpec parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static StudySpec.MetricSpec parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static StudySpec.MetricSpec parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static StudySpec.MetricSpec parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static StudySpec.MetricSpec parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static StudySpec.MetricSpec parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<StudySpec.MetricSpec> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public StudySpec.MetricSpec getDefaultInstanceForType()
Returns
public 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];
Returns
public int getGoalValue()
Required. The optimization goal of the metric.
.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType goal = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
int | The enum numeric value on the wire for goal.
|
public String 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];
Returns
Type | Description |
String | The metricId.
|
public 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];
Returns
public Parser<StudySpec.MetricSpec> getParserForType()
Returns
Overrides
public int getSerializedSize()
Returns
Overrides
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public StudySpec.MetricSpec.Builder newBuilderForType()
Returns
protected StudySpec.MetricSpec.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public StudySpec.MetricSpec.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions