Class ExtractRunSummary.Builder

    • Method Detail

      • id

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

        The unique identifier for this extract run.

        The unique identifier for this extract run.

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

        public ExtractRunSummary.DashboardUrlStage 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 ExtractRunSummary.EditedStage
        Returns:
        Reference to this so that method calls can be chained together.
      • usage

        public ExtractRunSummary._FinalStage usage​(Nullable<RunUsageSummary> usage)

        Usage credits consumed by this extract run. Omits breakdown — fetch the full extract run by id to see the per-line items.

        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 ExtractRunSummary._FinalStage
        Returns:
        Reference to this so that method calls can be chained together.
      • usage

        public ExtractRunSummary._FinalStage usage​(RunUsageSummary usage)

        Usage credits consumed by this extract run. Omits breakdown — fetch the full extract run by id to see the per-line items.

        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 ExtractRunSummary._FinalStage
        Returns:
        Reference to this so that method calls can be chained together.
      • usage

        public ExtractRunSummary._FinalStage usage​(java.util.Optional<RunUsageSummary> usage)

        Usage credits consumed by this extract run. Omits breakdown — fetch the full extract run by id to see the per-line items.

        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 ExtractRunSummary._FinalStage
      • parseRunId

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

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

        Availability: Present when a parse run was created.

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

        public ExtractRunSummary._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 ExtractRunSummary._FinalStage
        Returns:
        Reference to this so that method calls can be chained together.
      • metadata

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

        Any metadata that was provided when creating the extract run.

        Availability: Present when metadata was provided during creation.

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

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

        Any metadata that was provided when creating the extract run.

        Availability: Present when metadata was provided during creation.

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

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

        Any metadata that was provided when creating the extract run.

        Availability: Present when metadata was provided during creation.

        Specified by:
        metadata in interface ExtractRunSummary._FinalStage
      • failureReason

        public ExtractRunSummary._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 extraction output
        • PRE_PROCESSING_FAILURE - An error occurred during preprocessing (e.g., chunking)
        • POST_PROCESSING_FAILURE - An error occurred during postprocessing
        • OUT_OF_CREDITS - Insufficient credits to run the extraction
        • SCHEMA_GENERATION_FAILED - Automatic schema inference failed (only applies when schema is omitted). The file could not be parsed or a schema could not be generated from it.

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

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

        public ExtractRunSummary._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 extraction output
        • PRE_PROCESSING_FAILURE - An error occurred during preprocessing (e.g., chunking)
        • POST_PROCESSING_FAILURE - An error occurred during postprocessing
        • OUT_OF_CREDITS - Insufficient credits to run the extraction
        • SCHEMA_GENERATION_FAILED - Automatic schema inference failed (only applies when schema is omitted). The file could not be parsed or a schema could not be generated from it.

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

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

        public ExtractRunSummary._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 extraction output
        • PRE_PROCESSING_FAILURE - An error occurred during preprocessing (e.g., chunking)
        • POST_PROCESSING_FAILURE - An error occurred during postprocessing
        • OUT_OF_CREDITS - Insufficient credits to run the extraction
        • SCHEMA_GENERATION_FAILED - Automatic schema inference failed (only applies when schema is omitted). The file could not be parsed or a schema could not be generated from it.

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

        Specified by:
        failureReason in interface ExtractRunSummary._FinalStage