Class NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec (3.46.0)

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec

Static Fields

GOAL_FIELD_NUMBER

public static final int GOAL_FIELD_NUMBER
Field Value
Type Description
int

METRIC_ID_FIELD_NUMBER

public static final int METRIC_ID_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec getDefaultInstance()
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder newBuilder()
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder

newBuilder(NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec prototype)

public static NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder newBuilder(NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec prototype)
Parameter
Name Description
prototype NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder

parseDelimitedFrom(InputStream input)

public static NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec> parser()
Returns
Type Description
Parser<MetricSpec>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec getDefaultInstanceForType()
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec

getGoal()

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
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType

The goal.

getGoalValue()

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.

getMetricId()

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.

getMetricIdBytes()

public ByteString getMetricIdBytes()

Required. The ID of the metric. Must not contain whitespaces.

string metric_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for metricId.

getParserForType()

public Parser<NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec> getParserForType()
Returns
Type Description
Parser<MetricSpec>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder newBuilderForType()
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder toBuilder()
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException