Class NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder (3.17.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder
Overrides

build()

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

buildPartial()

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

clear()

public NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder clear()
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder
Overrides

clone()

public NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder clone()
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder
Overrides

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec other)

public NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder mergeFrom(NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec other)
Parameter
NameDescription
otherNasJobSpec.MultiTrialAlgorithmSpec.MetricSpec
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueNasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType

The goal to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueString

The metricId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for metricId to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder
Overrides