Class NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder (3.55.0)

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

Represents a metric to optimize.

Protobuf type google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder
Overrides

build()

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

buildPartial()

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

clear()

public NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder clear()
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder
Overrides

clearGoal()

public NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder clearGoal()

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.Builder

This builder for chaining.

clearMetricId()

public NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder clearMetricId()

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

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

Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder
Overrides

clone()

public NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder clone()
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder
Overrides

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec other)

public NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder mergeFrom(NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec other)
Parameter
Name Description
other NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder
Overrides

setGoal(NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType value)

public NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder setGoal(NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType value)

Required. The optimization goal of the metric.

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

Parameter
Name Description
value NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType

The goal to set.

Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder

This builder for chaining.

setGoalValue(int value)

public NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder setGoalValue(int value)

Required. The optimization goal of the metric.

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

Parameter
Name Description
value int

The enum numeric value on the wire for goal to set.

Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder

This builder for chaining.

setMetricId(String value)

public NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder setMetricId(String value)

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

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

Parameter
Name Description
value String

The metricId to set.

Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder

This builder for chaining.

setMetricIdBytes(ByteString value)

public NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder setMetricIdBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for metricId to set.

Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder
Overrides