google-apis-documentai_v1 0.68.0 → 0.69.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7552c94efe3e692cf32144aa0630cbc1f5c947b20e8b785c4aaebd408404ee8a
4
- data.tar.gz: d8c395ee20a009a0eed46481a6d155a032cfa5e3fd75ba752cfa28b3bd1d4927
3
+ metadata.gz: ce89a709df8bf1971bd9242407ba2f2f94e9eef17475ddbb3483c3ffb6ff2256
4
+ data.tar.gz: 6686d2a00ab1d4fa85f6d947ca1c943f6673170ef5379e354ae541a2392c6fda
5
5
  SHA512:
6
- metadata.gz: 4a156e5df4624f14df2e2825986a58b157306ce9c1f6527ca897a64127edd6e44d8e6fee54de29b2c1dc3a8ea61e27fc77ab85e04c28e791e4affea294d6f65e
7
- data.tar.gz: 54ae25281dd53219bb45036fa5ba03c85e61c245d199dd51e9d18c13244c89a1a757378f997be5f51d9223cbc42c6523570ec002a94d0dab9603f42d33b1adf2
6
+ metadata.gz: 41465e7d1a0610bea2e160bec4792edf39f78110d21b4b983a38e9f6b8d71ae5cc98d819eb9cfb750d96c546c69ae3b3b5990d0b7172bd77328994abe66b6593
7
+ data.tar.gz: 2f8098594f0048a1d9488ee26ba59c78011f0df5b347c17b57a7ef72a4ebdc4ba0fab59cf6e1cacddd238e6394338e5e91fdf93ae2e2d04fae39622839f3c289
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-documentai_v1
2
2
 
3
+ ### v0.69.0 (2023-07-16)
4
+
5
+ * Regenerated from discovery document revision 20230706
6
+
3
7
  ### v0.68.0 (2023-06-25)
4
8
 
5
9
  * Regenerated from discovery document revision 20230619
@@ -813,6 +813,11 @@ module Google
813
813
  # @return [String]
814
814
  attr_accessor :input_gcs_source
815
815
 
816
+ # Document Identifier.
817
+ # Corresponds to the JSON property `outputDocumentId`
818
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3DocumentId]
819
+ attr_accessor :output_document_id
820
+
816
821
  # The output_gcs_destination of the processed document if it was successful,
817
822
  # otherwise empty.
818
823
  # Corresponds to the JSON property `outputGcsDestination`
@@ -836,6 +841,7 @@ module Google
836
841
  # Update properties of this object
837
842
  def update!(**args)
838
843
  @input_gcs_source = args[:input_gcs_source] if args.key?(:input_gcs_source)
844
+ @output_document_id = args[:output_document_id] if args.key?(:output_document_id)
839
845
  @output_gcs_destination = args[:output_gcs_destination] if args.key?(:output_gcs_destination)
840
846
  @status = args[:status] if args.key?(:status)
841
847
  end
@@ -1060,6 +1066,26 @@ module Google
1060
1066
  class GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponse
1061
1067
  include Google::Apis::Core::Hashable
1062
1068
 
1069
+ # The `Status` type defines a logical error model that is suitable for different
1070
+ # programming environments, including REST APIs and RPC APIs. It is used by [
1071
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
1072
+ # data: error code, error message, and error details. You can find out more
1073
+ # about this error model and how to work with it in the [API Design Guide](https:
1074
+ # //cloud.google.com/apis/design/errors).
1075
+ # Corresponds to the JSON property `sampleTestStatus`
1076
+ # @return [Google::Apis::DocumentaiV1::GoogleRpcStatus]
1077
+ attr_accessor :sample_test_status
1078
+
1079
+ # The `Status` type defines a logical error model that is suitable for different
1080
+ # programming environments, including REST APIs and RPC APIs. It is used by [
1081
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
1082
+ # data: error code, error message, and error details. You can find out more
1083
+ # about this error model and how to work with it in the [API Design Guide](https:
1084
+ # //cloud.google.com/apis/design/errors).
1085
+ # Corresponds to the JSON property `sampleTrainingStatus`
1086
+ # @return [Google::Apis::DocumentaiV1::GoogleRpcStatus]
1087
+ attr_accessor :sample_training_status
1088
+
1063
1089
  # The result of the sampling process.
1064
1090
  # Corresponds to the JSON property `selectedDocuments`
1065
1091
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponseSelectedDocument>]
@@ -1071,6 +1097,8 @@ module Google
1071
1097
 
1072
1098
  # Update properties of this object
1073
1099
  def update!(**args)
1100
+ @sample_test_status = args[:sample_test_status] if args.key?(:sample_test_status)
1101
+ @sample_training_status = args[:sample_training_status] if args.key?(:sample_training_status)
1074
1102
  @selected_documents = args[:selected_documents] if args.key?(:selected_documents)
1075
1103
  end
1076
1104
  end
@@ -1480,6 +1508,11 @@ module Google
1480
1508
  # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1BatchDocumentsInputConfig]
1481
1509
  attr_accessor :input_documents
1482
1510
 
1511
+ # Options for Process API
1512
+ # Corresponds to the JSON property `processOptions`
1513
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessOptions]
1514
+ attr_accessor :process_options
1515
+
1483
1516
  # Whether human review should be skipped for this request. Default to `false`.
1484
1517
  # Corresponds to the JSON property `skipHumanReview`
1485
1518
  # @return [Boolean]
@@ -1494,6 +1527,7 @@ module Google
1494
1527
  def update!(**args)
1495
1528
  @document_output_config = args[:document_output_config] if args.key?(:document_output_config)
1496
1529
  @input_documents = args[:input_documents] if args.key?(:input_documents)
1530
+ @process_options = args[:process_options] if args.key?(:process_options)
1497
1531
  @skip_human_review = args[:skip_human_review] if args.key?(:skip_human_review)
1498
1532
  end
1499
1533
  end
@@ -4420,6 +4454,109 @@ module Google
4420
4454
  end
4421
4455
  end
4422
4456
 
4457
+ # Config for Document OCR.
4458
+ class GoogleCloudDocumentaiV1OcrConfig
4459
+ include Google::Apis::Core::Hashable
4460
+
4461
+ # A list of advanced OCR options to further fine-tune OCR behavior. Current
4462
+ # valid values are: - `legacy_layout`: a heuristics layout detection algorithm,
4463
+ # which serves as an alternative to the current ML-based layout detection
4464
+ # algorithm. Customers can choose the best suitable layout algorithm based on
4465
+ # their situation.
4466
+ # Corresponds to the JSON property `advancedOcrOptions`
4467
+ # @return [Array<String>]
4468
+ attr_accessor :advanced_ocr_options
4469
+
4470
+ # Turn on font id model and returns font style information.
4471
+ # Corresponds to the JSON property `computeStyleInfo`
4472
+ # @return [Boolean]
4473
+ attr_accessor :compute_style_info
4474
+ alias_method :compute_style_info?, :compute_style_info
4475
+
4476
+ # Enables intelligent document quality scores after OCR. Can help with
4477
+ # diagnosing why OCR responses are of poor quality for a given input. Adds
4478
+ # additional latency comparable to regular OCR to the process call.
4479
+ # Corresponds to the JSON property `enableImageQualityScores`
4480
+ # @return [Boolean]
4481
+ attr_accessor :enable_image_quality_scores
4482
+ alias_method :enable_image_quality_scores?, :enable_image_quality_scores
4483
+
4484
+ # Enables special handling for PDFs with existing text information. Results in
4485
+ # better text extraction quality in such PDF inputs.
4486
+ # Corresponds to the JSON property `enableNativePdfParsing`
4487
+ # @return [Boolean]
4488
+ attr_accessor :enable_native_pdf_parsing
4489
+ alias_method :enable_native_pdf_parsing?, :enable_native_pdf_parsing
4490
+
4491
+ # Includes symbol level OCR information if set to true.
4492
+ # Corresponds to the JSON property `enableSymbol`
4493
+ # @return [Boolean]
4494
+ attr_accessor :enable_symbol
4495
+ alias_method :enable_symbol?, :enable_symbol
4496
+
4497
+ # Hints for OCR Engine
4498
+ # Corresponds to the JSON property `hints`
4499
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1OcrConfigHints]
4500
+ attr_accessor :hints
4501
+
4502
+ def initialize(**args)
4503
+ update!(**args)
4504
+ end
4505
+
4506
+ # Update properties of this object
4507
+ def update!(**args)
4508
+ @advanced_ocr_options = args[:advanced_ocr_options] if args.key?(:advanced_ocr_options)
4509
+ @compute_style_info = args[:compute_style_info] if args.key?(:compute_style_info)
4510
+ @enable_image_quality_scores = args[:enable_image_quality_scores] if args.key?(:enable_image_quality_scores)
4511
+ @enable_native_pdf_parsing = args[:enable_native_pdf_parsing] if args.key?(:enable_native_pdf_parsing)
4512
+ @enable_symbol = args[:enable_symbol] if args.key?(:enable_symbol)
4513
+ @hints = args[:hints] if args.key?(:hints)
4514
+ end
4515
+ end
4516
+
4517
+ # Hints for OCR Engine
4518
+ class GoogleCloudDocumentaiV1OcrConfigHints
4519
+ include Google::Apis::Core::Hashable
4520
+
4521
+ # List of BCP-47 language codes to use for OCR. In most cases, not specifying it
4522
+ # yields the best results since it enables automatic language detection. For
4523
+ # languages based on the Latin alphabet, setting hints is not needed. In rare
4524
+ # cases, when the language of the text in the image is known, setting a hint
4525
+ # will help get better results (although it will be a significant hindrance if
4526
+ # the hint is wrong).
4527
+ # Corresponds to the JSON property `languageHints`
4528
+ # @return [Array<String>]
4529
+ attr_accessor :language_hints
4530
+
4531
+ def initialize(**args)
4532
+ update!(**args)
4533
+ end
4534
+
4535
+ # Update properties of this object
4536
+ def update!(**args)
4537
+ @language_hints = args[:language_hints] if args.key?(:language_hints)
4538
+ end
4539
+ end
4540
+
4541
+ # Options for Process API
4542
+ class GoogleCloudDocumentaiV1ProcessOptions
4543
+ include Google::Apis::Core::Hashable
4544
+
4545
+ # Config for Document OCR.
4546
+ # Corresponds to the JSON property `ocrConfig`
4547
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1OcrConfig]
4548
+ attr_accessor :ocr_config
4549
+
4550
+ def initialize(**args)
4551
+ update!(**args)
4552
+ end
4553
+
4554
+ # Update properties of this object
4555
+ def update!(**args)
4556
+ @ocr_config = args[:ocr_config] if args.key?(:ocr_config)
4557
+ end
4558
+ end
4559
+
4423
4560
  # Request message for the ProcessDocument method.
4424
4561
  class GoogleCloudDocumentaiV1ProcessRequest
4425
4562
  include Google::Apis::Core::Hashable
@@ -4431,6 +4568,11 @@ module Google
4431
4568
  # @return [String]
4432
4569
  attr_accessor :field_mask
4433
4570
 
4571
+ # Specifies a document stored on Cloud Storage.
4572
+ # Corresponds to the JSON property `gcsDocument`
4573
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1GcsDocument]
4574
+ attr_accessor :gcs_document
4575
+
4434
4576
  # Document represents the canonical document resource in Document AI. It is an
4435
4577
  # interchange format that provides insights into documents and allows for
4436
4578
  # collaboration between users and Document AI to iterate and optimize for
@@ -4439,6 +4581,11 @@ module Google
4439
4581
  # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1Document]
4440
4582
  attr_accessor :inline_document
4441
4583
 
4584
+ # Options for Process API
4585
+ # Corresponds to the JSON property `processOptions`
4586
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessOptions]
4587
+ attr_accessor :process_options
4588
+
4442
4589
  # Payload message of raw document content (bytes).
4443
4590
  # Corresponds to the JSON property `rawDocument`
4444
4591
  # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1RawDocument]
@@ -4457,7 +4604,9 @@ module Google
4457
4604
  # Update properties of this object
4458
4605
  def update!(**args)
4459
4606
  @field_mask = args[:field_mask] if args.key?(:field_mask)
4607
+ @gcs_document = args[:gcs_document] if args.key?(:gcs_document)
4460
4608
  @inline_document = args[:inline_document] if args.key?(:inline_document)
4609
+ @process_options = args[:process_options] if args.key?(:process_options)
4461
4610
  @raw_document = args[:raw_document] if args.key?(:raw_document)
4462
4611
  @skip_human_review = args[:skip_human_review] if args.key?(:skip_human_review)
4463
4612
  end
@@ -9440,6 +9589,86 @@ module Google
9440
9589
  end
9441
9590
  end
9442
9591
 
9592
+ #
9593
+ class GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadata
9594
+ include Google::Apis::Core::Hashable
9595
+
9596
+ # The common metadata for long running operations.
9597
+ # Corresponds to the JSON property `commonMetadata`
9598
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3CommonOperationMetadata]
9599
+ attr_accessor :common_metadata
9600
+
9601
+ # Total number of documents that failed to be deleted in storage.
9602
+ # Corresponds to the JSON property `errorDocumentCount`
9603
+ # @return [Fixnum]
9604
+ attr_accessor :error_document_count
9605
+
9606
+ # The list of response details of each document.
9607
+ # Corresponds to the JSON property `individualBatchDeleteStatuses`
9608
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus>]
9609
+ attr_accessor :individual_batch_delete_statuses
9610
+
9611
+ # Total number of documents deleting from dataset.
9612
+ # Corresponds to the JSON property `totalDocumentCount`
9613
+ # @return [Fixnum]
9614
+ attr_accessor :total_document_count
9615
+
9616
+ def initialize(**args)
9617
+ update!(**args)
9618
+ end
9619
+
9620
+ # Update properties of this object
9621
+ def update!(**args)
9622
+ @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
9623
+ @error_document_count = args[:error_document_count] if args.key?(:error_document_count)
9624
+ @individual_batch_delete_statuses = args[:individual_batch_delete_statuses] if args.key?(:individual_batch_delete_statuses)
9625
+ @total_document_count = args[:total_document_count] if args.key?(:total_document_count)
9626
+ end
9627
+ end
9628
+
9629
+ # The status of each individual document in the batch delete process.
9630
+ class GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus
9631
+ include Google::Apis::Core::Hashable
9632
+
9633
+ # Document Identifier.
9634
+ # Corresponds to the JSON property `documentId`
9635
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3DocumentId]
9636
+ attr_accessor :document_id
9637
+
9638
+ # The `Status` type defines a logical error model that is suitable for different
9639
+ # programming environments, including REST APIs and RPC APIs. It is used by [
9640
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
9641
+ # data: error code, error message, and error details. You can find out more
9642
+ # about this error model and how to work with it in the [API Design Guide](https:
9643
+ # //cloud.google.com/apis/design/errors).
9644
+ # Corresponds to the JSON property `status`
9645
+ # @return [Google::Apis::DocumentaiV1::GoogleRpcStatus]
9646
+ attr_accessor :status
9647
+
9648
+ def initialize(**args)
9649
+ update!(**args)
9650
+ end
9651
+
9652
+ # Update properties of this object
9653
+ def update!(**args)
9654
+ @document_id = args[:document_id] if args.key?(:document_id)
9655
+ @status = args[:status] if args.key?(:status)
9656
+ end
9657
+ end
9658
+
9659
+ # Response of the delete documents operation.
9660
+ class GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsResponse
9661
+ include Google::Apis::Core::Hashable
9662
+
9663
+ def initialize(**args)
9664
+ update!(**args)
9665
+ end
9666
+
9667
+ # Update properties of this object
9668
+ def update!(**args)
9669
+ end
9670
+ end
9671
+
9443
9672
  # The long-running operation metadata for BatchProcessDocuments.
9444
9673
  class GoogleCloudDocumentaiV1beta3BatchProcessMetadata
9445
9674
  include Google::Apis::Core::Hashable
@@ -9594,6 +9823,128 @@ module Google
9594
9823
  end
9595
9824
  end
9596
9825
 
9826
+ # A singleton resource under a Processor which configures a collection of
9827
+ # documents.
9828
+ class GoogleCloudDocumentaiV1beta3Dataset
9829
+ include Google::Apis::Core::Hashable
9830
+
9831
+ # Configuration specific to the Document AI Warehouse-based implementation.
9832
+ # Corresponds to the JSON property `documentWarehouseConfig`
9833
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig]
9834
+ attr_accessor :document_warehouse_config
9835
+
9836
+ # Configuration specific to the Cloud Storage-based implementation.
9837
+ # Corresponds to the JSON property `gcsManagedConfig`
9838
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3DatasetGcsManagedConfig]
9839
+ attr_accessor :gcs_managed_config
9840
+
9841
+ # Dataset resource name. Format: `projects/`project`/locations/`location`/
9842
+ # processors/`processor`/dataset`
9843
+ # Corresponds to the JSON property `name`
9844
+ # @return [String]
9845
+ attr_accessor :name
9846
+
9847
+ # Configuration specific to spanner-based indexing.
9848
+ # Corresponds to the JSON property `spannerIndexingConfig`
9849
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig]
9850
+ attr_accessor :spanner_indexing_config
9851
+
9852
+ # Required. State of the dataset. Ignored when updating dataset.
9853
+ # Corresponds to the JSON property `state`
9854
+ # @return [String]
9855
+ attr_accessor :state
9856
+
9857
+ # Configuration specific to an unmanaged dataset.
9858
+ # Corresponds to the JSON property `unmanagedDatasetConfig`
9859
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3DatasetUnmanagedDatasetConfig]
9860
+ attr_accessor :unmanaged_dataset_config
9861
+
9862
+ def initialize(**args)
9863
+ update!(**args)
9864
+ end
9865
+
9866
+ # Update properties of this object
9867
+ def update!(**args)
9868
+ @document_warehouse_config = args[:document_warehouse_config] if args.key?(:document_warehouse_config)
9869
+ @gcs_managed_config = args[:gcs_managed_config] if args.key?(:gcs_managed_config)
9870
+ @name = args[:name] if args.key?(:name)
9871
+ @spanner_indexing_config = args[:spanner_indexing_config] if args.key?(:spanner_indexing_config)
9872
+ @state = args[:state] if args.key?(:state)
9873
+ @unmanaged_dataset_config = args[:unmanaged_dataset_config] if args.key?(:unmanaged_dataset_config)
9874
+ end
9875
+ end
9876
+
9877
+ # Configuration specific to the Document AI Warehouse-based implementation.
9878
+ class GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig
9879
+ include Google::Apis::Core::Hashable
9880
+
9881
+ # Output only. The collection in Document AI Warehouse associated with the
9882
+ # dataset.
9883
+ # Corresponds to the JSON property `collection`
9884
+ # @return [String]
9885
+ attr_accessor :collection
9886
+
9887
+ # Output only. The schema in Document AI Warehouse associated with the dataset.
9888
+ # Corresponds to the JSON property `schema`
9889
+ # @return [String]
9890
+ attr_accessor :schema
9891
+
9892
+ def initialize(**args)
9893
+ update!(**args)
9894
+ end
9895
+
9896
+ # Update properties of this object
9897
+ def update!(**args)
9898
+ @collection = args[:collection] if args.key?(:collection)
9899
+ @schema = args[:schema] if args.key?(:schema)
9900
+ end
9901
+ end
9902
+
9903
+ # Configuration specific to the Cloud Storage-based implementation.
9904
+ class GoogleCloudDocumentaiV1beta3DatasetGcsManagedConfig
9905
+ include Google::Apis::Core::Hashable
9906
+
9907
+ # Specifies all documents on Cloud Storage with a common prefix.
9908
+ # Corresponds to the JSON property `gcsPrefix`
9909
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3GcsPrefix]
9910
+ attr_accessor :gcs_prefix
9911
+
9912
+ def initialize(**args)
9913
+ update!(**args)
9914
+ end
9915
+
9916
+ # Update properties of this object
9917
+ def update!(**args)
9918
+ @gcs_prefix = args[:gcs_prefix] if args.key?(:gcs_prefix)
9919
+ end
9920
+ end
9921
+
9922
+ # Configuration specific to spanner-based indexing.
9923
+ class GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig
9924
+ include Google::Apis::Core::Hashable
9925
+
9926
+ def initialize(**args)
9927
+ update!(**args)
9928
+ end
9929
+
9930
+ # Update properties of this object
9931
+ def update!(**args)
9932
+ end
9933
+ end
9934
+
9935
+ # Configuration specific to an unmanaged dataset.
9936
+ class GoogleCloudDocumentaiV1beta3DatasetUnmanagedDatasetConfig
9937
+ include Google::Apis::Core::Hashable
9938
+
9939
+ def initialize(**args)
9940
+ update!(**args)
9941
+ end
9942
+
9943
+ # Update properties of this object
9944
+ def update!(**args)
9945
+ end
9946
+ end
9947
+
9597
9948
  # The long-running operation metadata for the DeleteProcessor method.
9598
9949
  class GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata
9599
9950
  include Google::Apis::Core::Hashable
@@ -9697,6 +10048,85 @@ module Google
9697
10048
  end
9698
10049
  end
9699
10050
 
10051
+ # Document Identifier.
10052
+ class GoogleCloudDocumentaiV1beta3DocumentId
10053
+ include Google::Apis::Core::Hashable
10054
+
10055
+ # Identifies a document uniquely within the scope of a dataset in the user-
10056
+ # managed Cloud Storage option.
10057
+ # Corresponds to the JSON property `gcsManagedDocId`
10058
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3DocumentIdGcsManagedDocumentId]
10059
+ attr_accessor :gcs_managed_doc_id
10060
+
10061
+ # The revision reference specifies which revision on the document to read.
10062
+ # Corresponds to the JSON property `revisionRef`
10063
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3RevisionRef]
10064
+ attr_accessor :revision_ref
10065
+
10066
+ # Identifies a document uniquely within the scope of a dataset in unmanaged
10067
+ # option.
10068
+ # Corresponds to the JSON property `unmanagedDocId`
10069
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3DocumentIdUnmanagedDocumentId]
10070
+ attr_accessor :unmanaged_doc_id
10071
+
10072
+ def initialize(**args)
10073
+ update!(**args)
10074
+ end
10075
+
10076
+ # Update properties of this object
10077
+ def update!(**args)
10078
+ @gcs_managed_doc_id = args[:gcs_managed_doc_id] if args.key?(:gcs_managed_doc_id)
10079
+ @revision_ref = args[:revision_ref] if args.key?(:revision_ref)
10080
+ @unmanaged_doc_id = args[:unmanaged_doc_id] if args.key?(:unmanaged_doc_id)
10081
+ end
10082
+ end
10083
+
10084
+ # Identifies a document uniquely within the scope of a dataset in the user-
10085
+ # managed Cloud Storage option.
10086
+ class GoogleCloudDocumentaiV1beta3DocumentIdGcsManagedDocumentId
10087
+ include Google::Apis::Core::Hashable
10088
+
10089
+ # Id of the document (indexed) managed by Content Warehouse.
10090
+ # Corresponds to the JSON property `cwDocId`
10091
+ # @return [String]
10092
+ attr_accessor :cw_doc_id
10093
+
10094
+ # Required. The Cloud Storage URI where the actual document is stored.
10095
+ # Corresponds to the JSON property `gcsUri`
10096
+ # @return [String]
10097
+ attr_accessor :gcs_uri
10098
+
10099
+ def initialize(**args)
10100
+ update!(**args)
10101
+ end
10102
+
10103
+ # Update properties of this object
10104
+ def update!(**args)
10105
+ @cw_doc_id = args[:cw_doc_id] if args.key?(:cw_doc_id)
10106
+ @gcs_uri = args[:gcs_uri] if args.key?(:gcs_uri)
10107
+ end
10108
+ end
10109
+
10110
+ # Identifies a document uniquely within the scope of a dataset in unmanaged
10111
+ # option.
10112
+ class GoogleCloudDocumentaiV1beta3DocumentIdUnmanagedDocumentId
10113
+ include Google::Apis::Core::Hashable
10114
+
10115
+ # Required. The id of the document.
10116
+ # Corresponds to the JSON property `docId`
10117
+ # @return [String]
10118
+ attr_accessor :doc_id
10119
+
10120
+ def initialize(**args)
10121
+ update!(**args)
10122
+ end
10123
+
10124
+ # Update properties of this object
10125
+ def update!(**args)
10126
+ @doc_id = args[:doc_id] if args.key?(:doc_id)
10127
+ end
10128
+ end
10129
+
9700
10130
  # The long-running operation metadata for the EnableProcessor method.
9701
10131
  class GoogleCloudDocumentaiV1beta3EnableProcessorMetadata
9702
10132
  include Google::Apis::Core::Hashable
@@ -9768,6 +10198,25 @@ module Google
9768
10198
  end
9769
10199
  end
9770
10200
 
10201
+ # Specifies all documents on Cloud Storage with a common prefix.
10202
+ class GoogleCloudDocumentaiV1beta3GcsPrefix
10203
+ include Google::Apis::Core::Hashable
10204
+
10205
+ # The URI prefix.
10206
+ # Corresponds to the JSON property `gcsUriPrefix`
10207
+ # @return [String]
10208
+ attr_accessor :gcs_uri_prefix
10209
+
10210
+ def initialize(**args)
10211
+ update!(**args)
10212
+ end
10213
+
10214
+ # Update properties of this object
10215
+ def update!(**args)
10216
+ @gcs_uri_prefix = args[:gcs_uri_prefix] if args.key?(:gcs_uri_prefix)
10217
+ end
10218
+ end
10219
+
9771
10220
  # The status of human review on a processed document.
9772
10221
  class GoogleCloudDocumentaiV1beta3HumanReviewStatus
9773
10222
  include Google::Apis::Core::Hashable
@@ -9802,6 +10251,124 @@ module Google
9802
10251
  end
9803
10252
  end
9804
10253
 
10254
+ # Metadata of the import document operation.
10255
+ class GoogleCloudDocumentaiV1beta3ImportDocumentsMetadata
10256
+ include Google::Apis::Core::Hashable
10257
+
10258
+ # The common metadata for long running operations.
10259
+ # Corresponds to the JSON property `commonMetadata`
10260
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3CommonOperationMetadata]
10261
+ attr_accessor :common_metadata
10262
+
10263
+ # Validation statuses of the batch documents import config.
10264
+ # Corresponds to the JSON property `importConfigValidationResults`
10265
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataImportConfigValidationResult>]
10266
+ attr_accessor :import_config_validation_results
10267
+
10268
+ # The list of response details of each document.
10269
+ # Corresponds to the JSON property `individualImportStatuses`
10270
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataIndividualImportStatus>]
10271
+ attr_accessor :individual_import_statuses
10272
+
10273
+ # Total number of the documents that are qualified for importing.
10274
+ # Corresponds to the JSON property `totalDocumentCount`
10275
+ # @return [Fixnum]
10276
+ attr_accessor :total_document_count
10277
+
10278
+ def initialize(**args)
10279
+ update!(**args)
10280
+ end
10281
+
10282
+ # Update properties of this object
10283
+ def update!(**args)
10284
+ @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
10285
+ @import_config_validation_results = args[:import_config_validation_results] if args.key?(:import_config_validation_results)
10286
+ @individual_import_statuses = args[:individual_import_statuses] if args.key?(:individual_import_statuses)
10287
+ @total_document_count = args[:total_document_count] if args.key?(:total_document_count)
10288
+ end
10289
+ end
10290
+
10291
+ # The validation status of each import config. Status is set to errors if there
10292
+ # is no documents to import in the import_config, or OK if the operation will
10293
+ # try to proceed at least one document.
10294
+ class GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataImportConfigValidationResult
10295
+ include Google::Apis::Core::Hashable
10296
+
10297
+ # The source Cloud Storage URI specified in the import config.
10298
+ # Corresponds to the JSON property `inputGcsSource`
10299
+ # @return [String]
10300
+ attr_accessor :input_gcs_source
10301
+
10302
+ # The `Status` type defines a logical error model that is suitable for different
10303
+ # programming environments, including REST APIs and RPC APIs. It is used by [
10304
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
10305
+ # data: error code, error message, and error details. You can find out more
10306
+ # about this error model and how to work with it in the [API Design Guide](https:
10307
+ # //cloud.google.com/apis/design/errors).
10308
+ # Corresponds to the JSON property `status`
10309
+ # @return [Google::Apis::DocumentaiV1::GoogleRpcStatus]
10310
+ attr_accessor :status
10311
+
10312
+ def initialize(**args)
10313
+ update!(**args)
10314
+ end
10315
+
10316
+ # Update properties of this object
10317
+ def update!(**args)
10318
+ @input_gcs_source = args[:input_gcs_source] if args.key?(:input_gcs_source)
10319
+ @status = args[:status] if args.key?(:status)
10320
+ end
10321
+ end
10322
+
10323
+ # The status of each individual document in the import process.
10324
+ class GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataIndividualImportStatus
10325
+ include Google::Apis::Core::Hashable
10326
+
10327
+ # The source Cloud Storage URI of the document.
10328
+ # Corresponds to the JSON property `inputGcsSource`
10329
+ # @return [String]
10330
+ attr_accessor :input_gcs_source
10331
+
10332
+ # Document Identifier.
10333
+ # Corresponds to the JSON property `outputDocumentId`
10334
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3DocumentId]
10335
+ attr_accessor :output_document_id
10336
+
10337
+ # The `Status` type defines a logical error model that is suitable for different
10338
+ # programming environments, including REST APIs and RPC APIs. It is used by [
10339
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
10340
+ # data: error code, error message, and error details. You can find out more
10341
+ # about this error model and how to work with it in the [API Design Guide](https:
10342
+ # //cloud.google.com/apis/design/errors).
10343
+ # Corresponds to the JSON property `status`
10344
+ # @return [Google::Apis::DocumentaiV1::GoogleRpcStatus]
10345
+ attr_accessor :status
10346
+
10347
+ def initialize(**args)
10348
+ update!(**args)
10349
+ end
10350
+
10351
+ # Update properties of this object
10352
+ def update!(**args)
10353
+ @input_gcs_source = args[:input_gcs_source] if args.key?(:input_gcs_source)
10354
+ @output_document_id = args[:output_document_id] if args.key?(:output_document_id)
10355
+ @status = args[:status] if args.key?(:status)
10356
+ end
10357
+ end
10358
+
10359
+ # Response of the import document operation.
10360
+ class GoogleCloudDocumentaiV1beta3ImportDocumentsResponse
10361
+ include Google::Apis::Core::Hashable
10362
+
10363
+ def initialize(**args)
10364
+ update!(**args)
10365
+ end
10366
+
10367
+ # Update properties of this object
10368
+ def update!(**args)
10369
+ end
10370
+ end
10371
+
9805
10372
  # The long-running operation metadata for the ImportProcessorVersion method.
9806
10373
  class GoogleCloudDocumentaiV1beta3ImportProcessorVersionMetadata
9807
10374
  include Google::Apis::Core::Hashable
@@ -9922,6 +10489,39 @@ module Google
9922
10489
  end
9923
10490
  end
9924
10491
 
10492
+ # The revision reference specifies which revision on the document to read.
10493
+ class GoogleCloudDocumentaiV1beta3RevisionRef
10494
+ include Google::Apis::Core::Hashable
10495
+
10496
+ # Reads the revision generated by the processor version. The format takes the
10497
+ # full resource name of processor version. `projects/`project`/locations/`
10498
+ # location`/processors/`processor`/processorVersions/`processorVersion``
10499
+ # Corresponds to the JSON property `latestProcessorVersion`
10500
+ # @return [String]
10501
+ attr_accessor :latest_processor_version
10502
+
10503
+ # Reads the revision by the predefined case.
10504
+ # Corresponds to the JSON property `revisionCase`
10505
+ # @return [String]
10506
+ attr_accessor :revision_case
10507
+
10508
+ # Reads the revision given by the id.
10509
+ # Corresponds to the JSON property `revisionId`
10510
+ # @return [String]
10511
+ attr_accessor :revision_id
10512
+
10513
+ def initialize(**args)
10514
+ update!(**args)
10515
+ end
10516
+
10517
+ # Update properties of this object
10518
+ def update!(**args)
10519
+ @latest_processor_version = args[:latest_processor_version] if args.key?(:latest_processor_version)
10520
+ @revision_case = args[:revision_case] if args.key?(:revision_case)
10521
+ @revision_id = args[:revision_id] if args.key?(:revision_id)
10522
+ end
10523
+ end
10524
+
9925
10525
  # The long-running operation metadata for the SetDefaultProcessorVersion method.
9926
10526
  class GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata
9927
10527
  include Google::Apis::Core::Hashable
@@ -10079,6 +10679,25 @@ module Google
10079
10679
  end
10080
10680
  end
10081
10681
 
10682
+ #
10683
+ class GoogleCloudDocumentaiV1beta3UpdateDatasetOperationMetadata
10684
+ include Google::Apis::Core::Hashable
10685
+
10686
+ # The common metadata for long running operations.
10687
+ # Corresponds to the JSON property `commonMetadata`
10688
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3CommonOperationMetadata]
10689
+ attr_accessor :common_metadata
10690
+
10691
+ def initialize(**args)
10692
+ update!(**args)
10693
+ end
10694
+
10695
+ # Update properties of this object
10696
+ def update!(**args)
10697
+ @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
10698
+ end
10699
+ end
10700
+
10082
10701
  # The response message for Locations.ListLocations.
10083
10702
  class GoogleCloudLocationListLocationsResponse
10084
10703
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DocumentaiV1
18
18
  # Version of the google-apis-documentai_v1 gem
19
- GEM_VERSION = "0.68.0"
19
+ GEM_VERSION = "0.69.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230619"
25
+ REVISION = "20230706"
26
26
  end
27
27
  end
28
28
  end
@@ -850,6 +850,24 @@ module Google
850
850
  include Google::Apis::Core::JsonObjectSupport
851
851
  end
852
852
 
853
+ class GoogleCloudDocumentaiV1OcrConfig
854
+ class Representation < Google::Apis::Core::JsonRepresentation; end
855
+
856
+ include Google::Apis::Core::JsonObjectSupport
857
+ end
858
+
859
+ class GoogleCloudDocumentaiV1OcrConfigHints
860
+ class Representation < Google::Apis::Core::JsonRepresentation; end
861
+
862
+ include Google::Apis::Core::JsonObjectSupport
863
+ end
864
+
865
+ class GoogleCloudDocumentaiV1ProcessOptions
866
+ class Representation < Google::Apis::Core::JsonRepresentation; end
867
+
868
+ include Google::Apis::Core::JsonObjectSupport
869
+ end
870
+
853
871
  class GoogleCloudDocumentaiV1ProcessRequest
854
872
  class Representation < Google::Apis::Core::JsonRepresentation; end
855
873
 
@@ -1576,6 +1594,24 @@ module Google
1576
1594
  include Google::Apis::Core::JsonObjectSupport
1577
1595
  end
1578
1596
 
1597
+ class GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadata
1598
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1599
+
1600
+ include Google::Apis::Core::JsonObjectSupport
1601
+ end
1602
+
1603
+ class GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus
1604
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1605
+
1606
+ include Google::Apis::Core::JsonObjectSupport
1607
+ end
1608
+
1609
+ class GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsResponse
1610
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1611
+
1612
+ include Google::Apis::Core::JsonObjectSupport
1613
+ end
1614
+
1579
1615
  class GoogleCloudDocumentaiV1beta3BatchProcessMetadata
1580
1616
  class Representation < Google::Apis::Core::JsonRepresentation; end
1581
1617
 
@@ -1600,6 +1636,36 @@ module Google
1600
1636
  include Google::Apis::Core::JsonObjectSupport
1601
1637
  end
1602
1638
 
1639
+ class GoogleCloudDocumentaiV1beta3Dataset
1640
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1641
+
1642
+ include Google::Apis::Core::JsonObjectSupport
1643
+ end
1644
+
1645
+ class GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig
1646
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1647
+
1648
+ include Google::Apis::Core::JsonObjectSupport
1649
+ end
1650
+
1651
+ class GoogleCloudDocumentaiV1beta3DatasetGcsManagedConfig
1652
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1653
+
1654
+ include Google::Apis::Core::JsonObjectSupport
1655
+ end
1656
+
1657
+ class GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig
1658
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1659
+
1660
+ include Google::Apis::Core::JsonObjectSupport
1661
+ end
1662
+
1663
+ class GoogleCloudDocumentaiV1beta3DatasetUnmanagedDatasetConfig
1664
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1665
+
1666
+ include Google::Apis::Core::JsonObjectSupport
1667
+ end
1668
+
1603
1669
  class GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata
1604
1670
  class Representation < Google::Apis::Core::JsonRepresentation; end
1605
1671
 
@@ -1636,6 +1702,24 @@ module Google
1636
1702
  include Google::Apis::Core::JsonObjectSupport
1637
1703
  end
1638
1704
 
1705
+ class GoogleCloudDocumentaiV1beta3DocumentId
1706
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1707
+
1708
+ include Google::Apis::Core::JsonObjectSupport
1709
+ end
1710
+
1711
+ class GoogleCloudDocumentaiV1beta3DocumentIdGcsManagedDocumentId
1712
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1713
+
1714
+ include Google::Apis::Core::JsonObjectSupport
1715
+ end
1716
+
1717
+ class GoogleCloudDocumentaiV1beta3DocumentIdUnmanagedDocumentId
1718
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1719
+
1720
+ include Google::Apis::Core::JsonObjectSupport
1721
+ end
1722
+
1639
1723
  class GoogleCloudDocumentaiV1beta3EnableProcessorMetadata
1640
1724
  class Representation < Google::Apis::Core::JsonRepresentation; end
1641
1725
 
@@ -1660,12 +1744,42 @@ module Google
1660
1744
  include Google::Apis::Core::JsonObjectSupport
1661
1745
  end
1662
1746
 
1747
+ class GoogleCloudDocumentaiV1beta3GcsPrefix
1748
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1749
+
1750
+ include Google::Apis::Core::JsonObjectSupport
1751
+ end
1752
+
1663
1753
  class GoogleCloudDocumentaiV1beta3HumanReviewStatus
1664
1754
  class Representation < Google::Apis::Core::JsonRepresentation; end
1665
1755
 
1666
1756
  include Google::Apis::Core::JsonObjectSupport
1667
1757
  end
1668
1758
 
1759
+ class GoogleCloudDocumentaiV1beta3ImportDocumentsMetadata
1760
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1761
+
1762
+ include Google::Apis::Core::JsonObjectSupport
1763
+ end
1764
+
1765
+ class GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataImportConfigValidationResult
1766
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1767
+
1768
+ include Google::Apis::Core::JsonObjectSupport
1769
+ end
1770
+
1771
+ class GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataIndividualImportStatus
1772
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1773
+
1774
+ include Google::Apis::Core::JsonObjectSupport
1775
+ end
1776
+
1777
+ class GoogleCloudDocumentaiV1beta3ImportDocumentsResponse
1778
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1779
+
1780
+ include Google::Apis::Core::JsonObjectSupport
1781
+ end
1782
+
1669
1783
  class GoogleCloudDocumentaiV1beta3ImportProcessorVersionMetadata
1670
1784
  class Representation < Google::Apis::Core::JsonRepresentation; end
1671
1785
 
@@ -1690,6 +1804,12 @@ module Google
1690
1804
  include Google::Apis::Core::JsonObjectSupport
1691
1805
  end
1692
1806
 
1807
+ class GoogleCloudDocumentaiV1beta3RevisionRef
1808
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1809
+
1810
+ include Google::Apis::Core::JsonObjectSupport
1811
+ end
1812
+
1693
1813
  class GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata
1694
1814
  class Representation < Google::Apis::Core::JsonRepresentation; end
1695
1815
 
@@ -1732,6 +1852,12 @@ module Google
1732
1852
  include Google::Apis::Core::JsonObjectSupport
1733
1853
  end
1734
1854
 
1855
+ class GoogleCloudDocumentaiV1beta3UpdateDatasetOperationMetadata
1856
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1857
+
1858
+ include Google::Apis::Core::JsonObjectSupport
1859
+ end
1860
+
1735
1861
  class GoogleCloudLocationListLocationsResponse
1736
1862
  class Representation < Google::Apis::Core::JsonRepresentation; end
1737
1863
 
@@ -2091,6 +2217,8 @@ module Google
2091
2217
  # @private
2092
2218
  class Representation < Google::Apis::Core::JsonRepresentation
2093
2219
  property :input_gcs_source, as: 'inputGcsSource'
2220
+ property :output_document_id, as: 'outputDocumentId', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3DocumentId, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3DocumentId::Representation
2221
+
2094
2222
  property :output_gcs_destination, as: 'outputGcsDestination'
2095
2223
  property :status, as: 'status', class: Google::Apis::DocumentaiV1::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1::GoogleRpcStatus::Representation
2096
2224
 
@@ -2176,6 +2304,10 @@ module Google
2176
2304
  class GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponse
2177
2305
  # @private
2178
2306
  class Representation < Google::Apis::Core::JsonRepresentation
2307
+ property :sample_test_status, as: 'sampleTestStatus', class: Google::Apis::DocumentaiV1::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1::GoogleRpcStatus::Representation
2308
+
2309
+ property :sample_training_status, as: 'sampleTrainingStatus', class: Google::Apis::DocumentaiV1::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1::GoogleRpcStatus::Representation
2310
+
2179
2311
  collection :selected_documents, as: 'selectedDocuments', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponseSelectedDocument, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponseSelectedDocument::Representation
2180
2312
 
2181
2313
  end
@@ -2321,6 +2453,8 @@ module Google
2321
2453
 
2322
2454
  property :input_documents, as: 'inputDocuments', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1BatchDocumentsInputConfig, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1BatchDocumentsInputConfig::Representation
2323
2455
 
2456
+ property :process_options, as: 'processOptions', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessOptions, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessOptions::Representation
2457
+
2324
2458
  property :skip_human_review, as: 'skipHumanReview'
2325
2459
  end
2326
2460
  end
@@ -3164,12 +3298,44 @@ module Google
3164
3298
  end
3165
3299
  end
3166
3300
 
3301
+ class GoogleCloudDocumentaiV1OcrConfig
3302
+ # @private
3303
+ class Representation < Google::Apis::Core::JsonRepresentation
3304
+ collection :advanced_ocr_options, as: 'advancedOcrOptions'
3305
+ property :compute_style_info, as: 'computeStyleInfo'
3306
+ property :enable_image_quality_scores, as: 'enableImageQualityScores'
3307
+ property :enable_native_pdf_parsing, as: 'enableNativePdfParsing'
3308
+ property :enable_symbol, as: 'enableSymbol'
3309
+ property :hints, as: 'hints', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1OcrConfigHints, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1OcrConfigHints::Representation
3310
+
3311
+ end
3312
+ end
3313
+
3314
+ class GoogleCloudDocumentaiV1OcrConfigHints
3315
+ # @private
3316
+ class Representation < Google::Apis::Core::JsonRepresentation
3317
+ collection :language_hints, as: 'languageHints'
3318
+ end
3319
+ end
3320
+
3321
+ class GoogleCloudDocumentaiV1ProcessOptions
3322
+ # @private
3323
+ class Representation < Google::Apis::Core::JsonRepresentation
3324
+ property :ocr_config, as: 'ocrConfig', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1OcrConfig, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1OcrConfig::Representation
3325
+
3326
+ end
3327
+ end
3328
+
3167
3329
  class GoogleCloudDocumentaiV1ProcessRequest
3168
3330
  # @private
3169
3331
  class Representation < Google::Apis::Core::JsonRepresentation
3170
3332
  property :field_mask, as: 'fieldMask'
3333
+ property :gcs_document, as: 'gcsDocument', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1GcsDocument, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1GcsDocument::Representation
3334
+
3171
3335
  property :inline_document, as: 'inlineDocument', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1Document, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1Document::Representation
3172
3336
 
3337
+ property :process_options, as: 'processOptions', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessOptions, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessOptions::Representation
3338
+
3173
3339
  property :raw_document, as: 'rawDocument', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1RawDocument, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1RawDocument::Representation
3174
3340
 
3175
3341
  property :skip_human_review, as: 'skipHumanReview'
@@ -4546,6 +4712,34 @@ module Google
4546
4712
  end
4547
4713
  end
4548
4714
 
4715
+ class GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadata
4716
+ # @private
4717
+ class Representation < Google::Apis::Core::JsonRepresentation
4718
+ property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3CommonOperationMetadata::Representation
4719
+
4720
+ property :error_document_count, as: 'errorDocumentCount'
4721
+ collection :individual_batch_delete_statuses, as: 'individualBatchDeleteStatuses', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus::Representation
4722
+
4723
+ property :total_document_count, as: 'totalDocumentCount'
4724
+ end
4725
+ end
4726
+
4727
+ class GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus
4728
+ # @private
4729
+ class Representation < Google::Apis::Core::JsonRepresentation
4730
+ property :document_id, as: 'documentId', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3DocumentId, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3DocumentId::Representation
4731
+
4732
+ property :status, as: 'status', class: Google::Apis::DocumentaiV1::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1::GoogleRpcStatus::Representation
4733
+
4734
+ end
4735
+ end
4736
+
4737
+ class GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsResponse
4738
+ # @private
4739
+ class Representation < Google::Apis::Core::JsonRepresentation
4740
+ end
4741
+ end
4742
+
4549
4743
  class GoogleCloudDocumentaiV1beta3BatchProcessMetadata
4550
4744
  # @private
4551
4745
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4588,6 +4782,50 @@ module Google
4588
4782
  end
4589
4783
  end
4590
4784
 
4785
+ class GoogleCloudDocumentaiV1beta3Dataset
4786
+ # @private
4787
+ class Representation < Google::Apis::Core::JsonRepresentation
4788
+ property :document_warehouse_config, as: 'documentWarehouseConfig', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig::Representation
4789
+
4790
+ property :gcs_managed_config, as: 'gcsManagedConfig', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3DatasetGcsManagedConfig, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3DatasetGcsManagedConfig::Representation
4791
+
4792
+ property :name, as: 'name'
4793
+ property :spanner_indexing_config, as: 'spannerIndexingConfig', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig::Representation
4794
+
4795
+ property :state, as: 'state'
4796
+ property :unmanaged_dataset_config, as: 'unmanagedDatasetConfig', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3DatasetUnmanagedDatasetConfig, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3DatasetUnmanagedDatasetConfig::Representation
4797
+
4798
+ end
4799
+ end
4800
+
4801
+ class GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig
4802
+ # @private
4803
+ class Representation < Google::Apis::Core::JsonRepresentation
4804
+ property :collection, as: 'collection'
4805
+ property :schema, as: 'schema'
4806
+ end
4807
+ end
4808
+
4809
+ class GoogleCloudDocumentaiV1beta3DatasetGcsManagedConfig
4810
+ # @private
4811
+ class Representation < Google::Apis::Core::JsonRepresentation
4812
+ property :gcs_prefix, as: 'gcsPrefix', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3GcsPrefix, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3GcsPrefix::Representation
4813
+
4814
+ end
4815
+ end
4816
+
4817
+ class GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig
4818
+ # @private
4819
+ class Representation < Google::Apis::Core::JsonRepresentation
4820
+ end
4821
+ end
4822
+
4823
+ class GoogleCloudDocumentaiV1beta3DatasetUnmanagedDatasetConfig
4824
+ # @private
4825
+ class Representation < Google::Apis::Core::JsonRepresentation
4826
+ end
4827
+ end
4828
+
4591
4829
  class GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata
4592
4830
  # @private
4593
4831
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4632,6 +4870,33 @@ module Google
4632
4870
  end
4633
4871
  end
4634
4872
 
4873
+ class GoogleCloudDocumentaiV1beta3DocumentId
4874
+ # @private
4875
+ class Representation < Google::Apis::Core::JsonRepresentation
4876
+ property :gcs_managed_doc_id, as: 'gcsManagedDocId', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3DocumentIdGcsManagedDocumentId, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3DocumentIdGcsManagedDocumentId::Representation
4877
+
4878
+ property :revision_ref, as: 'revisionRef', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3RevisionRef, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3RevisionRef::Representation
4879
+
4880
+ property :unmanaged_doc_id, as: 'unmanagedDocId', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3DocumentIdUnmanagedDocumentId, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3DocumentIdUnmanagedDocumentId::Representation
4881
+
4882
+ end
4883
+ end
4884
+
4885
+ class GoogleCloudDocumentaiV1beta3DocumentIdGcsManagedDocumentId
4886
+ # @private
4887
+ class Representation < Google::Apis::Core::JsonRepresentation
4888
+ property :cw_doc_id, as: 'cwDocId'
4889
+ property :gcs_uri, as: 'gcsUri'
4890
+ end
4891
+ end
4892
+
4893
+ class GoogleCloudDocumentaiV1beta3DocumentIdUnmanagedDocumentId
4894
+ # @private
4895
+ class Representation < Google::Apis::Core::JsonRepresentation
4896
+ property :doc_id, as: 'docId'
4897
+ end
4898
+ end
4899
+
4635
4900
  class GoogleCloudDocumentaiV1beta3EnableProcessorMetadata
4636
4901
  # @private
4637
4902
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4661,6 +4926,13 @@ module Google
4661
4926
  end
4662
4927
  end
4663
4928
 
4929
+ class GoogleCloudDocumentaiV1beta3GcsPrefix
4930
+ # @private
4931
+ class Representation < Google::Apis::Core::JsonRepresentation
4932
+ property :gcs_uri_prefix, as: 'gcsUriPrefix'
4933
+ end
4934
+ end
4935
+
4664
4936
  class GoogleCloudDocumentaiV1beta3HumanReviewStatus
4665
4937
  # @private
4666
4938
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4670,6 +4942,45 @@ module Google
4670
4942
  end
4671
4943
  end
4672
4944
 
4945
+ class GoogleCloudDocumentaiV1beta3ImportDocumentsMetadata
4946
+ # @private
4947
+ class Representation < Google::Apis::Core::JsonRepresentation
4948
+ property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3CommonOperationMetadata::Representation
4949
+
4950
+ collection :import_config_validation_results, as: 'importConfigValidationResults', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataImportConfigValidationResult, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataImportConfigValidationResult::Representation
4951
+
4952
+ collection :individual_import_statuses, as: 'individualImportStatuses', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataIndividualImportStatus, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataIndividualImportStatus::Representation
4953
+
4954
+ property :total_document_count, as: 'totalDocumentCount'
4955
+ end
4956
+ end
4957
+
4958
+ class GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataImportConfigValidationResult
4959
+ # @private
4960
+ class Representation < Google::Apis::Core::JsonRepresentation
4961
+ property :input_gcs_source, as: 'inputGcsSource'
4962
+ property :status, as: 'status', class: Google::Apis::DocumentaiV1::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1::GoogleRpcStatus::Representation
4963
+
4964
+ end
4965
+ end
4966
+
4967
+ class GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataIndividualImportStatus
4968
+ # @private
4969
+ class Representation < Google::Apis::Core::JsonRepresentation
4970
+ property :input_gcs_source, as: 'inputGcsSource'
4971
+ property :output_document_id, as: 'outputDocumentId', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3DocumentId, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3DocumentId::Representation
4972
+
4973
+ property :status, as: 'status', class: Google::Apis::DocumentaiV1::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1::GoogleRpcStatus::Representation
4974
+
4975
+ end
4976
+ end
4977
+
4978
+ class GoogleCloudDocumentaiV1beta3ImportDocumentsResponse
4979
+ # @private
4980
+ class Representation < Google::Apis::Core::JsonRepresentation
4981
+ end
4982
+ end
4983
+
4673
4984
  class GoogleCloudDocumentaiV1beta3ImportProcessorVersionMetadata
4674
4985
  # @private
4675
4986
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4707,6 +5018,15 @@ module Google
4707
5018
  end
4708
5019
  end
4709
5020
 
5021
+ class GoogleCloudDocumentaiV1beta3RevisionRef
5022
+ # @private
5023
+ class Representation < Google::Apis::Core::JsonRepresentation
5024
+ property :latest_processor_version, as: 'latestProcessorVersion'
5025
+ property :revision_case, as: 'revisionCase'
5026
+ property :revision_id, as: 'revisionId'
5027
+ end
5028
+ end
5029
+
4710
5030
  class GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata
4711
5031
  # @private
4712
5032
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4766,6 +5086,14 @@ module Google
4766
5086
  end
4767
5087
  end
4768
5088
 
5089
+ class GoogleCloudDocumentaiV1beta3UpdateDatasetOperationMetadata
5090
+ # @private
5091
+ class Representation < Google::Apis::Core::JsonRepresentation
5092
+ property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3CommonOperationMetadata::Representation
5093
+
5094
+ end
5095
+ end
5096
+
4769
5097
  class GoogleCloudLocationListLocationsResponse
4770
5098
  # @private
4771
5099
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-documentai_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.68.0
4
+ version: 0.69.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-02 00:00:00.000000000 Z
11
+ date: 2023-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-documentai_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1/v0.68.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1/v0.69.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-documentai_v1
63
63
  post_install_message:
64
64
  rdoc_options: []