Class VideoObjectTrackingEvaluationMetrics.Builder

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

public static final class VideoObjectTrackingEvaluationMetrics.Builder extends com.google.protobuf.GeneratedMessage.Builder<VideoObjectTrackingEvaluationMetrics.Builder> implements VideoObjectTrackingEvaluationMetricsOrBuilder
 Model evaluation metrics for video object tracking problems.
 Evaluates prediction quality of both labeled bounding boxes and labeled
 tracks (i.e. series of bounding boxes sharing same label and instance ID).
 
Protobuf type google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics
  • 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<VideoObjectTrackingEvaluationMetrics.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<VideoObjectTrackingEvaluationMetrics.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<VideoObjectTrackingEvaluationMetrics.Builder>
    • getDefaultInstanceForType

      public VideoObjectTrackingEvaluationMetrics 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

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

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

      public VideoObjectTrackingEvaluationMetrics.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<VideoObjectTrackingEvaluationMetrics.Builder>
      Throws:
      IOException
    • getEvaluatedFrameCount

      public int getEvaluatedFrameCount()
       Output only. The number of video frames used to create this evaluation.
       
      int32 evaluated_frame_count = 1;
      Specified by:
      getEvaluatedFrameCount in interface VideoObjectTrackingEvaluationMetricsOrBuilder
      Returns:
      The evaluatedFrameCount.
    • setEvaluatedFrameCount

      public VideoObjectTrackingEvaluationMetrics.Builder setEvaluatedFrameCount(int value)
       Output only. The number of video frames used to create this evaluation.
       
      int32 evaluated_frame_count = 1;
      Parameters:
      value - The evaluatedFrameCount to set.
      Returns:
      This builder for chaining.
    • clearEvaluatedFrameCount

      public VideoObjectTrackingEvaluationMetrics.Builder clearEvaluatedFrameCount()
       Output only. The number of video frames used to create this evaluation.
       
      int32 evaluated_frame_count = 1;
      Returns:
      This builder for chaining.
    • getEvaluatedBoundingBoxCount

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

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

      public VideoObjectTrackingEvaluationMetrics.Builder clearEvaluatedBoundingBoxCount()
       Output only. The total number of bounding boxes (i.e. summed over all
       frames) the ground truth used to create this evaluation had.
       
      int32 evaluated_bounding_box_count = 2;
      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.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4;
      Specified by:
      getBoundingBoxMetricsEntriesList in interface VideoObjectTrackingEvaluationMetricsOrBuilder
    • 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.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4;
      Specified by:
      getBoundingBoxMetricsEntriesCount in interface VideoObjectTrackingEvaluationMetricsOrBuilder
    • 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.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4;
      Specified by:
      getBoundingBoxMetricsEntries in interface VideoObjectTrackingEvaluationMetricsOrBuilder
    • setBoundingBoxMetricsEntries

      public VideoObjectTrackingEvaluationMetrics.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.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4;
    • setBoundingBoxMetricsEntries

      public VideoObjectTrackingEvaluationMetrics.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.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4;
    • addBoundingBoxMetricsEntries

      public VideoObjectTrackingEvaluationMetrics.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.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4;
    • addBoundingBoxMetricsEntries

      public VideoObjectTrackingEvaluationMetrics.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.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4;
    • addBoundingBoxMetricsEntries

      public VideoObjectTrackingEvaluationMetrics.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.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4;
    • addBoundingBoxMetricsEntries

      public VideoObjectTrackingEvaluationMetrics.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.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4;
    • addAllBoundingBoxMetricsEntries

      public VideoObjectTrackingEvaluationMetrics.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.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4;
    • clearBoundingBoxMetricsEntries

      public VideoObjectTrackingEvaluationMetrics.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.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4;
    • removeBoundingBoxMetricsEntries

      public VideoObjectTrackingEvaluationMetrics.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.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4;
    • 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.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4;
    • 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.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4;
      Specified by:
      getBoundingBoxMetricsEntriesOrBuilder in interface VideoObjectTrackingEvaluationMetricsOrBuilder
    • 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.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4;
      Specified by:
      getBoundingBoxMetricsEntriesOrBuilderList in interface VideoObjectTrackingEvaluationMetricsOrBuilder
    • 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.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4;
    • 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.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4;
    • 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.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 4;
    • 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 = 6;
      Specified by:
      getBoundingBoxMeanAveragePrecision in interface VideoObjectTrackingEvaluationMetricsOrBuilder
      Returns:
      The boundingBoxMeanAveragePrecision.
    • setBoundingBoxMeanAveragePrecision

      public VideoObjectTrackingEvaluationMetrics.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 = 6;
      Parameters:
      value - The boundingBoxMeanAveragePrecision to set.
      Returns:
      This builder for chaining.
    • clearBoundingBoxMeanAveragePrecision

      public VideoObjectTrackingEvaluationMetrics.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 = 6;
      Returns:
      This builder for chaining.