@@ -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::DocumentaiV1beta3::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
@@ -4149,11 +4179,16 @@ class GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus
41494179 # The name of the operation triggered by the processed document. If the human
41504180 # review process is not triggered, this field will be empty. It has the same
41514181 # response type and metadata as the long running operation returned by
4152- # ReviewDocument method.
4182+ # ReviewDocument method. .
41534183 # Corresponds to the JSON property `humanReviewOperation`
41544184 # @return [String]
41554185 attr_accessor :human_review_operation
41564186
4187+ # The status of human review on a processed document.
4188+ # Corresponds to the JSON property `humanReviewStatus`
4189+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3HumanReviewStatus]
4190+ attr_accessor :human_review_status
4191+
41574192 # The source of the document, same as the [input_gcs_source] field in the
41584193 # request when the batch process started. The batch process is started by take
41594194 # snapshot of that document, since a user can move or change that document
@@ -4185,6 +4220,7 @@ def initialize(**args)
41854220 # Update properties of this object
41864221 def update! ( **args )
41874222 @human_review_operation = args [ :human_review_operation ] if args . key? ( :human_review_operation )
4223+ @human_review_status = args [ :human_review_status ] if args . key? ( :human_review_status )
41884224 @input_gcs_source = args [ :input_gcs_source ] if args . key? ( :input_gcs_source )
41894225 @output_gcs_destination = args [ :output_gcs_destination ] if args . key? ( :output_gcs_destination )
41904226 @status = args [ :status ] if args . key? ( :status )
@@ -4205,6 +4241,13 @@ class GoogleCloudDocumentaiV1beta3BatchProcessRequest
42054241 # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchOutputConfig]
42064242 attr_accessor :output_config
42074243
4244+ # Whether Human Review feature should be skipped for this request. Default to
4245+ # false.
4246+ # Corresponds to the JSON property `skipHumanReview`
4247+ # @return [Boolean]
4248+ attr_accessor :skip_human_review
4249+ alias_method :skip_human_review? , :skip_human_review
4250+
42084251 def initialize ( **args )
42094252 update! ( **args )
42104253 end
@@ -4213,6 +4256,7 @@ def initialize(**args)
42134256 def update! ( **args )
42144257 @input_configs = args [ :input_configs ] if args . key? ( :input_configs )
42154258 @output_config = args [ :output_config ] if args . key? ( :output_config )
4259+ @skip_human_review = args [ :skip_human_review ] if args . key? ( :skip_human_review )
42164260 end
42174261 end
42184262
@@ -5769,6 +5813,39 @@ def update!(**args)
57695813 end
57705814 end
57715815
5816+ # The status of human review on a processed document.
5817+ class GoogleCloudDocumentaiV1beta3HumanReviewStatus
5818+ include Google ::Apis ::Core ::Hashable
5819+
5820+ # The name of the operation triggered by the processed document. Non-empty only
5821+ # when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has the same response type
5822+ # and metadata as the long running operation returned by [ReviewDocument] method.
5823+ # Corresponds to the JSON property `humanReviewOperation`
5824+ # @return [String]
5825+ attr_accessor :human_review_operation
5826+
5827+ # The state of human review on the processing request.
5828+ # Corresponds to the JSON property `state`
5829+ # @return [String]
5830+ attr_accessor :state
5831+
5832+ # A message providing more details about the human review state.
5833+ # Corresponds to the JSON property `stateMessage`
5834+ # @return [String]
5835+ attr_accessor :state_message
5836+
5837+ def initialize ( **args )
5838+ update! ( **args )
5839+ end
5840+
5841+ # Update properties of this object
5842+ def update! ( **args )
5843+ @human_review_operation = args [ :human_review_operation ] if args . key? ( :human_review_operation )
5844+ @state = args [ :state ] if args . key? ( :state )
5845+ @state_message = args [ :state_message ] if args . key? ( :state_message )
5846+ end
5847+ end
5848+
57725849 # A vertex represents a 2D point in the image. NOTE: the normalized vertex
57735850 # coordinates are relative to the original image and range from 0 to 1.
57745851 class GoogleCloudDocumentaiV1beta3NormalizedVertex
@@ -5840,11 +5917,16 @@ class GoogleCloudDocumentaiV1beta3ProcessResponse
58405917 # The name of the operation triggered by the processed document. If the human
58415918 # review process is not triggered, this field will be empty. It has the same
58425919 # response type and metadata as the long running operation returned by
5843- # ReviewDocument method.
5920+ # ReviewDocument method. .
58445921 # Corresponds to the JSON property `humanReviewOperation`
58455922 # @return [String]
58465923 attr_accessor :human_review_operation
58475924
5925+ # The status of human review on a processed document.
5926+ # Corresponds to the JSON property `humanReviewStatus`
5927+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3HumanReviewStatus]
5928+ attr_accessor :human_review_status
5929+
58485930 def initialize ( **args )
58495931 update! ( **args )
58505932 end
@@ -5853,6 +5935,7 @@ def initialize(**args)
58535935 def update! ( **args )
58545936 @document = args [ :document ] if args . key? ( :document )
58555937 @human_review_operation = args [ :human_review_operation ] if args . key? ( :human_review_operation )
5938+ @human_review_status = args [ :human_review_status ] if args . key? ( :human_review_status )
58565939 end
58575940 end
58585941
0 commit comments