google-apis-documentai_v1beta3 0.82.0 → 0.83.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: 1a48a94cb8ffb72e8523cb65ef07ed16a8549c7bab22de305648f7b784765d61
4
- data.tar.gz: 5088904e38e4243328388f28c449b6458467482e0da04de412d699b862de2c61
3
+ metadata.gz: e8a167b5f1ff25163151d91460d2c1203e47be78d8cd2e742e6edf49f8f76dd8
4
+ data.tar.gz: 37ef1b6b8619ac7cd9d8b74c7960009344c4e3a96ca3de70925a41849634c0bf
5
5
  SHA512:
6
- metadata.gz: b2798fe457731134584ce16c4ef98622a45b0f75a72c42c7017e20ad538e174079d02121bd2f6ba058556a004129d2145456b91877c269145bcec8f21ea61941
7
- data.tar.gz: 88b932f4dd3cba1a6f39e1748a3e95efd02a3d7fe85ea585d222991b76504af7a17886312e9388ff382873f861fec9d02fed6cf50dd097e55bbd08e4d8f42f70
6
+ metadata.gz: 415fd741f7d820949fe04e708e7210da67e92040ae14ec7a7c88bfde27a79b86d700baaa368014cd4adec8f9230d4c2862b4cdfc4649ae3291fe0b106dfeb3dd
7
+ data.tar.gz: b8428eb8a28ca91845b52c4ace1898ecc828cf86b9c78f7020c6d7d15bb92cf4bc020803765a516d28c1739b1905fa12056e82dc3f327cdaf39e101464fba312
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-documentai_v1beta3
2
2
 
3
+ ### v0.83.0 (2023-09-24)
4
+
5
+ * Regenerated from discovery document revision 20230914
6
+
3
7
  ### v0.82.0 (2023-09-17)
4
8
 
5
9
  * Regenerated from discovery document revision 20230908
@@ -57,6 +57,11 @@ module Google
57
57
  class GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus
58
58
  include Google::Apis::Core::Hashable
59
59
 
60
+ # Document Identifier.
61
+ # Corresponds to the JSON property `documentId`
62
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3DocumentId]
63
+ attr_accessor :document_id
64
+
60
65
  # The gcs_uri of the auto-labeling document, which uniquely identifies a dataset
61
66
  # document.
62
67
  # Corresponds to the JSON property `gcsUri`
@@ -79,6 +84,7 @@ module Google
79
84
 
80
85
  # Update properties of this object
81
86
  def update!(**args)
87
+ @document_id = args[:document_id] if args.key?(:document_id)
82
88
  @gcs_uri = args[:gcs_uri] if args.key?(:gcs_uri)
83
89
  @status = args[:status] if args.key?(:status)
84
90
  end
@@ -6728,7 +6734,7 @@ module Google
6728
6734
  end
6729
6735
 
6730
6736
  # A singleton resource under a Processor which configures a collection of
6731
- # documents.
6737
+ # documents. Next Id: 8.
6732
6738
  class GoogleCloudDocumentaiV1beta3Dataset
6733
6739
  include Google::Apis::Core::Hashable
6734
6740
 
@@ -10166,11 +10172,19 @@ module Google
10166
10172
  attr_accessor :advanced_ocr_options
10167
10173
 
10168
10174
  # Turn on font identification model and return font style information.
10175
+ # Deprecated, use PremiumFeatures.compute_style_info instead.
10169
10176
  # Corresponds to the JSON property `computeStyleInfo`
10170
10177
  # @return [Boolean]
10171
10178
  attr_accessor :compute_style_info
10172
10179
  alias_method :compute_style_info?, :compute_style_info
10173
10180
 
10181
+ # Turn off character box detector in OCR engine. Character box detection is
10182
+ # enabled by default in OCR 2.0+ processors.
10183
+ # Corresponds to the JSON property `disableCharacterBoxesDetection`
10184
+ # @return [Boolean]
10185
+ attr_accessor :disable_character_boxes_detection
10186
+ alias_method :disable_character_boxes_detection?, :disable_character_boxes_detection
10187
+
10174
10188
  # Enables intelligent document quality scores after OCR. Can help with
10175
10189
  # diagnosing why OCR responses are of poor quality for a given input. Adds
10176
10190
  # additional latency comparable to regular OCR to the process call.
@@ -10197,6 +10211,11 @@ module Google
10197
10211
  # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3OcrConfigHints]
10198
10212
  attr_accessor :hints
10199
10213
 
10214
+ # Configurations for premium OCR features.
10215
+ # Corresponds to the JSON property `premiumFeatures`
10216
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3OcrConfigPremiumFeatures]
10217
+ attr_accessor :premium_features
10218
+
10200
10219
  def initialize(**args)
10201
10220
  update!(**args)
10202
10221
  end
@@ -10205,10 +10224,12 @@ module Google
10205
10224
  def update!(**args)
10206
10225
  @advanced_ocr_options = args[:advanced_ocr_options] if args.key?(:advanced_ocr_options)
10207
10226
  @compute_style_info = args[:compute_style_info] if args.key?(:compute_style_info)
10227
+ @disable_character_boxes_detection = args[:disable_character_boxes_detection] if args.key?(:disable_character_boxes_detection)
10208
10228
  @enable_image_quality_scores = args[:enable_image_quality_scores] if args.key?(:enable_image_quality_scores)
10209
10229
  @enable_native_pdf_parsing = args[:enable_native_pdf_parsing] if args.key?(:enable_native_pdf_parsing)
10210
10230
  @enable_symbol = args[:enable_symbol] if args.key?(:enable_symbol)
10211
10231
  @hints = args[:hints] if args.key?(:hints)
10232
+ @premium_features = args[:premium_features] if args.key?(:premium_features)
10212
10233
  end
10213
10234
  end
10214
10235
 
@@ -10236,10 +10257,61 @@ module Google
10236
10257
  end
10237
10258
  end
10238
10259
 
10260
+ # Configurations for premium OCR features.
10261
+ class GoogleCloudDocumentaiV1beta3OcrConfigPremiumFeatures
10262
+ include Google::Apis::Core::Hashable
10263
+
10264
+ # Turn on font identification model and return font style information.
10265
+ # Corresponds to the JSON property `computeStyleInfo`
10266
+ # @return [Boolean]
10267
+ attr_accessor :compute_style_info
10268
+ alias_method :compute_style_info?, :compute_style_info
10269
+
10270
+ # Turn on the model that can extract LaTeX math formulas.
10271
+ # Corresponds to the JSON property `enableMathOcr`
10272
+ # @return [Boolean]
10273
+ attr_accessor :enable_math_ocr
10274
+ alias_method :enable_math_ocr?, :enable_math_ocr
10275
+
10276
+ # Turn on selection mark detector in OCR engine. Only available in OCR 2.0+
10277
+ # processors.
10278
+ # Corresponds to the JSON property `enableSelectionMarkDetection`
10279
+ # @return [Boolean]
10280
+ attr_accessor :enable_selection_mark_detection
10281
+ alias_method :enable_selection_mark_detection?, :enable_selection_mark_detection
10282
+
10283
+ def initialize(**args)
10284
+ update!(**args)
10285
+ end
10286
+
10287
+ # Update properties of this object
10288
+ def update!(**args)
10289
+ @compute_style_info = args[:compute_style_info] if args.key?(:compute_style_info)
10290
+ @enable_math_ocr = args[:enable_math_ocr] if args.key?(:enable_math_ocr)
10291
+ @enable_selection_mark_detection = args[:enable_selection_mark_detection] if args.key?(:enable_selection_mark_detection)
10292
+ end
10293
+ end
10294
+
10239
10295
  # Options for Process API
10240
10296
  class GoogleCloudDocumentaiV1beta3ProcessOptions
10241
10297
  include Google::Apis::Core::Hashable
10242
10298
 
10299
+ # Only process certain pages from the end, same as above.
10300
+ # Corresponds to the JSON property `fromEnd`
10301
+ # @return [Fixnum]
10302
+ attr_accessor :from_end
10303
+
10304
+ # Only process certain pages from the start, process all if the document has
10305
+ # less pages.
10306
+ # Corresponds to the JSON property `fromStart`
10307
+ # @return [Fixnum]
10308
+ attr_accessor :from_start
10309
+
10310
+ # A list of individual page numbers.
10311
+ # Corresponds to the JSON property `individualPageSelector`
10312
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessOptionsIndividualPageSelector]
10313
+ attr_accessor :individual_page_selector
10314
+
10243
10315
  # Config for Document OCR.
10244
10316
  # Corresponds to the JSON property `ocrConfig`
10245
10317
  # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3OcrConfig]
@@ -10256,11 +10328,33 @@ module Google
10256
10328
 
10257
10329
  # Update properties of this object
10258
10330
  def update!(**args)
10331
+ @from_end = args[:from_end] if args.key?(:from_end)
10332
+ @from_start = args[:from_start] if args.key?(:from_start)
10333
+ @individual_page_selector = args[:individual_page_selector] if args.key?(:individual_page_selector)
10259
10334
  @ocr_config = args[:ocr_config] if args.key?(:ocr_config)
10260
10335
  @schema_override = args[:schema_override] if args.key?(:schema_override)
10261
10336
  end
10262
10337
  end
10263
10338
 
10339
+ # A list of individual page numbers.
10340
+ class GoogleCloudDocumentaiV1beta3ProcessOptionsIndividualPageSelector
10341
+ include Google::Apis::Core::Hashable
10342
+
10343
+ # Optional. Indices of the pages (starting from 1).
10344
+ # Corresponds to the JSON property `pages`
10345
+ # @return [Array<Fixnum>]
10346
+ attr_accessor :pages
10347
+
10348
+ def initialize(**args)
10349
+ update!(**args)
10350
+ end
10351
+
10352
+ # Update properties of this object
10353
+ def update!(**args)
10354
+ @pages = args[:pages] if args.key?(:pages)
10355
+ end
10356
+ end
10357
+
10264
10358
  # Request message for the ProcessDocument method.
10265
10359
  class GoogleCloudDocumentaiV1beta3ProcessRequest
10266
10360
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DocumentaiV1beta3
18
18
  # Version of the google-apis-documentai_v1beta3 gem
19
- GEM_VERSION = "0.82.0"
19
+ GEM_VERSION = "0.83.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 = "20230908"
25
+ REVISION = "20230914"
26
26
  end
27
27
  end
28
28
  end
@@ -1792,12 +1792,24 @@ module Google
1792
1792
  include Google::Apis::Core::JsonObjectSupport
1793
1793
  end
1794
1794
 
1795
+ class GoogleCloudDocumentaiV1beta3OcrConfigPremiumFeatures
1796
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1797
+
1798
+ include Google::Apis::Core::JsonObjectSupport
1799
+ end
1800
+
1795
1801
  class GoogleCloudDocumentaiV1beta3ProcessOptions
1796
1802
  class Representation < Google::Apis::Core::JsonRepresentation; end
1797
1803
 
1798
1804
  include Google::Apis::Core::JsonObjectSupport
1799
1805
  end
1800
1806
 
1807
+ class GoogleCloudDocumentaiV1beta3ProcessOptionsIndividualPageSelector
1808
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1809
+
1810
+ include Google::Apis::Core::JsonObjectSupport
1811
+ end
1812
+
1801
1813
  class GoogleCloudDocumentaiV1beta3ProcessRequest
1802
1814
  class Representation < Google::Apis::Core::JsonRepresentation; end
1803
1815
 
@@ -2058,6 +2070,8 @@ module Google
2058
2070
  class GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus
2059
2071
  # @private
2060
2072
  class Representation < Google::Apis::Core::JsonRepresentation
2073
+ property :document_id, as: 'documentId', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3DocumentId, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3DocumentId::Representation
2074
+
2061
2075
  property :gcs_uri, as: 'gcsUri'
2062
2076
  property :status, as: 'status', class: Google::Apis::DocumentaiV1beta3::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1beta3::GoogleRpcStatus::Representation
2063
2077
 
@@ -5068,11 +5082,14 @@ module Google
5068
5082
  class Representation < Google::Apis::Core::JsonRepresentation
5069
5083
  collection :advanced_ocr_options, as: 'advancedOcrOptions'
5070
5084
  property :compute_style_info, as: 'computeStyleInfo'
5085
+ property :disable_character_boxes_detection, as: 'disableCharacterBoxesDetection'
5071
5086
  property :enable_image_quality_scores, as: 'enableImageQualityScores'
5072
5087
  property :enable_native_pdf_parsing, as: 'enableNativePdfParsing'
5073
5088
  property :enable_symbol, as: 'enableSymbol'
5074
5089
  property :hints, as: 'hints', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3OcrConfigHints, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3OcrConfigHints::Representation
5075
5090
 
5091
+ property :premium_features, as: 'premiumFeatures', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3OcrConfigPremiumFeatures, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3OcrConfigPremiumFeatures::Representation
5092
+
5076
5093
  end
5077
5094
  end
5078
5095
 
@@ -5083,9 +5100,22 @@ module Google
5083
5100
  end
5084
5101
  end
5085
5102
 
5103
+ class GoogleCloudDocumentaiV1beta3OcrConfigPremiumFeatures
5104
+ # @private
5105
+ class Representation < Google::Apis::Core::JsonRepresentation
5106
+ property :compute_style_info, as: 'computeStyleInfo'
5107
+ property :enable_math_ocr, as: 'enableMathOcr'
5108
+ property :enable_selection_mark_detection, as: 'enableSelectionMarkDetection'
5109
+ end
5110
+ end
5111
+
5086
5112
  class GoogleCloudDocumentaiV1beta3ProcessOptions
5087
5113
  # @private
5088
5114
  class Representation < Google::Apis::Core::JsonRepresentation
5115
+ property :from_end, as: 'fromEnd'
5116
+ property :from_start, as: 'fromStart'
5117
+ property :individual_page_selector, as: 'individualPageSelector', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessOptionsIndividualPageSelector, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessOptionsIndividualPageSelector::Representation
5118
+
5089
5119
  property :ocr_config, as: 'ocrConfig', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3OcrConfig, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3OcrConfig::Representation
5090
5120
 
5091
5121
  property :schema_override, as: 'schemaOverride', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentSchema, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentSchema::Representation
@@ -5093,6 +5123,13 @@ module Google
5093
5123
  end
5094
5124
  end
5095
5125
 
5126
+ class GoogleCloudDocumentaiV1beta3ProcessOptionsIndividualPageSelector
5127
+ # @private
5128
+ class Representation < Google::Apis::Core::JsonRepresentation
5129
+ collection :pages, as: 'pages'
5130
+ end
5131
+ end
5132
+
5096
5133
  class GoogleCloudDocumentaiV1beta3ProcessRequest
5097
5134
  # @private
5098
5135
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-documentai_v1beta3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.82.0
4
+ version: 0.83.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-09-17 00:00:00.000000000 Z
11
+ date: 2023-09-24 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_v1beta3/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta3/v0.82.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta3/v0.83.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-documentai_v1beta3
63
63
  post_install_message:
64
64
  rdoc_options: []