Package com.google.cloud.aiplatform.v1
Class Measurement.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Measurement.Builder>
-
- com.google.cloud.aiplatform.v1.Measurement.Builder
-
- All Implemented Interfaces:
MeasurementOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Measurement
public static final class Measurement.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Measurement.Builder> implements MeasurementOrBuilder
A message representing a Measurement of a Trial. A Measurement contains the Metrics got by executing a Trial using suggested hyperparameter values.
Protobuf typegoogle.cloud.aiplatform.v1.Measurement
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Measurement.Builder
addAllMetrics(Iterable<? extends Measurement.Metric> values)
Output only.Measurement.Builder
addMetrics(int index, Measurement.Metric value)
Output only.Measurement.Builder
addMetrics(int index, Measurement.Metric.Builder builderForValue)
Output only.Measurement.Builder
addMetrics(Measurement.Metric value)
Output only.Measurement.Builder
addMetrics(Measurement.Metric.Builder builderForValue)
Output only.Measurement.Metric.Builder
addMetricsBuilder()
Output only.Measurement.Metric.Builder
addMetricsBuilder(int index)
Output only.Measurement.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Measurement
build()
Measurement
buildPartial()
Measurement.Builder
clear()
Measurement.Builder
clearElapsedDuration()
Output only.Measurement.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Measurement.Builder
clearMetrics()
Output only.Measurement.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Measurement.Builder
clearStepCount()
Output only.Measurement.Builder
clone()
Measurement
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
com.google.protobuf.Duration
getElapsedDuration()
Output only.com.google.protobuf.Duration.Builder
getElapsedDurationBuilder()
Output only.com.google.protobuf.DurationOrBuilder
getElapsedDurationOrBuilder()
Output only.Measurement.Metric
getMetrics(int index)
Output only.Measurement.Metric.Builder
getMetricsBuilder(int index)
Output only.List<Measurement.Metric.Builder>
getMetricsBuilderList()
Output only.int
getMetricsCount()
Output only.List<Measurement.Metric>
getMetricsList()
Output only.Measurement.MetricOrBuilder
getMetricsOrBuilder(int index)
Output only.List<? extends Measurement.MetricOrBuilder>
getMetricsOrBuilderList()
Output only.long
getStepCount()
Output only.boolean
hasElapsedDuration()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Measurement.Builder
mergeElapsedDuration(com.google.protobuf.Duration value)
Output only.Measurement.Builder
mergeFrom(Measurement other)
Measurement.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Measurement.Builder
mergeFrom(com.google.protobuf.Message other)
Measurement.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Measurement.Builder
removeMetrics(int index)
Output only.Measurement.Builder
setElapsedDuration(com.google.protobuf.Duration value)
Output only.Measurement.Builder
setElapsedDuration(com.google.protobuf.Duration.Builder builderForValue)
Output only.Measurement.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Measurement.Builder
setMetrics(int index, Measurement.Metric value)
Output only.Measurement.Builder
setMetrics(int index, Measurement.Metric.Builder builderForValue)
Output only.Measurement.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Measurement.Builder
setStepCount(long value)
Output only.Measurement.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Measurement.Builder>
-
clear
public Measurement.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Measurement.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Measurement.Builder>
-
getDefaultInstanceForType
public Measurement getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Measurement build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Measurement buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Measurement.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Measurement.Builder>
-
setField
public Measurement.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Measurement.Builder>
-
clearField
public Measurement.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Measurement.Builder>
-
clearOneof
public Measurement.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Measurement.Builder>
-
setRepeatedField
public Measurement.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Measurement.Builder>
-
addRepeatedField
public Measurement.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Measurement.Builder>
-
mergeFrom
public Measurement.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Measurement.Builder>
-
mergeFrom
public Measurement.Builder mergeFrom(Measurement other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Measurement.Builder>
-
mergeFrom
public Measurement.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Measurement.Builder>
- Throws:
IOException
-
hasElapsedDuration
public boolean hasElapsedDuration()
Output only. Time that the Trial has been running at the point of this Measurement.
.google.protobuf.Duration elapsed_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasElapsedDuration
in interfaceMeasurementOrBuilder
- Returns:
- Whether the elapsedDuration field is set.
-
getElapsedDuration
public com.google.protobuf.Duration getElapsedDuration()
Output only. Time that the Trial has been running at the point of this Measurement.
.google.protobuf.Duration elapsed_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getElapsedDuration
in interfaceMeasurementOrBuilder
- Returns:
- The elapsedDuration.
-
setElapsedDuration
public Measurement.Builder setElapsedDuration(com.google.protobuf.Duration value)
Output only. Time that the Trial has been running at the point of this Measurement.
.google.protobuf.Duration elapsed_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setElapsedDuration
public Measurement.Builder setElapsedDuration(com.google.protobuf.Duration.Builder builderForValue)
Output only. Time that the Trial has been running at the point of this Measurement.
.google.protobuf.Duration elapsed_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeElapsedDuration
public Measurement.Builder mergeElapsedDuration(com.google.protobuf.Duration value)
Output only. Time that the Trial has been running at the point of this Measurement.
.google.protobuf.Duration elapsed_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearElapsedDuration
public Measurement.Builder clearElapsedDuration()
Output only. Time that the Trial has been running at the point of this Measurement.
.google.protobuf.Duration elapsed_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getElapsedDurationBuilder
public com.google.protobuf.Duration.Builder getElapsedDurationBuilder()
Output only. Time that the Trial has been running at the point of this Measurement.
.google.protobuf.Duration elapsed_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getElapsedDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getElapsedDurationOrBuilder()
Output only. Time that the Trial has been running at the point of this Measurement.
.google.protobuf.Duration elapsed_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getElapsedDurationOrBuilder
in interfaceMeasurementOrBuilder
-
getStepCount
public long getStepCount()
Output only. The number of steps the machine learning model has been trained for. Must be non-negative.
int64 step_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getStepCount
in interfaceMeasurementOrBuilder
- Returns:
- The stepCount.
-
setStepCount
public Measurement.Builder setStepCount(long value)
Output only. The number of steps the machine learning model has been trained for. Must be non-negative.
int64 step_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The stepCount to set.- Returns:
- This builder for chaining.
-
clearStepCount
public Measurement.Builder clearStepCount()
Output only. The number of steps the machine learning model has been trained for. Must be non-negative.
int64 step_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
getMetricsList
public List<Measurement.Metric> getMetricsList()
Output only. A list of metrics got by evaluating the objective functions using suggested Parameter values.
repeated .google.cloud.aiplatform.v1.Measurement.Metric metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getMetricsList
in interfaceMeasurementOrBuilder
-
getMetricsCount
public int getMetricsCount()
Output only. A list of metrics got by evaluating the objective functions using suggested Parameter values.
repeated .google.cloud.aiplatform.v1.Measurement.Metric metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getMetricsCount
in interfaceMeasurementOrBuilder
-
getMetrics
public Measurement.Metric getMetrics(int index)
Output only. A list of metrics got by evaluating the objective functions using suggested Parameter values.
repeated .google.cloud.aiplatform.v1.Measurement.Metric metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getMetrics
in interfaceMeasurementOrBuilder
-
setMetrics
public Measurement.Builder setMetrics(int index, Measurement.Metric value)
Output only. A list of metrics got by evaluating the objective functions using suggested Parameter values.
repeated .google.cloud.aiplatform.v1.Measurement.Metric metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setMetrics
public Measurement.Builder setMetrics(int index, Measurement.Metric.Builder builderForValue)
Output only. A list of metrics got by evaluating the objective functions using suggested Parameter values.
repeated .google.cloud.aiplatform.v1.Measurement.Metric metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
addMetrics
public Measurement.Builder addMetrics(Measurement.Metric value)
Output only. A list of metrics got by evaluating the objective functions using suggested Parameter values.
repeated .google.cloud.aiplatform.v1.Measurement.Metric metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
addMetrics
public Measurement.Builder addMetrics(int index, Measurement.Metric value)
Output only. A list of metrics got by evaluating the objective functions using suggested Parameter values.
repeated .google.cloud.aiplatform.v1.Measurement.Metric metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
addMetrics
public Measurement.Builder addMetrics(Measurement.Metric.Builder builderForValue)
Output only. A list of metrics got by evaluating the objective functions using suggested Parameter values.
repeated .google.cloud.aiplatform.v1.Measurement.Metric metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
addMetrics
public Measurement.Builder addMetrics(int index, Measurement.Metric.Builder builderForValue)
Output only. A list of metrics got by evaluating the objective functions using suggested Parameter values.
repeated .google.cloud.aiplatform.v1.Measurement.Metric metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
addAllMetrics
public Measurement.Builder addAllMetrics(Iterable<? extends Measurement.Metric> values)
Output only. A list of metrics got by evaluating the objective functions using suggested Parameter values.
repeated .google.cloud.aiplatform.v1.Measurement.Metric metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearMetrics
public Measurement.Builder clearMetrics()
Output only. A list of metrics got by evaluating the objective functions using suggested Parameter values.
repeated .google.cloud.aiplatform.v1.Measurement.Metric metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
removeMetrics
public Measurement.Builder removeMetrics(int index)
Output only. A list of metrics got by evaluating the objective functions using suggested Parameter values.
repeated .google.cloud.aiplatform.v1.Measurement.Metric metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getMetricsBuilder
public Measurement.Metric.Builder getMetricsBuilder(int index)
Output only. A list of metrics got by evaluating the objective functions using suggested Parameter values.
repeated .google.cloud.aiplatform.v1.Measurement.Metric metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getMetricsOrBuilder
public Measurement.MetricOrBuilder getMetricsOrBuilder(int index)
Output only. A list of metrics got by evaluating the objective functions using suggested Parameter values.
repeated .google.cloud.aiplatform.v1.Measurement.Metric metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getMetricsOrBuilder
in interfaceMeasurementOrBuilder
-
getMetricsOrBuilderList
public List<? extends Measurement.MetricOrBuilder> getMetricsOrBuilderList()
Output only. A list of metrics got by evaluating the objective functions using suggested Parameter values.
repeated .google.cloud.aiplatform.v1.Measurement.Metric metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getMetricsOrBuilderList
in interfaceMeasurementOrBuilder
-
addMetricsBuilder
public Measurement.Metric.Builder addMetricsBuilder()
Output only. A list of metrics got by evaluating the objective functions using suggested Parameter values.
repeated .google.cloud.aiplatform.v1.Measurement.Metric metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
addMetricsBuilder
public Measurement.Metric.Builder addMetricsBuilder(int index)
Output only. A list of metrics got by evaluating the objective functions using suggested Parameter values.
repeated .google.cloud.aiplatform.v1.Measurement.Metric metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getMetricsBuilderList
public List<Measurement.Metric.Builder> getMetricsBuilderList()
Output only. A list of metrics got by evaluating the objective functions using suggested Parameter values.
repeated .google.cloud.aiplatform.v1.Measurement.Metric metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setUnknownFields
public final Measurement.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Measurement.Builder>
-
mergeUnknownFields
public final Measurement.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Measurement.Builder>
-
-