@@ -532,13 +532,10 @@ def update!(**args)
532532 class GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus
533533 include Google ::Apis ::Core ::Hashable
534534
535- # The name of the operation triggered by the processed document. If the human
536- # review process is not triggered, this field will be empty. It has the same
537- # response type and metadata as the long running operation returned by
538- # ReviewDocument method.
539- # Corresponds to the JSON property `humanReviewOperation`
540- # @return [String]
541- attr_accessor :human_review_operation
535+ # The status of human review on a processed document.
536+ # Corresponds to the JSON property `humanReviewStatus`
537+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1HumanReviewStatus]
538+ attr_accessor :human_review_status
542539
543540 # The source of the document, same as the [input_gcs_source] field in the
544541 # request when the batch process started. The batch process is started by take
@@ -570,7 +567,7 @@ def initialize(**args)
570567
571568 # Update properties of this object
572569 def update! ( **args )
573- @human_review_operation = args [ :human_review_operation ] if args . key? ( :human_review_operation )
570+ @human_review_status = args [ :human_review_status ] if args . key? ( :human_review_status )
574571 @input_gcs_source = args [ :input_gcs_source ] if args . key? ( :input_gcs_source )
575572 @output_gcs_destination = args [ :output_gcs_destination ] if args . key? ( :output_gcs_destination )
576573 @status = args [ :status ] if args . key? ( :status )
@@ -627,6 +624,39 @@ def update!(**args)
627624 end
628625 end
629626
627+ # The status of human review on a processed document.
628+ class GoogleCloudDocumentaiV1HumanReviewStatus
629+ include Google ::Apis ::Core ::Hashable
630+
631+ # The name of the operation triggered by the processed document. Non-empty only
632+ # when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has the same response type
633+ # and metadata as the long running operation returned by [ReviewDocument] method.
634+ # Corresponds to the JSON property `humanReviewOperation`
635+ # @return [String]
636+ attr_accessor :human_review_operation
637+
638+ # The state of human review on the processing request.
639+ # Corresponds to the JSON property `state`
640+ # @return [String]
641+ attr_accessor :state
642+
643+ # A message providing more details about the human review state.
644+ # Corresponds to the JSON property `stateMessage`
645+ # @return [String]
646+ attr_accessor :state_message
647+
648+ def initialize ( **args )
649+ update! ( **args )
650+ end
651+
652+ # Update properties of this object
653+ def update! ( **args )
654+ @human_review_operation = args [ :human_review_operation ] if args . key? ( :human_review_operation )
655+ @state = args [ :state ] if args . key? ( :state )
656+ @state_message = args [ :state_message ] if args . key? ( :state_message )
657+ end
658+ end
659+
630660 # The long running operation metadata for review document method.
631661 class GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata
632662 include Google ::Apis ::Core ::Hashable
@@ -4442,11 +4472,16 @@ class GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus
44424472 # The name of the operation triggered by the processed document. If the human
44434473 # review process is not triggered, this field will be empty. It has the same
44444474 # response type and metadata as the long running operation returned by
4445- # ReviewDocument method.
4475+ # ReviewDocument method. .
44464476 # Corresponds to the JSON property `humanReviewOperation`
44474477 # @return [String]
44484478 attr_accessor :human_review_operation
44494479
4480+ # The status of human review on a processed document.
4481+ # Corresponds to the JSON property `humanReviewStatus`
4482+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3HumanReviewStatus]
4483+ attr_accessor :human_review_status
4484+
44504485 # The source of the document, same as the [input_gcs_source] field in the
44514486 # request when the batch process started. The batch process is started by take
44524487 # snapshot of that document, since a user can move or change that document
@@ -4478,6 +4513,7 @@ def initialize(**args)
44784513 # Update properties of this object
44794514 def update! ( **args )
44804515 @human_review_operation = args [ :human_review_operation ] if args . key? ( :human_review_operation )
4516+ @human_review_status = args [ :human_review_status ] if args . key? ( :human_review_status )
44814517 @input_gcs_source = args [ :input_gcs_source ] if args . key? ( :input_gcs_source )
44824518 @output_gcs_destination = args [ :output_gcs_destination ] if args . key? ( :output_gcs_destination )
44834519 @status = args [ :status ] if args . key? ( :status )
@@ -4534,6 +4570,39 @@ def update!(**args)
45344570 end
45354571 end
45364572
4573+ # The status of human review on a processed document.
4574+ class GoogleCloudDocumentaiV1beta3HumanReviewStatus
4575+ include Google ::Apis ::Core ::Hashable
4576+
4577+ # The name of the operation triggered by the processed document. Non-empty only
4578+ # when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has the same response type
4579+ # and metadata as the long running operation returned by [ReviewDocument] method.
4580+ # Corresponds to the JSON property `humanReviewOperation`
4581+ # @return [String]
4582+ attr_accessor :human_review_operation
4583+
4584+ # The state of human review on the processing request.
4585+ # Corresponds to the JSON property `state`
4586+ # @return [String]
4587+ attr_accessor :state
4588+
4589+ # A message providing more details about the human review state.
4590+ # Corresponds to the JSON property `stateMessage`
4591+ # @return [String]
4592+ attr_accessor :state_message
4593+
4594+ def initialize ( **args )
4595+ update! ( **args )
4596+ end
4597+
4598+ # Update properties of this object
4599+ def update! ( **args )
4600+ @human_review_operation = args [ :human_review_operation ] if args . key? ( :human_review_operation )
4601+ @state = args [ :state ] if args . key? ( :state )
4602+ @state_message = args [ :state_message ] if args . key? ( :state_message )
4603+ end
4604+ end
4605+
45374606 # The long running operation metadata for review document method.
45384607 class GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata
45394608 include Google ::Apis ::Core ::Hashable
0 commit comments