Class ImageObjectDetectionEvaluationMetrics.Builder

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

public static final class ImageObjectDetectionEvaluationMetrics.Builder extends com.google.protobuf.GeneratedMessage.Builder<ImageObjectDetectionEvaluationMetrics.Builder> implements ImageObjectDetectionEvaluationMetricsOrBuilder
 Model evaluation metrics for image object detection problems.
 Evaluates prediction quality of labeled bounding boxes.
 
Protobuf type google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics
  • 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<ImageObjectDetectionEvaluationMetrics.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<ImageObjectDetectionEvaluationMetrics.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<ImageObjectDetectionEvaluationMetrics.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public ImageObjectDetectionEvaluationMetrics.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<ImageObjectDetectionEvaluationMetrics.Builder>
      Throws:
      IOException
    • getEvaluatedBoundingBoxCount

      public int getEvaluatedBoundingBoxCount()
       Output only. The total number of bounding boxes (i.e. summed over all
       images) the ground truth used to create this evaluation had.
       
      int32 evaluated_bounding_box_count = 1;
      Specified by:
      getEvaluatedBoundingBoxCount in interface ImageObjectDetectionEvaluationMetricsOrBuilder
      Returns:
      The evaluatedBoundingBoxCount.
    • setEvaluatedBoundingBoxCount

      public ImageObjectDetectionEvaluationMetrics.Builder setEvaluatedBoundingBoxCount(int value)
       Output only. The total number of bounding boxes (i.e. summed over all
       images) the ground truth used to create this evaluation had.
       
      int32 evaluated_bounding_box_count = 1;
      Parameters:
      value - The evaluatedBoundingBoxCount to set.
      Returns:
      This builder for chaining.
    • clearEvaluatedBoundingBoxCount

      public ImageObjectDetectionEvaluationMetrics.Builder clearEvaluatedBoundingBoxCount()
       Output only. The total number of bounding boxes (i.e. summed over all
       images) the ground truth used to create this evaluation had.
       
      int32 evaluated_bounding_box_count = 1;
      Returns:
      This builder for chaining.
    • getBoundingBoxMetricsEntriesList

      public List<BoundingBoxMetricsEntry> getBoundingBoxMetricsEntriesList()
       Output only. The bounding boxes match metrics for each
       Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
       and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
       pair.
       
      repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2;
      Specified by:
      getBoundingBoxMetricsEntriesList in interface ImageObjectDetectionEvaluationMetricsOrBuilder
    • getBoundingBoxMetricsEntriesCount

      public int getBoundingBoxMetricsEntriesCount()
       Output only. The bounding boxes match metrics for each
       Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
       and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
       pair.
       
      repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2;
      Specified by:
      getBoundingBoxMetricsEntriesCount in interface ImageObjectDetectionEvaluationMetricsOrBuilder
    • getBoundingBoxMetricsEntries

      public BoundingBoxMetricsEntry getBoundingBoxMetricsEntries(int index)
       Output only. The bounding boxes match metrics for each
       Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
       and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
       pair.
       
      repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2;
      Specified by:
      getBoundingBoxMetricsEntries in interface ImageObjectDetectionEvaluationMetricsOrBuilder
    • setBoundingBoxMetricsEntries

      public ImageObjectDetectionEvaluationMetrics.Builder setBoundingBoxMetricsEntries(int index, BoundingBoxMetricsEntry value)
       Output only. The bounding boxes match metrics for each
       Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
       and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
       pair.
       
      repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2;
    • setBoundingBoxMetricsEntries

      public ImageObjectDetectionEvaluationMetrics.Builder setBoundingBoxMetricsEntries(int index, BoundingBoxMetricsEntry.Builder builderForValue)
       Output only. The bounding boxes match metrics for each
       Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
       and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
       pair.
       
      repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2;
    • addBoundingBoxMetricsEntries

      public ImageObjectDetectionEvaluationMetrics.Builder addBoundingBoxMetricsEntries(BoundingBoxMetricsEntry value)
       Output only. The bounding boxes match metrics for each
       Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
       and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
       pair.
       
      repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2;
    • addBoundingBoxMetricsEntries

      public ImageObjectDetectionEvaluationMetrics.Builder addBoundingBoxMetricsEntries(int index, BoundingBoxMetricsEntry value)
       Output only. The bounding boxes match metrics for each
       Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
       and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
       pair.
       
      repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2;
    • addBoundingBoxMetricsEntries

      public ImageObjectDetectionEvaluationMetrics.Builder addBoundingBoxMetricsEntries(BoundingBoxMetricsEntry.Builder builderForValue)
       Output only. The bounding boxes match metrics for each
       Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
       and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
       pair.
       
      repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2;
    • addBoundingBoxMetricsEntries

      public ImageObjectDetectionEvaluationMetrics.Builder addBoundingBoxMetricsEntries(int index, BoundingBoxMetricsEntry.Builder builderForValue)
       Output only. The bounding boxes match metrics for each
       Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
       and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
       pair.
       
      repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2;
    • addAllBoundingBoxMetricsEntries

      public ImageObjectDetectionEvaluationMetrics.Builder addAllBoundingBoxMetricsEntries(Iterable<? extends BoundingBoxMetricsEntry> values)
       Output only. The bounding boxes match metrics for each
       Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
       and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
       pair.
       
      repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2;
    • clearBoundingBoxMetricsEntries

      public ImageObjectDetectionEvaluationMetrics.Builder clearBoundingBoxMetricsEntries()
       Output only. The bounding boxes match metrics for each
       Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
       and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
       pair.
       
      repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2;
    • removeBoundingBoxMetricsEntries

      public ImageObjectDetectionEvaluationMetrics.Builder removeBoundingBoxMetricsEntries(int index)
       Output only. The bounding boxes match metrics for each
       Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
       and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
       pair.
       
      repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2;
    • getBoundingBoxMetricsEntriesBuilder

      public BoundingBoxMetricsEntry.Builder getBoundingBoxMetricsEntriesBuilder(int index)
       Output only. The bounding boxes match metrics for each
       Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
       and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
       pair.
       
      repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2;
    • getBoundingBoxMetricsEntriesOrBuilder

      public BoundingBoxMetricsEntryOrBuilder getBoundingBoxMetricsEntriesOrBuilder(int index)
       Output only. The bounding boxes match metrics for each
       Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
       and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
       pair.
       
      repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2;
      Specified by:
      getBoundingBoxMetricsEntriesOrBuilder in interface ImageObjectDetectionEvaluationMetricsOrBuilder
    • getBoundingBoxMetricsEntriesOrBuilderList

      public List<? extends BoundingBoxMetricsEntryOrBuilder> getBoundingBoxMetricsEntriesOrBuilderList()
       Output only. The bounding boxes match metrics for each
       Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
       and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
       pair.
       
      repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2;
      Specified by:
      getBoundingBoxMetricsEntriesOrBuilderList in interface ImageObjectDetectionEvaluationMetricsOrBuilder
    • addBoundingBoxMetricsEntriesBuilder

      public BoundingBoxMetricsEntry.Builder addBoundingBoxMetricsEntriesBuilder()
       Output only. The bounding boxes match metrics for each
       Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
       and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
       pair.
       
      repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2;
    • addBoundingBoxMetricsEntriesBuilder

      public BoundingBoxMetricsEntry.Builder addBoundingBoxMetricsEntriesBuilder(int index)
       Output only. The bounding boxes match metrics for each
       Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
       and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
       pair.
       
      repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2;
    • getBoundingBoxMetricsEntriesBuilderList

      public List<BoundingBoxMetricsEntry.Builder> getBoundingBoxMetricsEntriesBuilderList()
       Output only. The bounding boxes match metrics for each
       Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
       and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
       pair.
       
      repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2;
    • getBoundingBoxMeanAveragePrecision

      public float getBoundingBoxMeanAveragePrecision()
       Output only. The single metric for bounding boxes evaluation:
       the mean_average_precision averaged over all bounding_box_metrics_entries.
       
      float bounding_box_mean_average_precision = 3;
      Specified by:
      getBoundingBoxMeanAveragePrecision in interface ImageObjectDetectionEvaluationMetricsOrBuilder
      Returns:
      The boundingBoxMeanAveragePrecision.
    • setBoundingBoxMeanAveragePrecision

      public ImageObjectDetectionEvaluationMetrics.Builder setBoundingBoxMeanAveragePrecision(float value)
       Output only. The single metric for bounding boxes evaluation:
       the mean_average_precision averaged over all bounding_box_metrics_entries.
       
      float bounding_box_mean_average_precision = 3;
      Parameters:
      value - The boundingBoxMeanAveragePrecision to set.
      Returns:
      This builder for chaining.
    • clearBoundingBoxMeanAveragePrecision

      public ImageObjectDetectionEvaluationMetrics.Builder clearBoundingBoxMeanAveragePrecision()
       Output only. The single metric for bounding boxes evaluation:
       the mean_average_precision averaged over all bounding_box_metrics_entries.
       
      float bounding_box_mean_average_precision = 3;
      Returns:
      This builder for chaining.