Class BoundingBoxMetricsEntry.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BoundingBoxMetricsEntry.Builder>
com.google.cloud.automl.v1.BoundingBoxMetricsEntry.Builder
All Implemented Interfaces:
BoundingBoxMetricsEntryOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
BoundingBoxMetricsEntry

public static final class BoundingBoxMetricsEntry.Builder extends com.google.protobuf.GeneratedMessage.Builder<BoundingBoxMetricsEntry.Builder> implements BoundingBoxMetricsEntryOrBuilder
 Bounding box matching model metrics for a single intersection-over-union
 threshold and multiple label match confidence thresholds.
 
Protobuf type google.cloud.automl.v1.BoundingBoxMetricsEntry
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<BoundingBoxMetricsEntry.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.GeneratedMessage.Builder<BoundingBoxMetricsEntry.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.GeneratedMessage.Builder<BoundingBoxMetricsEntry.Builder>
    • getDefaultInstanceForType

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

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

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

      public BoundingBoxMetricsEntry.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<BoundingBoxMetricsEntry.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<BoundingBoxMetricsEntry.Builder>
    • mergeFrom

      public BoundingBoxMetricsEntry.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<BoundingBoxMetricsEntry.Builder>
      Throws:
      IOException
    • getIouThreshold

      public float getIouThreshold()
       Output only. The intersection-over-union threshold value used to compute
       this metrics entry.
       
      float iou_threshold = 1;
      Specified by:
      getIouThreshold in interface BoundingBoxMetricsEntryOrBuilder
      Returns:
      The iouThreshold.
    • setIouThreshold

      public BoundingBoxMetricsEntry.Builder setIouThreshold(float value)
       Output only. The intersection-over-union threshold value used to compute
       this metrics entry.
       
      float iou_threshold = 1;
      Parameters:
      value - The iouThreshold to set.
      Returns:
      This builder for chaining.
    • clearIouThreshold

      public BoundingBoxMetricsEntry.Builder clearIouThreshold()
       Output only. The intersection-over-union threshold value used to compute
       this metrics entry.
       
      float iou_threshold = 1;
      Returns:
      This builder for chaining.
    • getMeanAveragePrecision

      public float getMeanAveragePrecision()
       Output only. The mean average precision, most often close to au_prc.
       
      float mean_average_precision = 2;
      Specified by:
      getMeanAveragePrecision in interface BoundingBoxMetricsEntryOrBuilder
      Returns:
      The meanAveragePrecision.
    • setMeanAveragePrecision

      public BoundingBoxMetricsEntry.Builder setMeanAveragePrecision(float value)
       Output only. The mean average precision, most often close to au_prc.
       
      float mean_average_precision = 2;
      Parameters:
      value - The meanAveragePrecision to set.
      Returns:
      This builder for chaining.
    • clearMeanAveragePrecision

      public BoundingBoxMetricsEntry.Builder clearMeanAveragePrecision()
       Output only. The mean average precision, most often close to au_prc.
       
      float mean_average_precision = 2;
      Returns:
      This builder for chaining.
    • getConfidenceMetricsEntriesList

      public List<BoundingBoxMetricsEntry.ConfidenceMetricsEntry> getConfidenceMetricsEntriesList()
       Output only. Metrics for each label-match confidence_threshold from
       0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
       derived from them.
       
      repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3;
      Specified by:
      getConfidenceMetricsEntriesList in interface BoundingBoxMetricsEntryOrBuilder
    • getConfidenceMetricsEntriesCount

      public int getConfidenceMetricsEntriesCount()
       Output only. Metrics for each label-match confidence_threshold from
       0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
       derived from them.
       
      repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3;
      Specified by:
      getConfidenceMetricsEntriesCount in interface BoundingBoxMetricsEntryOrBuilder
    • getConfidenceMetricsEntries

      public BoundingBoxMetricsEntry.ConfidenceMetricsEntry getConfidenceMetricsEntries(int index)
       Output only. Metrics for each label-match confidence_threshold from
       0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
       derived from them.
       
      repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3;
      Specified by:
      getConfidenceMetricsEntries in interface BoundingBoxMetricsEntryOrBuilder
    • setConfidenceMetricsEntries

      public BoundingBoxMetricsEntry.Builder setConfidenceMetricsEntries(int index, BoundingBoxMetricsEntry.ConfidenceMetricsEntry value)
       Output only. Metrics for each label-match confidence_threshold from
       0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
       derived from them.
       
      repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3;
    • setConfidenceMetricsEntries

      public BoundingBoxMetricsEntry.Builder setConfidenceMetricsEntries(int index, BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder builderForValue)
       Output only. Metrics for each label-match confidence_threshold from
       0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
       derived from them.
       
      repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3;
    • addConfidenceMetricsEntries

       Output only. Metrics for each label-match confidence_threshold from
       0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
       derived from them.
       
      repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3;
    • addConfidenceMetricsEntries

      public BoundingBoxMetricsEntry.Builder addConfidenceMetricsEntries(int index, BoundingBoxMetricsEntry.ConfidenceMetricsEntry value)
       Output only. Metrics for each label-match confidence_threshold from
       0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
       derived from them.
       
      repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3;
    • addConfidenceMetricsEntries

       Output only. Metrics for each label-match confidence_threshold from
       0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
       derived from them.
       
      repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3;
    • addConfidenceMetricsEntries

      public BoundingBoxMetricsEntry.Builder addConfidenceMetricsEntries(int index, BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder builderForValue)
       Output only. Metrics for each label-match confidence_threshold from
       0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
       derived from them.
       
      repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3;
    • addAllConfidenceMetricsEntries

      public BoundingBoxMetricsEntry.Builder addAllConfidenceMetricsEntries(Iterable<? extends BoundingBoxMetricsEntry.ConfidenceMetricsEntry> values)
       Output only. Metrics for each label-match confidence_threshold from
       0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
       derived from them.
       
      repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3;
    • clearConfidenceMetricsEntries

      public BoundingBoxMetricsEntry.Builder clearConfidenceMetricsEntries()
       Output only. Metrics for each label-match confidence_threshold from
       0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
       derived from them.
       
      repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3;
    • removeConfidenceMetricsEntries

      public BoundingBoxMetricsEntry.Builder removeConfidenceMetricsEntries(int index)
       Output only. Metrics for each label-match confidence_threshold from
       0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
       derived from them.
       
      repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3;
    • getConfidenceMetricsEntriesBuilder

      public BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder getConfidenceMetricsEntriesBuilder(int index)
       Output only. Metrics for each label-match confidence_threshold from
       0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
       derived from them.
       
      repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3;
    • getConfidenceMetricsEntriesOrBuilder

      public BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntriesOrBuilder(int index)
       Output only. Metrics for each label-match confidence_threshold from
       0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
       derived from them.
       
      repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3;
      Specified by:
      getConfidenceMetricsEntriesOrBuilder in interface BoundingBoxMetricsEntryOrBuilder
    • getConfidenceMetricsEntriesOrBuilderList

      public List<? extends BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder> getConfidenceMetricsEntriesOrBuilderList()
       Output only. Metrics for each label-match confidence_threshold from
       0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
       derived from them.
       
      repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3;
      Specified by:
      getConfidenceMetricsEntriesOrBuilderList in interface BoundingBoxMetricsEntryOrBuilder
    • addConfidenceMetricsEntriesBuilder

      public BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder addConfidenceMetricsEntriesBuilder()
       Output only. Metrics for each label-match confidence_threshold from
       0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
       derived from them.
       
      repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3;
    • addConfidenceMetricsEntriesBuilder

      public BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder addConfidenceMetricsEntriesBuilder(int index)
       Output only. Metrics for each label-match confidence_threshold from
       0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
       derived from them.
       
      repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3;
    • getConfidenceMetricsEntriesBuilderList

      public List<BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder> getConfidenceMetricsEntriesBuilderList()
       Output only. Metrics for each label-match confidence_threshold from
       0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
       derived from them.
       
      repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3;