Class NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec (3.22.0)

public static final class NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec extends GeneratedMessageV3 implements NasJobSpec.MultiTrialAlgorithmSpec.MetricSpecOrBuilder

Represents a metric to optimize.

Protobuf type google.cloud.aiplatform.v1beta1.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
TypeDescription
int

METRIC_ID_FIELD_NUMBER

public static final int METRIC_ID_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec getDefaultInstance()
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder newBuilder()
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder

newBuilder(NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec prototype)

public static NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder newBuilder(NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec prototype)
Parameter
NameDescription
prototypeNasJobSpec.MultiTrialAlgorithmSpec.MetricSpec
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder

parseDelimitedFrom(InputStream input)

public static NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec getDefaultInstanceForType()
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec

getGoal()

public NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType getGoal()

Required. The optimization goal of the metric.

.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType goal = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType

The goal.

getGoalValue()

public int getGoalValue()

Required. The optimization goal of the metric.

.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType goal = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for metricId.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder newBuilderForType()
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder toBuilder()
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException