Class 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 type google.cloud.aiplatform.v1beta1.Measurement
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Measurement.Builder>
      • clear

        public Measurement.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Measurement.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Measurement.Builder>
      • getDefaultInstanceForType

        public Measurement getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Measurement build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Measurement buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Measurement.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Measurement.Builder>
      • setField

        public Measurement.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                            Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Measurement.Builder>
      • clearField

        public Measurement.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Measurement.Builder>
      • clearOneof

        public Measurement.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Measurement.Builder>
      • addRepeatedField

        public Measurement.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Measurement.Builder>
      • mergeFrom

        public Measurement.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Measurement.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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 interface MeasurementOrBuilder
        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 interface MeasurementOrBuilder
        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 interface MeasurementOrBuilder
      • 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 interface MeasurementOrBuilder
        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.v1beta1.Measurement.Metric metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getMetricsList in interface MeasurementOrBuilder
      • getMetricsCount

        public int getMetricsCount()
         Output only. A list of metrics got by evaluating the objective functions
         using suggested Parameter values.
         
        repeated .google.cloud.aiplatform.v1beta1.Measurement.Metric metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getMetricsCount in interface MeasurementOrBuilder
      • 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.v1beta1.Measurement.Metric metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getMetrics in interface MeasurementOrBuilder
      • 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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.Measurement.Metric metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getMetricsOrBuilder in interface MeasurementOrBuilder
      • 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.v1beta1.Measurement.Metric metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getMetricsOrBuilderList in interface MeasurementOrBuilder
      • 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.v1beta1.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.v1beta1.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.v1beta1.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Measurement.Builder>
      • mergeUnknownFields

        public final Measurement.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Measurement.Builder>