google-apis-documentai_v1 0.67.0 → 0.69.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5455449f01f9d866dd32137255115cf4489a9751cb6c8863992d5f3c525d2926
4
- data.tar.gz: a53f5675060d8801b6b7a2ea33d9752883a1b50a50ac710d9929190e31f6f3f5
3
+ metadata.gz: ce89a709df8bf1971bd9242407ba2f2f94e9eef17475ddbb3483c3ffb6ff2256
4
+ data.tar.gz: 6686d2a00ab1d4fa85f6d947ca1c943f6673170ef5379e354ae541a2392c6fda
5
5
  SHA512:
6
- metadata.gz: be9277dcb23cdcd52cee80ef63436dd3b6e59e7040ede830661db4b7783105f2c177c37cc845c614660f1a5311cde137042db84867d935de4009fbb21ffb0992
7
- data.tar.gz: c0b4b049fa3d3684630f15485d56d050c5eaf74beeda82c10ed046263c5360607f9e75edfa1034707adc3287c9f9f38b956cd63f2d5230b57d3d110f3c3767c4
6
+ metadata.gz: 41465e7d1a0610bea2e160bec4792edf39f78110d21b4b983a38e9f6b8d71ae5cc98d819eb9cfb750d96c546c69ae3b3b5990d0b7172bd77328994abe66b6593
7
+ data.tar.gz: 2f8098594f0048a1d9488ee26ba59c78011f0df5b347c17b57a7ef72a4ebdc4ba0fab59cf6e1cacddd238e6394338e5e91fdf93ae2e2d04fae39622839f3c289
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
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
+
7
+ ### v0.68.0 (2023-06-25)
8
+
9
+ * Regenerated from discovery document revision 20230619
10
+
3
11
  ### v0.67.0 (2023-06-18)
4
12
 
5
13
  * Regenerated from discovery document revision 20230609
@@ -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
@@ -5002,6 +5151,12 @@ module Google
5002
5151
  # @return [String]
5003
5152
  attr_accessor :base_processor_version
5004
5153
 
5154
+ # Options to control the training of the Custom Document Extraction (CDE)
5155
+ # Processor.
5156
+ # Corresponds to the JSON property `customDocumentExtractionOptions`
5157
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1TrainProcessorVersionRequestCustomDocumentExtractionOptions]
5158
+ attr_accessor :custom_document_extraction_options
5159
+
5005
5160
  # The schema defines the output of the processed document by a processor.
5006
5161
  # Corresponds to the JSON property `documentSchema`
5007
5162
  # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchema]
@@ -5027,12 +5182,33 @@ module Google
5027
5182
  # Update properties of this object
5028
5183
  def update!(**args)
5029
5184
  @base_processor_version = args[:base_processor_version] if args.key?(:base_processor_version)
5185
+ @custom_document_extraction_options = args[:custom_document_extraction_options] if args.key?(:custom_document_extraction_options)
5030
5186
  @document_schema = args[:document_schema] if args.key?(:document_schema)
5031
5187
  @input_data = args[:input_data] if args.key?(:input_data)
5032
5188
  @processor_version = args[:processor_version] if args.key?(:processor_version)
5033
5189
  end
5034
5190
  end
5035
5191
 
5192
+ # Options to control the training of the Custom Document Extraction (CDE)
5193
+ # Processor.
5194
+ class GoogleCloudDocumentaiV1TrainProcessorVersionRequestCustomDocumentExtractionOptions
5195
+ include Google::Apis::Core::Hashable
5196
+
5197
+ # Training method to use for CDE training.
5198
+ # Corresponds to the JSON property `trainingMethod`
5199
+ # @return [String]
5200
+ attr_accessor :training_method
5201
+
5202
+ def initialize(**args)
5203
+ update!(**args)
5204
+ end
5205
+
5206
+ # Update properties of this object
5207
+ def update!(**args)
5208
+ @training_method = args[:training_method] if args.key?(:training_method)
5209
+ end
5210
+ end
5211
+
5036
5212
  # The input data used to train a new ProcessorVersion.
5037
5213
  class GoogleCloudDocumentaiV1TrainProcessorVersionRequestInputData
5038
5214
  include Google::Apis::Core::Hashable
@@ -9413,6 +9589,86 @@ module Google
9413
9589
  end
9414
9590
  end
9415
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
+
9416
9672
  # The long-running operation metadata for BatchProcessDocuments.
9417
9673
  class GoogleCloudDocumentaiV1beta3BatchProcessMetadata
9418
9674
  include Google::Apis::Core::Hashable
@@ -9567,6 +9823,128 @@ module Google
9567
9823
  end
9568
9824
  end
9569
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
+
9570
9948
  # The long-running operation metadata for the DeleteProcessor method.
9571
9949
  class GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata
9572
9950
  include Google::Apis::Core::Hashable
@@ -9670,6 +10048,85 @@ module Google
9670
10048
  end
9671
10049
  end
9672
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
+
9673
10130
  # The long-running operation metadata for the EnableProcessor method.
9674
10131
  class GoogleCloudDocumentaiV1beta3EnableProcessorMetadata
9675
10132
  include Google::Apis::Core::Hashable
@@ -9741,6 +10198,25 @@ module Google
9741
10198
  end
9742
10199
  end
9743
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
+
9744
10220
  # The status of human review on a processed document.
9745
10221
  class GoogleCloudDocumentaiV1beta3HumanReviewStatus
9746
10222
  include Google::Apis::Core::Hashable
@@ -9775,6 +10251,124 @@ module Google
9775
10251
  end
9776
10252
  end
9777
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
+
9778
10372
  # The long-running operation metadata for the ImportProcessorVersion method.
9779
10373
  class GoogleCloudDocumentaiV1beta3ImportProcessorVersionMetadata
9780
10374
  include Google::Apis::Core::Hashable
@@ -9895,6 +10489,39 @@ module Google
9895
10489
  end
9896
10490
  end
9897
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
+
9898
10525
  # The long-running operation metadata for the SetDefaultProcessorVersion method.
9899
10526
  class GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata
9900
10527
  include Google::Apis::Core::Hashable
@@ -10052,6 +10679,25 @@ module Google
10052
10679
  end
10053
10680
  end
10054
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
+
10055
10701
  # The response message for Locations.ListLocations.
10056
10702
  class GoogleCloudLocationListLocationsResponse
10057
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.67.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 = "20230609"
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
 
@@ -952,6 +970,12 @@ module Google
952
970
  include Google::Apis::Core::JsonObjectSupport
953
971
  end
954
972
 
973
+ class GoogleCloudDocumentaiV1TrainProcessorVersionRequestCustomDocumentExtractionOptions
974
+ class Representation < Google::Apis::Core::JsonRepresentation; end
975
+
976
+ include Google::Apis::Core::JsonObjectSupport
977
+ end
978
+
955
979
  class GoogleCloudDocumentaiV1TrainProcessorVersionRequestInputData
956
980
  class Representation < Google::Apis::Core::JsonRepresentation; end
957
981
 
@@ -1570,6 +1594,24 @@ module Google
1570
1594
  include Google::Apis::Core::JsonObjectSupport
1571
1595
  end
1572
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
+
1573
1615
  class GoogleCloudDocumentaiV1beta3BatchProcessMetadata
1574
1616
  class Representation < Google::Apis::Core::JsonRepresentation; end
1575
1617
 
@@ -1594,6 +1636,36 @@ module Google
1594
1636
  include Google::Apis::Core::JsonObjectSupport
1595
1637
  end
1596
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
+
1597
1669
  class GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata
1598
1670
  class Representation < Google::Apis::Core::JsonRepresentation; end
1599
1671
 
@@ -1630,6 +1702,24 @@ module Google
1630
1702
  include Google::Apis::Core::JsonObjectSupport
1631
1703
  end
1632
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
+
1633
1723
  class GoogleCloudDocumentaiV1beta3EnableProcessorMetadata
1634
1724
  class Representation < Google::Apis::Core::JsonRepresentation; end
1635
1725
 
@@ -1654,12 +1744,42 @@ module Google
1654
1744
  include Google::Apis::Core::JsonObjectSupport
1655
1745
  end
1656
1746
 
1747
+ class GoogleCloudDocumentaiV1beta3GcsPrefix
1748
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1749
+
1750
+ include Google::Apis::Core::JsonObjectSupport
1751
+ end
1752
+
1657
1753
  class GoogleCloudDocumentaiV1beta3HumanReviewStatus
1658
1754
  class Representation < Google::Apis::Core::JsonRepresentation; end
1659
1755
 
1660
1756
  include Google::Apis::Core::JsonObjectSupport
1661
1757
  end
1662
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
+
1663
1783
  class GoogleCloudDocumentaiV1beta3ImportProcessorVersionMetadata
1664
1784
  class Representation < Google::Apis::Core::JsonRepresentation; end
1665
1785
 
@@ -1684,6 +1804,12 @@ module Google
1684
1804
  include Google::Apis::Core::JsonObjectSupport
1685
1805
  end
1686
1806
 
1807
+ class GoogleCloudDocumentaiV1beta3RevisionRef
1808
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1809
+
1810
+ include Google::Apis::Core::JsonObjectSupport
1811
+ end
1812
+
1687
1813
  class GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata
1688
1814
  class Representation < Google::Apis::Core::JsonRepresentation; end
1689
1815
 
@@ -1726,6 +1852,12 @@ module Google
1726
1852
  include Google::Apis::Core::JsonObjectSupport
1727
1853
  end
1728
1854
 
1855
+ class GoogleCloudDocumentaiV1beta3UpdateDatasetOperationMetadata
1856
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1857
+
1858
+ include Google::Apis::Core::JsonObjectSupport
1859
+ end
1860
+
1729
1861
  class GoogleCloudLocationListLocationsResponse
1730
1862
  class Representation < Google::Apis::Core::JsonRepresentation; end
1731
1863
 
@@ -2085,6 +2217,8 @@ module Google
2085
2217
  # @private
2086
2218
  class Representation < Google::Apis::Core::JsonRepresentation
2087
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
+
2088
2222
  property :output_gcs_destination, as: 'outputGcsDestination'
2089
2223
  property :status, as: 'status', class: Google::Apis::DocumentaiV1::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1::GoogleRpcStatus::Representation
2090
2224
 
@@ -2170,6 +2304,10 @@ module Google
2170
2304
  class GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponse
2171
2305
  # @private
2172
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
+
2173
2311
  collection :selected_documents, as: 'selectedDocuments', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponseSelectedDocument, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponseSelectedDocument::Representation
2174
2312
 
2175
2313
  end
@@ -2315,6 +2453,8 @@ module Google
2315
2453
 
2316
2454
  property :input_documents, as: 'inputDocuments', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1BatchDocumentsInputConfig, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1BatchDocumentsInputConfig::Representation
2317
2455
 
2456
+ property :process_options, as: 'processOptions', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessOptions, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessOptions::Representation
2457
+
2318
2458
  property :skip_human_review, as: 'skipHumanReview'
2319
2459
  end
2320
2460
  end
@@ -3158,12 +3298,44 @@ module Google
3158
3298
  end
3159
3299
  end
3160
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
+
3161
3329
  class GoogleCloudDocumentaiV1ProcessRequest
3162
3330
  # @private
3163
3331
  class Representation < Google::Apis::Core::JsonRepresentation
3164
3332
  property :field_mask, as: 'fieldMask'
3333
+ property :gcs_document, as: 'gcsDocument', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1GcsDocument, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1GcsDocument::Representation
3334
+
3165
3335
  property :inline_document, as: 'inlineDocument', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1Document, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1Document::Representation
3166
3336
 
3337
+ property :process_options, as: 'processOptions', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessOptions, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessOptions::Representation
3338
+
3167
3339
  property :raw_document, as: 'rawDocument', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1RawDocument, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1RawDocument::Representation
3168
3340
 
3169
3341
  property :skip_human_review, as: 'skipHumanReview'
@@ -3329,6 +3501,8 @@ module Google
3329
3501
  # @private
3330
3502
  class Representation < Google::Apis::Core::JsonRepresentation
3331
3503
  property :base_processor_version, as: 'baseProcessorVersion'
3504
+ property :custom_document_extraction_options, as: 'customDocumentExtractionOptions', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1TrainProcessorVersionRequestCustomDocumentExtractionOptions, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1TrainProcessorVersionRequestCustomDocumentExtractionOptions::Representation
3505
+
3332
3506
  property :document_schema, as: 'documentSchema', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchema, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchema::Representation
3333
3507
 
3334
3508
  property :input_data, as: 'inputData', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1TrainProcessorVersionRequestInputData, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1TrainProcessorVersionRequestInputData::Representation
@@ -3338,6 +3512,13 @@ module Google
3338
3512
  end
3339
3513
  end
3340
3514
 
3515
+ class GoogleCloudDocumentaiV1TrainProcessorVersionRequestCustomDocumentExtractionOptions
3516
+ # @private
3517
+ class Representation < Google::Apis::Core::JsonRepresentation
3518
+ property :training_method, as: 'trainingMethod'
3519
+ end
3520
+ end
3521
+
3341
3522
  class GoogleCloudDocumentaiV1TrainProcessorVersionRequestInputData
3342
3523
  # @private
3343
3524
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4531,6 +4712,34 @@ module Google
4531
4712
  end
4532
4713
  end
4533
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
+
4534
4743
  class GoogleCloudDocumentaiV1beta3BatchProcessMetadata
4535
4744
  # @private
4536
4745
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4573,6 +4782,50 @@ module Google
4573
4782
  end
4574
4783
  end
4575
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
+
4576
4829
  class GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata
4577
4830
  # @private
4578
4831
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4617,6 +4870,33 @@ module Google
4617
4870
  end
4618
4871
  end
4619
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
+
4620
4900
  class GoogleCloudDocumentaiV1beta3EnableProcessorMetadata
4621
4901
  # @private
4622
4902
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4646,6 +4926,13 @@ module Google
4646
4926
  end
4647
4927
  end
4648
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
+
4649
4936
  class GoogleCloudDocumentaiV1beta3HumanReviewStatus
4650
4937
  # @private
4651
4938
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4655,6 +4942,45 @@ module Google
4655
4942
  end
4656
4943
  end
4657
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
+
4658
4984
  class GoogleCloudDocumentaiV1beta3ImportProcessorVersionMetadata
4659
4985
  # @private
4660
4986
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4692,6 +5018,15 @@ module Google
4692
5018
  end
4693
5019
  end
4694
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
+
4695
5030
  class GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata
4696
5031
  # @private
4697
5032
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4751,6 +5086,14 @@ module Google
4751
5086
  end
4752
5087
  end
4753
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
+
4754
5097
  class GoogleCloudLocationListLocationsResponse
4755
5098
  # @private
4756
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.67.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-06-18 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.67.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: []