Class ClassifyRun.Builder

    • Method Detail

      • id

        public ClassifyRun.StatusStage id​(@NotNull
                                          java.lang.String id)

        The unique identifier for this classify run.

        Example: "clr_Xj8mK2pL9nR4vT7qY5wZ"

        The unique identifier for this classify run.

        Example: "clr_Xj8mK2pL9nR4vT7qY5wZ"

        Specified by:
        id in interface ClassifyRun.IdStage
        Returns:
        Reference to this so that method calls can be chained together.
      • reviewed

        public ClassifyRun.EditedStage reviewed​(boolean reviewed)

        Indicates whether the run has been reviewed by a human.

        Indicates whether the run has been reviewed by a human.

        Specified by:
        reviewed in interface ClassifyRun.ReviewedStage
        Returns:
        Reference to this so that method calls can be chained together.
      • edited

        public ClassifyRun.ConfigStage edited​(boolean edited)

        Indicates whether the run results have been edited during review.

        Indicates whether the run results have been edited during review.

        Specified by:
        edited in interface ClassifyRun.EditedStage
        Returns:
        Reference to this so that method calls can be chained together.
      • dashboardUrl

        public ClassifyRun.CreatedAtStage dashboardUrl​(@NotNull
                                                       java.lang.String dashboardUrl)

        The URL to view the classify run in the Extend dashboard.

        The URL to view the classify run in the Extend dashboard.

        Specified by:
        dashboardUrl in interface ClassifyRun.DashboardUrlStage
        Returns:
        Reference to this so that method calls can be chained together.
      • usage

        public ClassifyRun._FinalStage usage​(Nullable<RunUsage> usage)

        Usage credits consumed by this classify run.

        Availability: Present when status is "PROCESSED". Will not be returned for runs created before October 7, 2025 or for customers on legacy billing systems.

        Specified by:
        usage in interface ClassifyRun._FinalStage
        Returns:
        Reference to this so that method calls can be chained together.
      • usage

        public ClassifyRun._FinalStage usage​(RunUsage usage)

        Usage credits consumed by this classify run.

        Availability: Present when status is "PROCESSED". Will not be returned for runs created before October 7, 2025 or for customers on legacy billing systems.

        Specified by:
        usage in interface ClassifyRun._FinalStage
        Returns:
        Reference to this so that method calls can be chained together.
      • usage

        public ClassifyRun._FinalStage usage​(java.util.Optional<RunUsage> usage)

        Usage credits consumed by this classify run.

        Availability: Present when status is "PROCESSED". Will not be returned for runs created before October 7, 2025 or for customers on legacy billing systems.

        Specified by:
        usage in interface ClassifyRun._FinalStage
      • parseRunId

        public ClassifyRun._FinalStage parseRunId​(Nullable<java.lang.String> parseRunId)

        The ID of the parse run that was used for this classify run.

        Availability: Present when a parse run was created.

        Specified by:
        parseRunId in interface ClassifyRun._FinalStage
        Returns:
        Reference to this so that method calls can be chained together.
      • parseRunId

        public ClassifyRun._FinalStage parseRunId​(java.lang.String parseRunId)

        The ID of the parse run that was used for this classify run.

        Availability: Present when a parse run was created.

        Specified by:
        parseRunId in interface ClassifyRun._FinalStage
        Returns:
        Reference to this so that method calls can be chained together.
      • parseRunId

        public ClassifyRun._FinalStage parseRunId​(java.util.Optional<java.lang.String> parseRunId)

        The ID of the parse run that was used for this classify run.

        Availability: Present when a parse run was created.

        Specified by:
        parseRunId in interface ClassifyRun._FinalStage
      • file

        public ClassifyRun._FinalStage file​(Nullable<FileSummary> file)

        The file that was processed. null when the file could not be accessed or processed (for example a run that failed during file ingestion, or a multi-file batch run).

        Specified by:
        file in interface ClassifyRun._FinalStage
        Returns:
        Reference to this so that method calls can be chained together.
      • file

        public ClassifyRun._FinalStage file​(FileSummary file)

        The file that was processed. null when the file could not be accessed or processed (for example a run that failed during file ingestion, or a multi-file batch run).

        Specified by:
        file in interface ClassifyRun._FinalStage
        Returns:
        Reference to this so that method calls can be chained together.
      • file

        public ClassifyRun._FinalStage file​(java.util.Optional<FileSummary> file)

        The file that was processed. null when the file could not be accessed or processed (for example a run that failed during file ingestion, or a multi-file batch run).

        Specified by:
        file in interface ClassifyRun._FinalStage
      • metadata

        public ClassifyRun._FinalStage metadata​(Nullable<java.util.Map<java.lang.String,​java.lang.Object>> metadata)

        Any metadata that was provided when creating the classify run.

        Availability: Present when metadata was provided during creation.

        Specified by:
        metadata in interface ClassifyRun._FinalStage
        Returns:
        Reference to this so that method calls can be chained together.
      • metadata

        public ClassifyRun._FinalStage metadata​(java.util.Map<java.lang.String,​java.lang.Object> metadata)

        Any metadata that was provided when creating the classify run.

        Availability: Present when metadata was provided during creation.

        Specified by:
        metadata in interface ClassifyRun._FinalStage
        Returns:
        Reference to this so that method calls can be chained together.
      • metadata

        public ClassifyRun._FinalStage metadata​(java.util.Optional<java.util.Map<java.lang.String,​java.lang.Object>> metadata)

        Any metadata that was provided when creating the classify run.

        Availability: Present when metadata was provided during creation.

        Specified by:
        metadata in interface ClassifyRun._FinalStage
      • failureMessage

        public ClassifyRun._FinalStage failureMessage​(java.lang.String failureMessage)

        A detailed message about the failure.

        Availability: Present when status is "FAILED".

        Specified by:
        failureMessage in interface ClassifyRun._FinalStage
        Returns:
        Reference to this so that method calls can be chained together.
      • failureReason

        public ClassifyRun._FinalStage failureReason​(Nullable<java.lang.String> failureReason)

        The reason for failure.

        Availability: Present when status is "FAILED".

        Possible values include:

        • ABORTED - The run was aborted by the user
        • INTERNAL_ERROR - An unexpected internal error occurred
        • FAILED_TO_PROCESS_FILE - Failed to process the file (e.g., OCR failure, file access issues)
        • INVALID_PROCESSOR - The processor configuration is invalid
        • INVALID_CONFIGURATION - The provided configuration is incompatible with the selected model
        • PARSING_ERROR - Failed to parse the classification output
        • PRE_PROCESSING_FAILURE - An error occurred during preprocessing
        • POST_PROCESSING_FAILURE - An error occurred during postprocessing
        • OUT_OF_CREDITS - Insufficient credits to run the classification

        Note: Additional failure reasons may be added in the future. Your integration should handle unknown values gracefully.

        Specified by:
        failureReason in interface ClassifyRun._FinalStage
        Returns:
        Reference to this so that method calls can be chained together.
      • failureReason

        public ClassifyRun._FinalStage failureReason​(java.lang.String failureReason)

        The reason for failure.

        Availability: Present when status is "FAILED".

        Possible values include:

        • ABORTED - The run was aborted by the user
        • INTERNAL_ERROR - An unexpected internal error occurred
        • FAILED_TO_PROCESS_FILE - Failed to process the file (e.g., OCR failure, file access issues)
        • INVALID_PROCESSOR - The processor configuration is invalid
        • INVALID_CONFIGURATION - The provided configuration is incompatible with the selected model
        • PARSING_ERROR - Failed to parse the classification output
        • PRE_PROCESSING_FAILURE - An error occurred during preprocessing
        • POST_PROCESSING_FAILURE - An error occurred during postprocessing
        • OUT_OF_CREDITS - Insufficient credits to run the classification

        Note: Additional failure reasons may be added in the future. Your integration should handle unknown values gracefully.

        Specified by:
        failureReason in interface ClassifyRun._FinalStage
        Returns:
        Reference to this so that method calls can be chained together.
      • failureReason

        public ClassifyRun._FinalStage failureReason​(java.util.Optional<java.lang.String> failureReason)

        The reason for failure.

        Availability: Present when status is "FAILED".

        Possible values include:

        • ABORTED - The run was aborted by the user
        • INTERNAL_ERROR - An unexpected internal error occurred
        • FAILED_TO_PROCESS_FILE - Failed to process the file (e.g., OCR failure, file access issues)
        • INVALID_PROCESSOR - The processor configuration is invalid
        • INVALID_CONFIGURATION - The provided configuration is incompatible with the selected model
        • PARSING_ERROR - Failed to parse the classification output
        • PRE_PROCESSING_FAILURE - An error occurred during preprocessing
        • POST_PROCESSING_FAILURE - An error occurred during postprocessing
        • OUT_OF_CREDITS - Insufficient credits to run the classification

        Note: Additional failure reasons may be added in the future. Your integration should handle unknown values gracefully.

        Specified by:
        failureReason in interface ClassifyRun._FinalStage
      • classifier

        public ClassifyRun._FinalStage classifier​(ClassifierSummary classifier)

        The classifier that was used for this run.

        Availability: Present when a classifier reference was provided. Not present when using inline config.

        Specified by:
        classifier in interface ClassifyRun._FinalStage
        Returns:
        Reference to this so that method calls can be chained together.