Send feedback
Class StudySpec.MetricSpec.Builder (3.0.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.0.0 keyboard_arrow_down
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.v1beta1.StudySpec.MetricSpec
Static Methods
public static final Descriptors . Descriptor getDescriptor ()
Returns
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.v1beta1.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 Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
public StudySpec . MetricSpec . GoalType getGoal ()
Required. The optimization goal of the metric.
.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType goal = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
public int getGoalValue ()
Required. The optimization goal of the metric.
.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]