public static final class StudySpec.MetricSpec.Builder extends GeneratedMessageV3.Builder<StudySpec.MetricSpec.Builder> implements StudySpec.MetricSpecOrBuilder
Represents a metric to optimize.
Protobuf type google.cloud.aiplatform.v1.StudySpec.MetricSpec
Methods
public StudySpec.MetricSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public StudySpec.MetricSpec build()
Returns
public StudySpec.MetricSpec buildPartial()
Returns
public StudySpec.MetricSpec.Builder clear()
Returns
Overrides
public StudySpec.MetricSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public StudySpec.MetricSpec.Builder clearGoal()
Required. The optimization goal of the metric.
.google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType goal = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
public StudySpec.MetricSpec.Builder clearMetricId()
Required. The ID of the metric. Must not contain whitespaces and must be unique
amongst all MetricSpecs.
string metric_id = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
public StudySpec.MetricSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public StudySpec.MetricSpec.Builder clone()
Returns
Overrides
public StudySpec.MetricSpec getDefaultInstanceForType()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public StudySpec.MetricSpec.GoalType getGoal()
Required. The optimization goal of the metric.
.google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType goal = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
public int getGoalValue()
Required. The optimization goal of the metric.
.google.cloud.aiplatform.v1.StudySpec.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 and must be unique
amongst all MetricSpecs.
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 and must be unique
amongst all MetricSpecs.
string metric_id = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public StudySpec.MetricSpec.Builder mergeFrom(StudySpec.MetricSpec other)
Parameter
Returns
public StudySpec.MetricSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public StudySpec.MetricSpec.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final StudySpec.MetricSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public StudySpec.MetricSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public StudySpec.MetricSpec.Builder setGoal(StudySpec.MetricSpec.GoalType value)
Required. The optimization goal of the metric.
.google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType goal = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
public StudySpec.MetricSpec.Builder setGoalValue(int value)
Required. The optimization goal of the metric.
.google.cloud.aiplatform.v1.StudySpec.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
public StudySpec.MetricSpec.Builder setMetricId(String value)
Required. The ID of the metric. Must not contain whitespaces and must be unique
amongst all MetricSpecs.
string metric_id = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name | Description |
value | String
The metricId to set.
|
Returns
public StudySpec.MetricSpec.Builder setMetricIdBytes(ByteString value)
Required. The ID of the metric. Must not contain whitespaces and must be unique
amongst all MetricSpecs.
string metric_id = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name | Description |
value | ByteString
The bytes for metricId to set.
|
Returns
public StudySpec.MetricSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final StudySpec.MetricSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides