ProcessResponse

Response message for the process document method.

JSON representation
{
  "document": {
    object (Document)
  },
  "humanReviewStatus": {
    object (HumanReviewStatus)
  }
}
Fields
document

object (Document)

The document payload, will populate fields based on the processor's behavior.

humanReviewStatus

object (HumanReviewStatus)

The status of human review on the processed document.

HumanReviewStatus

The status of human review on a processed document.

JSON representation
{
  "state": enum (State),
  "stateMessage": string,
  "humanReviewOperation": string
}
Fields
state

enum (State)

The state of human review on the processing request.

stateMessage

string

A message providing more details about the human review state.

humanReviewOperation

string

The name of the operation triggered by the processed document. This field is populated only when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has the same response type and metadata as the long running operation returned by [humanReviewConfig.reviewDocument] method.

State

The final state of human review on a processed document.

Enums
STATE_UNSPECIFIED Human review state is unspecified. Most likely due to an internal error.
SKIPPED Human review is skipped for the document. This can happen because human review is not enabled on the processor or the processing request has been set to skip this document.
VALIDATION_PASSED Human review validation is triggered and passed, so no review is needed.
IN_PROGRESS Human review validation is triggered and the document is under review.
ERROR Some error happened during triggering human review, see the [stateMessage] for details.