Class PrCurve.Builder

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

public static final class PrCurve.Builder extends com.google.protobuf.GeneratedMessage.Builder<PrCurve.Builder> implements PrCurveOrBuilder
Protobuf type google.cloud.datalabeling.v1beta1.PrCurve
  • 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<PrCurve.Builder>
    • clear

      public PrCurve.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<PrCurve.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<PrCurve.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public PrCurve.Builder mergeFrom(PrCurve other)
    • isInitialized

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

      public PrCurve.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<PrCurve.Builder>
      Throws:
      IOException
    • hasAnnotationSpec

      public boolean hasAnnotationSpec()
       The annotation spec of the label for which the precision-recall curve
       calculated. If this field is empty, that means the precision-recall curve
       is an aggregate curve for all labels.
       
      .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
      Specified by:
      hasAnnotationSpec in interface PrCurveOrBuilder
      Returns:
      Whether the annotationSpec field is set.
    • getAnnotationSpec

      public AnnotationSpec getAnnotationSpec()
       The annotation spec of the label for which the precision-recall curve
       calculated. If this field is empty, that means the precision-recall curve
       is an aggregate curve for all labels.
       
      .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
      Specified by:
      getAnnotationSpec in interface PrCurveOrBuilder
      Returns:
      The annotationSpec.
    • setAnnotationSpec

      public PrCurve.Builder setAnnotationSpec(AnnotationSpec value)
       The annotation spec of the label for which the precision-recall curve
       calculated. If this field is empty, that means the precision-recall curve
       is an aggregate curve for all labels.
       
      .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
    • setAnnotationSpec

      public PrCurve.Builder setAnnotationSpec(AnnotationSpec.Builder builderForValue)
       The annotation spec of the label for which the precision-recall curve
       calculated. If this field is empty, that means the precision-recall curve
       is an aggregate curve for all labels.
       
      .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
    • mergeAnnotationSpec

      public PrCurve.Builder mergeAnnotationSpec(AnnotationSpec value)
       The annotation spec of the label for which the precision-recall curve
       calculated. If this field is empty, that means the precision-recall curve
       is an aggregate curve for all labels.
       
      .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
    • clearAnnotationSpec

      public PrCurve.Builder clearAnnotationSpec()
       The annotation spec of the label for which the precision-recall curve
       calculated. If this field is empty, that means the precision-recall curve
       is an aggregate curve for all labels.
       
      .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
    • getAnnotationSpecBuilder

      public AnnotationSpec.Builder getAnnotationSpecBuilder()
       The annotation spec of the label for which the precision-recall curve
       calculated. If this field is empty, that means the precision-recall curve
       is an aggregate curve for all labels.
       
      .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
    • getAnnotationSpecOrBuilder

      public AnnotationSpecOrBuilder getAnnotationSpecOrBuilder()
       The annotation spec of the label for which the precision-recall curve
       calculated. If this field is empty, that means the precision-recall curve
       is an aggregate curve for all labels.
       
      .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
      Specified by:
      getAnnotationSpecOrBuilder in interface PrCurveOrBuilder
    • getAreaUnderCurve

      public float getAreaUnderCurve()
       Area under the precision-recall curve. Not to be confused with area under
       a receiver operating characteristic (ROC) curve.
       
      float area_under_curve = 2;
      Specified by:
      getAreaUnderCurve in interface PrCurveOrBuilder
      Returns:
      The areaUnderCurve.
    • setAreaUnderCurve

      public PrCurve.Builder setAreaUnderCurve(float value)
       Area under the precision-recall curve. Not to be confused with area under
       a receiver operating characteristic (ROC) curve.
       
      float area_under_curve = 2;
      Parameters:
      value - The areaUnderCurve to set.
      Returns:
      This builder for chaining.
    • clearAreaUnderCurve

      public PrCurve.Builder clearAreaUnderCurve()
       Area under the precision-recall curve. Not to be confused with area under
       a receiver operating characteristic (ROC) curve.
       
      float area_under_curve = 2;
      Returns:
      This builder for chaining.
    • getConfidenceMetricsEntriesList

      public List<PrCurve.ConfidenceMetricsEntry> getConfidenceMetricsEntriesList()
       Entries that make up the precision-recall graph. Each entry is a "point" on
       the graph drawn for a different `confidence_threshold`.
       
      repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3;
      Specified by:
      getConfidenceMetricsEntriesList in interface PrCurveOrBuilder
    • getConfidenceMetricsEntriesCount

      public int getConfidenceMetricsEntriesCount()
       Entries that make up the precision-recall graph. Each entry is a "point" on
       the graph drawn for a different `confidence_threshold`.
       
      repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3;
      Specified by:
      getConfidenceMetricsEntriesCount in interface PrCurveOrBuilder
    • getConfidenceMetricsEntries

      public PrCurve.ConfidenceMetricsEntry getConfidenceMetricsEntries(int index)
       Entries that make up the precision-recall graph. Each entry is a "point" on
       the graph drawn for a different `confidence_threshold`.
       
      repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3;
      Specified by:
      getConfidenceMetricsEntries in interface PrCurveOrBuilder
    • setConfidenceMetricsEntries

      public PrCurve.Builder setConfidenceMetricsEntries(int index, PrCurve.ConfidenceMetricsEntry value)
       Entries that make up the precision-recall graph. Each entry is a "point" on
       the graph drawn for a different `confidence_threshold`.
       
      repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3;
    • setConfidenceMetricsEntries

      public PrCurve.Builder setConfidenceMetricsEntries(int index, PrCurve.ConfidenceMetricsEntry.Builder builderForValue)
       Entries that make up the precision-recall graph. Each entry is a "point" on
       the graph drawn for a different `confidence_threshold`.
       
      repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3;
    • addConfidenceMetricsEntries

      public PrCurve.Builder addConfidenceMetricsEntries(PrCurve.ConfidenceMetricsEntry value)
       Entries that make up the precision-recall graph. Each entry is a "point" on
       the graph drawn for a different `confidence_threshold`.
       
      repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3;
    • addConfidenceMetricsEntries

      public PrCurve.Builder addConfidenceMetricsEntries(int index, PrCurve.ConfidenceMetricsEntry value)
       Entries that make up the precision-recall graph. Each entry is a "point" on
       the graph drawn for a different `confidence_threshold`.
       
      repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3;
    • addConfidenceMetricsEntries

      public PrCurve.Builder addConfidenceMetricsEntries(PrCurve.ConfidenceMetricsEntry.Builder builderForValue)
       Entries that make up the precision-recall graph. Each entry is a "point" on
       the graph drawn for a different `confidence_threshold`.
       
      repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3;
    • addConfidenceMetricsEntries

      public PrCurve.Builder addConfidenceMetricsEntries(int index, PrCurve.ConfidenceMetricsEntry.Builder builderForValue)
       Entries that make up the precision-recall graph. Each entry is a "point" on
       the graph drawn for a different `confidence_threshold`.
       
      repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3;
    • addAllConfidenceMetricsEntries

      public PrCurve.Builder addAllConfidenceMetricsEntries(Iterable<? extends PrCurve.ConfidenceMetricsEntry> values)
       Entries that make up the precision-recall graph. Each entry is a "point" on
       the graph drawn for a different `confidence_threshold`.
       
      repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3;
    • clearConfidenceMetricsEntries

      public PrCurve.Builder clearConfidenceMetricsEntries()
       Entries that make up the precision-recall graph. Each entry is a "point" on
       the graph drawn for a different `confidence_threshold`.
       
      repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3;
    • removeConfidenceMetricsEntries

      public PrCurve.Builder removeConfidenceMetricsEntries(int index)
       Entries that make up the precision-recall graph. Each entry is a "point" on
       the graph drawn for a different `confidence_threshold`.
       
      repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3;
    • getConfidenceMetricsEntriesBuilder

      public PrCurve.ConfidenceMetricsEntry.Builder getConfidenceMetricsEntriesBuilder(int index)
       Entries that make up the precision-recall graph. Each entry is a "point" on
       the graph drawn for a different `confidence_threshold`.
       
      repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3;
    • getConfidenceMetricsEntriesOrBuilder

      public PrCurve.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntriesOrBuilder(int index)
       Entries that make up the precision-recall graph. Each entry is a "point" on
       the graph drawn for a different `confidence_threshold`.
       
      repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3;
      Specified by:
      getConfidenceMetricsEntriesOrBuilder in interface PrCurveOrBuilder
    • getConfidenceMetricsEntriesOrBuilderList

      public List<? extends PrCurve.ConfidenceMetricsEntryOrBuilder> getConfidenceMetricsEntriesOrBuilderList()
       Entries that make up the precision-recall graph. Each entry is a "point" on
       the graph drawn for a different `confidence_threshold`.
       
      repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3;
      Specified by:
      getConfidenceMetricsEntriesOrBuilderList in interface PrCurveOrBuilder
    • addConfidenceMetricsEntriesBuilder

      public PrCurve.ConfidenceMetricsEntry.Builder addConfidenceMetricsEntriesBuilder()
       Entries that make up the precision-recall graph. Each entry is a "point" on
       the graph drawn for a different `confidence_threshold`.
       
      repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3;
    • addConfidenceMetricsEntriesBuilder

      public PrCurve.ConfidenceMetricsEntry.Builder addConfidenceMetricsEntriesBuilder(int index)
       Entries that make up the precision-recall graph. Each entry is a "point" on
       the graph drawn for a different `confidence_threshold`.
       
      repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3;
    • getConfidenceMetricsEntriesBuilderList

      public List<PrCurve.ConfidenceMetricsEntry.Builder> getConfidenceMetricsEntriesBuilderList()
       Entries that make up the precision-recall graph. Each entry is a "point" on
       the graph drawn for a different `confidence_threshold`.
       
      repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3;
    • getMeanAveragePrecision

      public float getMeanAveragePrecision()
       Mean average prcision of this curve.
       
      float mean_average_precision = 4;
      Specified by:
      getMeanAveragePrecision in interface PrCurveOrBuilder
      Returns:
      The meanAveragePrecision.
    • setMeanAveragePrecision

      public PrCurve.Builder setMeanAveragePrecision(float value)
       Mean average prcision of this curve.
       
      float mean_average_precision = 4;
      Parameters:
      value - The meanAveragePrecision to set.
      Returns:
      This builder for chaining.
    • clearMeanAveragePrecision

      public PrCurve.Builder clearMeanAveragePrecision()
       Mean average prcision of this curve.
       
      float mean_average_precision = 4;
      Returns:
      This builder for chaining.