public static final class NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec extends GeneratedMessageV3 implements NasJobSpec.MultiTrialAlgorithmSpec.MetricSpecOrBuilder
Represents a metric to optimize.
Protobuf type
google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.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 NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder newBuilder()
Returns
public static NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder newBuilder(NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec prototype)
Parameter
Returns
public static NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec getDefaultInstanceForType()
Returns
public NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType getGoal()
Required. The optimization goal of the metric.
.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType goal = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
public int getGoalValue()
Required. The optimization goal of the metric.
.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.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.
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.
string metric_id = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
public Parser<NasJobSpec.MultiTrialAlgorithmSpec.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 NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder newBuilderForType()
Returns
protected NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions