google-apis-documentai_v1 0.73.0 → 0.75.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52cabf117ad14d6765d9e3d85d4f709c29f75113204cdb7855c094f97702dad6
|
4
|
+
data.tar.gz: c5a7d90a1fa578970c47def6b48956dc71c9abb1751535537f94df2f99235bc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01ce92cec70a8d6678259b7418601fda5568858485f8686b48ae97eb8e1dbfd2ecc904c23fa0b8fa02be81f11e3ae40361ff5d1115767aac8fff625fa929e809
|
7
|
+
data.tar.gz: 82037dad2a106465182b4a79854ae9513c5f041057f98f312ff799ac944da99cb2a9e895afc8248c33ee3d8624765c62db04fad413c31272627323c431220668
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-documentai_v1
|
2
2
|
|
3
|
+
### v0.75.0 (2023-09-24)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230914
|
6
|
+
|
7
|
+
### v0.74.0 (2023-09-17)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230908
|
10
|
+
|
3
11
|
### v0.73.0 (2023-08-27)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230811
|
@@ -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::DocumentaiV1::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
|
@@ -4535,13 +4541,20 @@ module Google
|
|
4535
4541
|
# @return [Array<String>]
|
4536
4542
|
attr_accessor :advanced_ocr_options
|
4537
4543
|
|
4538
|
-
# Turn on font
|
4539
|
-
# compute_style_info instead.
|
4544
|
+
# Turn on font identification model and return font style information.
|
4545
|
+
# Deprecated, use PremiumFeatures.compute_style_info instead.
|
4540
4546
|
# Corresponds to the JSON property `computeStyleInfo`
|
4541
4547
|
# @return [Boolean]
|
4542
4548
|
attr_accessor :compute_style_info
|
4543
4549
|
alias_method :compute_style_info?, :compute_style_info
|
4544
4550
|
|
4551
|
+
# Turn off character box detector in OCR engine. Character box detection is
|
4552
|
+
# enabled by default in OCR 2.0+ processors.
|
4553
|
+
# Corresponds to the JSON property `disableCharacterBoxesDetection`
|
4554
|
+
# @return [Boolean]
|
4555
|
+
attr_accessor :disable_character_boxes_detection
|
4556
|
+
alias_method :disable_character_boxes_detection?, :disable_character_boxes_detection
|
4557
|
+
|
4545
4558
|
# Enables intelligent document quality scores after OCR. Can help with
|
4546
4559
|
# diagnosing why OCR responses are of poor quality for a given input. Adds
|
4547
4560
|
# additional latency comparable to regular OCR to the process call.
|
@@ -4568,6 +4581,11 @@ module Google
|
|
4568
4581
|
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1OcrConfigHints]
|
4569
4582
|
attr_accessor :hints
|
4570
4583
|
|
4584
|
+
# Configurations for premium OCR features.
|
4585
|
+
# Corresponds to the JSON property `premiumFeatures`
|
4586
|
+
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1OcrConfigPremiumFeatures]
|
4587
|
+
attr_accessor :premium_features
|
4588
|
+
|
4571
4589
|
def initialize(**args)
|
4572
4590
|
update!(**args)
|
4573
4591
|
end
|
@@ -4576,10 +4594,12 @@ module Google
|
|
4576
4594
|
def update!(**args)
|
4577
4595
|
@advanced_ocr_options = args[:advanced_ocr_options] if args.key?(:advanced_ocr_options)
|
4578
4596
|
@compute_style_info = args[:compute_style_info] if args.key?(:compute_style_info)
|
4597
|
+
@disable_character_boxes_detection = args[:disable_character_boxes_detection] if args.key?(:disable_character_boxes_detection)
|
4579
4598
|
@enable_image_quality_scores = args[:enable_image_quality_scores] if args.key?(:enable_image_quality_scores)
|
4580
4599
|
@enable_native_pdf_parsing = args[:enable_native_pdf_parsing] if args.key?(:enable_native_pdf_parsing)
|
4581
4600
|
@enable_symbol = args[:enable_symbol] if args.key?(:enable_symbol)
|
4582
4601
|
@hints = args[:hints] if args.key?(:hints)
|
4602
|
+
@premium_features = args[:premium_features] if args.key?(:premium_features)
|
4583
4603
|
end
|
4584
4604
|
end
|
4585
4605
|
|
@@ -4607,10 +4627,61 @@ module Google
|
|
4607
4627
|
end
|
4608
4628
|
end
|
4609
4629
|
|
4630
|
+
# Configurations for premium OCR features.
|
4631
|
+
class GoogleCloudDocumentaiV1OcrConfigPremiumFeatures
|
4632
|
+
include Google::Apis::Core::Hashable
|
4633
|
+
|
4634
|
+
# Turn on font identification model and return font style information.
|
4635
|
+
# Corresponds to the JSON property `computeStyleInfo`
|
4636
|
+
# @return [Boolean]
|
4637
|
+
attr_accessor :compute_style_info
|
4638
|
+
alias_method :compute_style_info?, :compute_style_info
|
4639
|
+
|
4640
|
+
# Turn on the model that can extract LaTeX math formulas.
|
4641
|
+
# Corresponds to the JSON property `enableMathOcr`
|
4642
|
+
# @return [Boolean]
|
4643
|
+
attr_accessor :enable_math_ocr
|
4644
|
+
alias_method :enable_math_ocr?, :enable_math_ocr
|
4645
|
+
|
4646
|
+
# Turn on selection mark detector in OCR engine. Only available in OCR 2.0+
|
4647
|
+
# processors.
|
4648
|
+
# Corresponds to the JSON property `enableSelectionMarkDetection`
|
4649
|
+
# @return [Boolean]
|
4650
|
+
attr_accessor :enable_selection_mark_detection
|
4651
|
+
alias_method :enable_selection_mark_detection?, :enable_selection_mark_detection
|
4652
|
+
|
4653
|
+
def initialize(**args)
|
4654
|
+
update!(**args)
|
4655
|
+
end
|
4656
|
+
|
4657
|
+
# Update properties of this object
|
4658
|
+
def update!(**args)
|
4659
|
+
@compute_style_info = args[:compute_style_info] if args.key?(:compute_style_info)
|
4660
|
+
@enable_math_ocr = args[:enable_math_ocr] if args.key?(:enable_math_ocr)
|
4661
|
+
@enable_selection_mark_detection = args[:enable_selection_mark_detection] if args.key?(:enable_selection_mark_detection)
|
4662
|
+
end
|
4663
|
+
end
|
4664
|
+
|
4610
4665
|
# Options for Process API
|
4611
4666
|
class GoogleCloudDocumentaiV1ProcessOptions
|
4612
4667
|
include Google::Apis::Core::Hashable
|
4613
4668
|
|
4669
|
+
# Only process certain pages from the end, same as above.
|
4670
|
+
# Corresponds to the JSON property `fromEnd`
|
4671
|
+
# @return [Fixnum]
|
4672
|
+
attr_accessor :from_end
|
4673
|
+
|
4674
|
+
# Only process certain pages from the start, process all if the document has
|
4675
|
+
# less pages.
|
4676
|
+
# Corresponds to the JSON property `fromStart`
|
4677
|
+
# @return [Fixnum]
|
4678
|
+
attr_accessor :from_start
|
4679
|
+
|
4680
|
+
# A list of individual page numbers.
|
4681
|
+
# Corresponds to the JSON property `individualPageSelector`
|
4682
|
+
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessOptionsIndividualPageSelector]
|
4683
|
+
attr_accessor :individual_page_selector
|
4684
|
+
|
4614
4685
|
# Config for Document OCR.
|
4615
4686
|
# Corresponds to the JSON property `ocrConfig`
|
4616
4687
|
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1OcrConfig]
|
@@ -4622,10 +4693,32 @@ module Google
|
|
4622
4693
|
|
4623
4694
|
# Update properties of this object
|
4624
4695
|
def update!(**args)
|
4696
|
+
@from_end = args[:from_end] if args.key?(:from_end)
|
4697
|
+
@from_start = args[:from_start] if args.key?(:from_start)
|
4698
|
+
@individual_page_selector = args[:individual_page_selector] if args.key?(:individual_page_selector)
|
4625
4699
|
@ocr_config = args[:ocr_config] if args.key?(:ocr_config)
|
4626
4700
|
end
|
4627
4701
|
end
|
4628
4702
|
|
4703
|
+
# A list of individual page numbers.
|
4704
|
+
class GoogleCloudDocumentaiV1ProcessOptionsIndividualPageSelector
|
4705
|
+
include Google::Apis::Core::Hashable
|
4706
|
+
|
4707
|
+
# Optional. Indices of the pages (starting from 1).
|
4708
|
+
# Corresponds to the JSON property `pages`
|
4709
|
+
# @return [Array<Fixnum>]
|
4710
|
+
attr_accessor :pages
|
4711
|
+
|
4712
|
+
def initialize(**args)
|
4713
|
+
update!(**args)
|
4714
|
+
end
|
4715
|
+
|
4716
|
+
# Update properties of this object
|
4717
|
+
def update!(**args)
|
4718
|
+
@pages = args[:pages] if args.key?(:pages)
|
4719
|
+
end
|
4720
|
+
end
|
4721
|
+
|
4629
4722
|
# Request message for the ProcessDocument method.
|
4630
4723
|
class GoogleCloudDocumentaiV1ProcessRequest
|
4631
4724
|
include Google::Apis::Core::Hashable
|
@@ -5001,7 +5094,7 @@ module Google
|
|
5001
5094
|
|
5002
5095
|
# The display name of the document, it supports all Unicode characters except
|
5003
5096
|
# the following: `*`, `?`, `[`, `]`, `%`, ```, ```,`'`, `\"`, `,` `~`, `=` and `:
|
5004
|
-
# ` are reserved. If not specified, a default ID
|
5097
|
+
# ` are reserved. If not specified, a default ID is generated.
|
5005
5098
|
# Corresponds to the JSON property `displayName`
|
5006
5099
|
# @return [String]
|
5007
5100
|
attr_accessor :display_name
|
@@ -9932,7 +10025,7 @@ module Google
|
|
9932
10025
|
end
|
9933
10026
|
|
9934
10027
|
# A singleton resource under a Processor which configures a collection of
|
9935
|
-
# documents.
|
10028
|
+
# documents. Next Id: 8.
|
9936
10029
|
class GoogleCloudDocumentaiV1beta3Dataset
|
9937
10030
|
include Google::Apis::Core::Hashable
|
9938
10031
|
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.75.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 = "
|
25
|
+
REVISION = "20230914"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -880,12 +880,24 @@ module Google
|
|
880
880
|
include Google::Apis::Core::JsonObjectSupport
|
881
881
|
end
|
882
882
|
|
883
|
+
class GoogleCloudDocumentaiV1OcrConfigPremiumFeatures
|
884
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
885
|
+
|
886
|
+
include Google::Apis::Core::JsonObjectSupport
|
887
|
+
end
|
888
|
+
|
883
889
|
class GoogleCloudDocumentaiV1ProcessOptions
|
884
890
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
885
891
|
|
886
892
|
include Google::Apis::Core::JsonObjectSupport
|
887
893
|
end
|
888
894
|
|
895
|
+
class GoogleCloudDocumentaiV1ProcessOptionsIndividualPageSelector
|
896
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
897
|
+
|
898
|
+
include Google::Apis::Core::JsonObjectSupport
|
899
|
+
end
|
900
|
+
|
889
901
|
class GoogleCloudDocumentaiV1ProcessRequest
|
890
902
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
891
903
|
|
@@ -1968,6 +1980,8 @@ module Google
|
|
1968
1980
|
class GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus
|
1969
1981
|
# @private
|
1970
1982
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1983
|
+
property :document_id, as: 'documentId', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3DocumentId, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3DocumentId::Representation
|
1984
|
+
|
1971
1985
|
property :gcs_uri, as: 'gcsUri'
|
1972
1986
|
property :status, as: 'status', class: Google::Apis::DocumentaiV1::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1::GoogleRpcStatus::Representation
|
1973
1987
|
|
@@ -3353,11 +3367,14 @@ module Google
|
|
3353
3367
|
class Representation < Google::Apis::Core::JsonRepresentation
|
3354
3368
|
collection :advanced_ocr_options, as: 'advancedOcrOptions'
|
3355
3369
|
property :compute_style_info, as: 'computeStyleInfo'
|
3370
|
+
property :disable_character_boxes_detection, as: 'disableCharacterBoxesDetection'
|
3356
3371
|
property :enable_image_quality_scores, as: 'enableImageQualityScores'
|
3357
3372
|
property :enable_native_pdf_parsing, as: 'enableNativePdfParsing'
|
3358
3373
|
property :enable_symbol, as: 'enableSymbol'
|
3359
3374
|
property :hints, as: 'hints', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1OcrConfigHints, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1OcrConfigHints::Representation
|
3360
3375
|
|
3376
|
+
property :premium_features, as: 'premiumFeatures', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1OcrConfigPremiumFeatures, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1OcrConfigPremiumFeatures::Representation
|
3377
|
+
|
3361
3378
|
end
|
3362
3379
|
end
|
3363
3380
|
|
@@ -3368,14 +3385,34 @@ module Google
|
|
3368
3385
|
end
|
3369
3386
|
end
|
3370
3387
|
|
3388
|
+
class GoogleCloudDocumentaiV1OcrConfigPremiumFeatures
|
3389
|
+
# @private
|
3390
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3391
|
+
property :compute_style_info, as: 'computeStyleInfo'
|
3392
|
+
property :enable_math_ocr, as: 'enableMathOcr'
|
3393
|
+
property :enable_selection_mark_detection, as: 'enableSelectionMarkDetection'
|
3394
|
+
end
|
3395
|
+
end
|
3396
|
+
|
3371
3397
|
class GoogleCloudDocumentaiV1ProcessOptions
|
3372
3398
|
# @private
|
3373
3399
|
class Representation < Google::Apis::Core::JsonRepresentation
|
3400
|
+
property :from_end, as: 'fromEnd'
|
3401
|
+
property :from_start, as: 'fromStart'
|
3402
|
+
property :individual_page_selector, as: 'individualPageSelector', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessOptionsIndividualPageSelector, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessOptionsIndividualPageSelector::Representation
|
3403
|
+
|
3374
3404
|
property :ocr_config, as: 'ocrConfig', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1OcrConfig, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1OcrConfig::Representation
|
3375
3405
|
|
3376
3406
|
end
|
3377
3407
|
end
|
3378
3408
|
|
3409
|
+
class GoogleCloudDocumentaiV1ProcessOptionsIndividualPageSelector
|
3410
|
+
# @private
|
3411
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3412
|
+
collection :pages, as: 'pages'
|
3413
|
+
end
|
3414
|
+
end
|
3415
|
+
|
3379
3416
|
class GoogleCloudDocumentaiV1ProcessRequest
|
3380
3417
|
# @private
|
3381
3418
|
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.
|
4
|
+
version: 0.75.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-
|
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_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1/v0.75.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: []
|