Class 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.GeneratedMessageV3.Builder<PrCurve.Builder>
    implements PrCurveOrBuilder
    Protobuf type google.cloud.datalabeling.v1beta1.PrCurve
    • 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<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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

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

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

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

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

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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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
      • 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.
      • setUnknownFields

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

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