Interface ParseRun._FinalStage
-
- All Known Implementing Classes:
ParseRun.Builder
- Enclosing class:
- ParseRun
public static interface ParseRun._FinalStage
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ParseRun._FinalStagebatchId(Nullable<java.lang.String> batchId)ParseRun._FinalStagebatchId(java.lang.String batchId)ParseRun._FinalStagebatchId(java.util.Optional<java.lang.String> batchId)The ID of the batch this run belongs to, if created viaPOST /parse_runs/batch.ParseRunbuild()ParseRun._FinalStagefailureMessage(Nullable<java.lang.String> failureMessage)ParseRun._FinalStagefailureMessage(java.lang.String failureMessage)ParseRun._FinalStagefailureMessage(java.util.Optional<java.lang.String> failureMessage)A human-readable description of the failure.ParseRun._FinalStagefailureReason(Nullable<java.lang.String> failureReason)ParseRun._FinalStagefailureReason(java.lang.String failureReason)ParseRun._FinalStagefailureReason(java.util.Optional<java.lang.String> failureReason)The reason for failure.ParseRun._FinalStagemetrics(Nullable<ParseRunMetrics> metrics)ParseRun._FinalStagemetrics(ParseRunMetrics metrics)ParseRun._FinalStagemetrics(java.util.Optional<ParseRunMetrics> metrics)Metrics about the parsing process.ParseRun._FinalStageoutput(Nullable<ParseRunOutput> output)ParseRun._FinalStageoutput(ParseRunOutput output)ParseRun._FinalStageoutput(java.util.Optional<ParseRunOutput> output)The parse run output.ParseRun._FinalStageoutputUrl(Nullable<java.lang.String> outputUrl)ParseRun._FinalStageoutputUrl(java.lang.String outputUrl)ParseRun._FinalStageoutputUrl(java.util.Optional<java.lang.String> outputUrl)A presigned URL to download the parse run output as a JSON file.ParseRun._FinalStageusage(Nullable<RunUsage> usage)ParseRun._FinalStageusage(RunUsage usage)ParseRun._FinalStageusage(java.util.Optional<RunUsage> usage)Usage credits consumed by this run.
-
-
-
Method Detail
-
build
ParseRun build()
-
batchId
ParseRun._FinalStage batchId(java.util.Optional<java.lang.String> batchId)
The ID of the batch this run belongs to, if created via
POST /parse_runs/batch.Availability: Present when the run was submitted as part of a batch.
Example:
"bpar_Xj8mK2pL9nR4vT7qY5wZ"
-
batchId
ParseRun._FinalStage batchId(java.lang.String batchId)
-
batchId
ParseRun._FinalStage batchId(Nullable<java.lang.String> batchId)
-
failureReason
ParseRun._FinalStage failureReason(java.util.Optional<java.lang.String> failureReason)
The reason for failure.
Availability: Present when
statusis"FAILED".Possible values include:
UNABLE_TO_DOWNLOAD_FILE- The file could not be downloaded from the provided URLFILE_TYPE_NOT_SUPPORTED- The file type is not supported for parsingFILE_SIZE_TOO_LARGE- The file exceeds the maximum allowed sizeCORRUPT_FILE- The file appears to be corrupted or malformedOCR_ERROR- An error occurred during optical character recognitionPASSWORD_PROTECTED_FILE- The file is password protected and cannot be processedFAILED_TO_CONVERT_TO_PDF- The file could not be converted to PDF for processingFAILED_TO_CONVERT_TO_JPEG- The file could not be converted to JPEG for processingFAILED_TO_GENERATE_TARGET_FORMAT- The output could not be generated in the requested formatCHUNKING_ERROR- An error occurred while chunking the documentINTERNAL_ERROR- An unexpected internal error occurredINVALID_CONFIG_OPTIONS- The provided configuration options are invalidOUT_OF_CREDITS- Insufficient credits to process the file
Note: Additional failure reasons may be added in the future. Your integration should handle unknown values gracefully.
-
failureReason
ParseRun._FinalStage failureReason(java.lang.String failureReason)
-
failureReason
ParseRun._FinalStage failureReason(Nullable<java.lang.String> failureReason)
-
failureMessage
ParseRun._FinalStage failureMessage(java.util.Optional<java.lang.String> failureMessage)
A human-readable description of the failure.
Availability: Present when
statusis"FAILED".
-
failureMessage
ParseRun._FinalStage failureMessage(java.lang.String failureMessage)
-
failureMessage
ParseRun._FinalStage failureMessage(Nullable<java.lang.String> failureMessage)
-
output
ParseRun._FinalStage output(java.util.Optional<ParseRunOutput> output)
The parse run output.
Availability: Present when
statusis"PROCESSED"and the request was made without theresponseType=urlquery parameter. Contains the parsed chunks.
-
output
ParseRun._FinalStage output(ParseRunOutput output)
-
output
ParseRun._FinalStage output(Nullable<ParseRunOutput> output)
-
outputUrl
ParseRun._FinalStage outputUrl(java.util.Optional<java.lang.String> outputUrl)
A presigned URL to download the parse run output as a JSON file. The object shape is the same as the
outputfield. Expires after 15 minutes.Availability: Present when
statusis"PROCESSED"and the request was made withresponseType=urlquery parameter.
-
outputUrl
ParseRun._FinalStage outputUrl(java.lang.String outputUrl)
-
outputUrl
ParseRun._FinalStage outputUrl(Nullable<java.lang.String> outputUrl)
-
metrics
ParseRun._FinalStage metrics(java.util.Optional<ParseRunMetrics> metrics)
Metrics about the parsing process.
Availability: Present when
statusis"PROCESSED".
-
metrics
ParseRun._FinalStage metrics(ParseRunMetrics metrics)
-
metrics
ParseRun._FinalStage metrics(Nullable<ParseRunMetrics> metrics)
-
usage
ParseRun._FinalStage usage(java.util.Optional<RunUsage> usage)
Usage credits consumed by this run.
Availability: Present when
statusis"PROCESSED", the run was created after October 7, 2025, and the customer is on the current billing system.
-
usage
ParseRun._FinalStage usage(RunUsage usage)
-
usage
ParseRun._FinalStage usage(Nullable<RunUsage> usage)
-
-