google-apis-documentai_v1 0.74.0 → 0.76.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6928f6c903ea32565f50fed6c3676e5abc3598a17f37af20acc07721de45fad5
|
4
|
+
data.tar.gz: 33d00a0cf51ad42b42df9b1709ba72cc9dedf738bc45b74c70e65634577c1152
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83507d31f9d4502d4a399ed7e33fdab542a4bba7da10e3f9904fada4bfc391a96a68dd1c61d563294d725a3dba6defa927f748bd06eba90cebae8db148df770c
|
7
|
+
data.tar.gz: f126532acda4a4339ba021a81defcec87782aec97a817eb4324acdd942fecd951b5a931e51aaa4f74b75c3fc62ca3e6510906aef461ae4f278b10b949f499c91
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-documentai_v1
|
2
2
|
|
3
|
+
### v0.76.0 (2023-10-01)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230923
|
6
|
+
|
7
|
+
### v0.75.0 (2023-09-24)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230914
|
10
|
+
|
3
11
|
### v0.74.0 (2023-09-17)
|
4
12
|
|
5
13
|
* 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::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
|
@@ -4536,11 +4542,19 @@ module Google
|
|
4536
4542
|
attr_accessor :advanced_ocr_options
|
4537
4543
|
|
4538
4544
|
# Turn on font identification model and return font style information.
|
4545
|
+
# Deprecated, use PremiumFeatures.compute_style_info instead.
|
4539
4546
|
# Corresponds to the JSON property `computeStyleInfo`
|
4540
4547
|
# @return [Boolean]
|
4541
4548
|
attr_accessor :compute_style_info
|
4542
4549
|
alias_method :compute_style_info?, :compute_style_info
|
4543
4550
|
|
4551
|
+
# Turn off character box detector in OCR engine. Character box detection is
|
4552
|
+
# enabled by default in OCR 2.0 (and later) 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
|
+
|
4544
4558
|
# Enables intelligent document quality scores after OCR. Can help with
|
4545
4559
|
# diagnosing why OCR responses are of poor quality for a given input. Adds
|
4546
4560
|
# additional latency comparable to regular OCR to the process call.
|
@@ -4567,6 +4581,11 @@ module Google
|
|
4567
4581
|
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1OcrConfigHints]
|
4568
4582
|
attr_accessor :hints
|
4569
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
|
+
|
4570
4589
|
def initialize(**args)
|
4571
4590
|
update!(**args)
|
4572
4591
|
end
|
@@ -4575,10 +4594,12 @@ module Google
|
|
4575
4594
|
def update!(**args)
|
4576
4595
|
@advanced_ocr_options = args[:advanced_ocr_options] if args.key?(:advanced_ocr_options)
|
4577
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)
|
4578
4598
|
@enable_image_quality_scores = args[:enable_image_quality_scores] if args.key?(:enable_image_quality_scores)
|
4579
4599
|
@enable_native_pdf_parsing = args[:enable_native_pdf_parsing] if args.key?(:enable_native_pdf_parsing)
|
4580
4600
|
@enable_symbol = args[:enable_symbol] if args.key?(:enable_symbol)
|
4581
4601
|
@hints = args[:hints] if args.key?(:hints)
|
4602
|
+
@premium_features = args[:premium_features] if args.key?(:premium_features)
|
4582
4603
|
end
|
4583
4604
|
end
|
4584
4605
|
|
@@ -4606,10 +4627,61 @@ module Google
|
|
4606
4627
|
end
|
4607
4628
|
end
|
4608
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 (and
|
4647
|
+
# later) 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
|
+
|
4609
4665
|
# Options for Process API
|
4610
4666
|
class GoogleCloudDocumentaiV1ProcessOptions
|
4611
4667
|
include Google::Apis::Core::Hashable
|
4612
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
|
+
# fewer 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
|
+
|
4613
4685
|
# Config for Document OCR.
|
4614
4686
|
# Corresponds to the JSON property `ocrConfig`
|
4615
4687
|
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1OcrConfig]
|
@@ -4621,10 +4693,32 @@ module Google
|
|
4621
4693
|
|
4622
4694
|
# Update properties of this object
|
4623
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)
|
4624
4699
|
@ocr_config = args[:ocr_config] if args.key?(:ocr_config)
|
4625
4700
|
end
|
4626
4701
|
end
|
4627
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
|
+
|
4628
4722
|
# Request message for the ProcessDocument method.
|
4629
4723
|
class GoogleCloudDocumentaiV1ProcessRequest
|
4630
4724
|
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.
|
19
|
+
GEM_VERSION = "0.76.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 = "20230923"
|
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.76.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-10-01 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.76.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: []
|