google-apis-documentai_v1 0.117.0 → 0.118.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: 44d7fe81ee98cd96e381ca329795e32fba6e581064db98b988123e5dc4f3f6f6
|
|
4
|
+
data.tar.gz: a3428606ce531a25e18c308746402d83ba5e05e1e2af05020b7a2358a83e3d04
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 85dea7ba51aee2fe0060baa7508f033e20bc02c8ba611b55dd1fa10f48988d1c981c3acdc040d9d2f5573ecac4fc6498348cff8e56b1708798e0ddf97020716f
|
|
7
|
+
data.tar.gz: 2992d78a850192cac83f7f9acdb82424c3a6f7d6ca6076c49cc274e8050dbc9dc4c4957a33fd6c587b135d78821b11d95bfcb57b29cbbf0124543835c5ee165b
|
data/CHANGELOG.md
CHANGED
|
@@ -3296,6 +3296,13 @@ module Google
|
|
|
3296
3296
|
class GoogleCloudDocumentaiV1Document
|
|
3297
3297
|
include Google::Apis::Core::Hashable
|
|
3298
3298
|
|
|
3299
|
+
# Optional. The blob assets in this document. This is used to store the content
|
|
3300
|
+
# of the inline blobs in this document, for example, image bytes, such that it
|
|
3301
|
+
# can be referenced by other fields in the document via asset id.
|
|
3302
|
+
# Corresponds to the JSON property `blobAssets`
|
|
3303
|
+
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentBlobAsset>]
|
|
3304
|
+
attr_accessor :blob_assets
|
|
3305
|
+
|
|
3299
3306
|
# Represents the chunks that the document is divided into.
|
|
3300
3307
|
# Corresponds to the JSON property `chunkedDocument`
|
|
3301
3308
|
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentChunkedDocument]
|
|
@@ -3415,6 +3422,7 @@ module Google
|
|
|
3415
3422
|
|
|
3416
3423
|
# Update properties of this object
|
|
3417
3424
|
def update!(**args)
|
|
3425
|
+
@blob_assets = args[:blob_assets] if args.key?(:blob_assets)
|
|
3418
3426
|
@chunked_document = args[:chunked_document] if args.key?(:chunked_document)
|
|
3419
3427
|
@content = args[:content] if args.key?(:content)
|
|
3420
3428
|
@docid = args[:docid] if args.key?(:docid)
|
|
@@ -3436,6 +3444,60 @@ module Google
|
|
|
3436
3444
|
end
|
|
3437
3445
|
end
|
|
3438
3446
|
|
|
3447
|
+
# Represents the annotation of a block or a chunk.
|
|
3448
|
+
class GoogleCloudDocumentaiV1DocumentAnnotations
|
|
3449
|
+
include Google::Apis::Core::Hashable
|
|
3450
|
+
|
|
3451
|
+
# The description of the content with this annotation.
|
|
3452
|
+
# Corresponds to the JSON property `description`
|
|
3453
|
+
# @return [String]
|
|
3454
|
+
attr_accessor :description
|
|
3455
|
+
|
|
3456
|
+
def initialize(**args)
|
|
3457
|
+
update!(**args)
|
|
3458
|
+
end
|
|
3459
|
+
|
|
3460
|
+
# Update properties of this object
|
|
3461
|
+
def update!(**args)
|
|
3462
|
+
@description = args[:description] if args.key?(:description)
|
|
3463
|
+
end
|
|
3464
|
+
end
|
|
3465
|
+
|
|
3466
|
+
# Represents a blob asset. It's used to store the content of the inline blob in
|
|
3467
|
+
# this document, for example, image bytes, such that it can be referenced by
|
|
3468
|
+
# other fields in the document via asset ID.
|
|
3469
|
+
class GoogleCloudDocumentaiV1DocumentBlobAsset
|
|
3470
|
+
include Google::Apis::Core::Hashable
|
|
3471
|
+
|
|
3472
|
+
# Optional. The id of the blob asset.
|
|
3473
|
+
# Corresponds to the JSON property `assetId`
|
|
3474
|
+
# @return [String]
|
|
3475
|
+
attr_accessor :asset_id
|
|
3476
|
+
|
|
3477
|
+
# Optional. The content of the blob asset, for example, image bytes.
|
|
3478
|
+
# Corresponds to the JSON property `content`
|
|
3479
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
3480
|
+
# @return [String]
|
|
3481
|
+
attr_accessor :content
|
|
3482
|
+
|
|
3483
|
+
# The mime type of the blob asset. An IANA published [media type (MIME type)](
|
|
3484
|
+
# https://www.iana.org/assignments/media-types/media-types.xhtml).
|
|
3485
|
+
# Corresponds to the JSON property `mimeType`
|
|
3486
|
+
# @return [String]
|
|
3487
|
+
attr_accessor :mime_type
|
|
3488
|
+
|
|
3489
|
+
def initialize(**args)
|
|
3490
|
+
update!(**args)
|
|
3491
|
+
end
|
|
3492
|
+
|
|
3493
|
+
# Update properties of this object
|
|
3494
|
+
def update!(**args)
|
|
3495
|
+
@asset_id = args[:asset_id] if args.key?(:asset_id)
|
|
3496
|
+
@content = args[:content] if args.key?(:content)
|
|
3497
|
+
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
|
3498
|
+
end
|
|
3499
|
+
end
|
|
3500
|
+
|
|
3439
3501
|
# Represents the chunks that the document is divided into.
|
|
3440
3502
|
class GoogleCloudDocumentaiV1DocumentChunkedDocument
|
|
3441
3503
|
include Google::Apis::Core::Hashable
|
|
@@ -3459,6 +3521,11 @@ module Google
|
|
|
3459
3521
|
class GoogleCloudDocumentaiV1DocumentChunkedDocumentChunk
|
|
3460
3522
|
include Google::Apis::Core::Hashable
|
|
3461
3523
|
|
|
3524
|
+
# Chunk fields inside this chunk.
|
|
3525
|
+
# Corresponds to the JSON property `chunkFields`
|
|
3526
|
+
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkField>]
|
|
3527
|
+
attr_accessor :chunk_fields
|
|
3528
|
+
|
|
3462
3529
|
# ID of the chunk.
|
|
3463
3530
|
# Corresponds to the JSON property `chunkId`
|
|
3464
3531
|
# @return [String]
|
|
@@ -3495,6 +3562,7 @@ module Google
|
|
|
3495
3562
|
|
|
3496
3563
|
# Update properties of this object
|
|
3497
3564
|
def update!(**args)
|
|
3565
|
+
@chunk_fields = args[:chunk_fields] if args.key?(:chunk_fields)
|
|
3498
3566
|
@chunk_id = args[:chunk_id] if args.key?(:chunk_id)
|
|
3499
3567
|
@content = args[:content] if args.key?(:content)
|
|
3500
3568
|
@page_footers = args[:page_footers] if args.key?(:page_footers)
|
|
@@ -3504,6 +3572,32 @@ module Google
|
|
|
3504
3572
|
end
|
|
3505
3573
|
end
|
|
3506
3574
|
|
|
3575
|
+
# The chunk field in the chunk. A chunk field could be one of the various types (
|
|
3576
|
+
# for example, image, table) supported.
|
|
3577
|
+
class GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkField
|
|
3578
|
+
include Google::Apis::Core::Hashable
|
|
3579
|
+
|
|
3580
|
+
# The image chunk field in the chunk.
|
|
3581
|
+
# Corresponds to the JSON property `imageChunkField`
|
|
3582
|
+
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkImageChunkField]
|
|
3583
|
+
attr_accessor :image_chunk_field
|
|
3584
|
+
|
|
3585
|
+
# The table chunk field in the chunk.
|
|
3586
|
+
# Corresponds to the JSON property `tableChunkField`
|
|
3587
|
+
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkTableChunkField]
|
|
3588
|
+
attr_accessor :table_chunk_field
|
|
3589
|
+
|
|
3590
|
+
def initialize(**args)
|
|
3591
|
+
update!(**args)
|
|
3592
|
+
end
|
|
3593
|
+
|
|
3594
|
+
# Update properties of this object
|
|
3595
|
+
def update!(**args)
|
|
3596
|
+
@image_chunk_field = args[:image_chunk_field] if args.key?(:image_chunk_field)
|
|
3597
|
+
@table_chunk_field = args[:table_chunk_field] if args.key?(:table_chunk_field)
|
|
3598
|
+
end
|
|
3599
|
+
end
|
|
3600
|
+
|
|
3507
3601
|
# Represents the page footer associated with the chunk.
|
|
3508
3602
|
class GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageFooter
|
|
3509
3603
|
include Google::Apis::Core::Hashable
|
|
@@ -3579,6 +3673,65 @@ module Google
|
|
|
3579
3673
|
end
|
|
3580
3674
|
end
|
|
3581
3675
|
|
|
3676
|
+
# The image chunk field in the chunk.
|
|
3677
|
+
class GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkImageChunkField
|
|
3678
|
+
include Google::Apis::Core::Hashable
|
|
3679
|
+
|
|
3680
|
+
# Represents the annotation of a block or a chunk.
|
|
3681
|
+
# Corresponds to the JSON property `annotations`
|
|
3682
|
+
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentAnnotations]
|
|
3683
|
+
attr_accessor :annotations
|
|
3684
|
+
|
|
3685
|
+
# Optional. Asset id of the inline image. If set, find the image content in the
|
|
3686
|
+
# blob_assets field.
|
|
3687
|
+
# Corresponds to the JSON property `blobAssetId`
|
|
3688
|
+
# @return [String]
|
|
3689
|
+
attr_accessor :blob_asset_id
|
|
3690
|
+
|
|
3691
|
+
# Optional. Data uri of the image. It is composed of four parts: a prefix (data:)
|
|
3692
|
+
# , a MIME type indicating the type of data, an optional base64 token if non-
|
|
3693
|
+
# textual, and the data itself: data:,
|
|
3694
|
+
# Corresponds to the JSON property `dataUri`
|
|
3695
|
+
# @return [String]
|
|
3696
|
+
attr_accessor :data_uri
|
|
3697
|
+
|
|
3698
|
+
# Optional. Google Cloud Storage uri of the image.
|
|
3699
|
+
# Corresponds to the JSON property `gcsUri`
|
|
3700
|
+
# @return [String]
|
|
3701
|
+
attr_accessor :gcs_uri
|
|
3702
|
+
|
|
3703
|
+
def initialize(**args)
|
|
3704
|
+
update!(**args)
|
|
3705
|
+
end
|
|
3706
|
+
|
|
3707
|
+
# Update properties of this object
|
|
3708
|
+
def update!(**args)
|
|
3709
|
+
@annotations = args[:annotations] if args.key?(:annotations)
|
|
3710
|
+
@blob_asset_id = args[:blob_asset_id] if args.key?(:blob_asset_id)
|
|
3711
|
+
@data_uri = args[:data_uri] if args.key?(:data_uri)
|
|
3712
|
+
@gcs_uri = args[:gcs_uri] if args.key?(:gcs_uri)
|
|
3713
|
+
end
|
|
3714
|
+
end
|
|
3715
|
+
|
|
3716
|
+
# The table chunk field in the chunk.
|
|
3717
|
+
class GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkTableChunkField
|
|
3718
|
+
include Google::Apis::Core::Hashable
|
|
3719
|
+
|
|
3720
|
+
# Represents the annotation of a block or a chunk.
|
|
3721
|
+
# Corresponds to the JSON property `annotations`
|
|
3722
|
+
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentAnnotations]
|
|
3723
|
+
attr_accessor :annotations
|
|
3724
|
+
|
|
3725
|
+
def initialize(**args)
|
|
3726
|
+
update!(**args)
|
|
3727
|
+
end
|
|
3728
|
+
|
|
3729
|
+
# Update properties of this object
|
|
3730
|
+
def update!(**args)
|
|
3731
|
+
@annotations = args[:annotations] if args.key?(:annotations)
|
|
3732
|
+
end
|
|
3733
|
+
end
|
|
3734
|
+
|
|
3582
3735
|
# Represents the parsed layout of a document as a collection of blocks that the
|
|
3583
3736
|
# document is divided into.
|
|
3584
3737
|
class GoogleCloudDocumentaiV1DocumentDocumentLayout
|
|
@@ -3614,6 +3767,11 @@ module Google
|
|
|
3614
3767
|
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1BoundingPoly]
|
|
3615
3768
|
attr_accessor :bounding_box
|
|
3616
3769
|
|
|
3770
|
+
# Represents an image type block.
|
|
3771
|
+
# Corresponds to the JSON property `imageBlock`
|
|
3772
|
+
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutImageBlock]
|
|
3773
|
+
attr_accessor :image_block
|
|
3774
|
+
|
|
3617
3775
|
# Represents a list type block.
|
|
3618
3776
|
# Corresponds to the JSON property `listBlock`
|
|
3619
3777
|
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock]
|
|
@@ -3642,6 +3800,7 @@ module Google
|
|
|
3642
3800
|
def update!(**args)
|
|
3643
3801
|
@block_id = args[:block_id] if args.key?(:block_id)
|
|
3644
3802
|
@bounding_box = args[:bounding_box] if args.key?(:bounding_box)
|
|
3803
|
+
@image_block = args[:image_block] if args.key?(:image_block)
|
|
3645
3804
|
@list_block = args[:list_block] if args.key?(:list_block)
|
|
3646
3805
|
@page_span = args[:page_span] if args.key?(:page_span)
|
|
3647
3806
|
@table_block = args[:table_block] if args.key?(:table_block)
|
|
@@ -3649,6 +3808,59 @@ module Google
|
|
|
3649
3808
|
end
|
|
3650
3809
|
end
|
|
3651
3810
|
|
|
3811
|
+
# Represents an image type block.
|
|
3812
|
+
class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutImageBlock
|
|
3813
|
+
include Google::Apis::Core::Hashable
|
|
3814
|
+
|
|
3815
|
+
# Represents the annotation of a block or a chunk.
|
|
3816
|
+
# Corresponds to the JSON property `annotations`
|
|
3817
|
+
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentAnnotations]
|
|
3818
|
+
attr_accessor :annotations
|
|
3819
|
+
|
|
3820
|
+
# Optional. Asset id of the inline image. If set, find the image content in the
|
|
3821
|
+
# blob_assets field.
|
|
3822
|
+
# Corresponds to the JSON property `blobAssetId`
|
|
3823
|
+
# @return [String]
|
|
3824
|
+
attr_accessor :blob_asset_id
|
|
3825
|
+
|
|
3826
|
+
# Optional. Data uri of the image. It is composed of four parts: a prefix (data:)
|
|
3827
|
+
# , a MIME type indicating the type of data, an optional base64 token if non-
|
|
3828
|
+
# textual, and the data itself: data:,
|
|
3829
|
+
# Corresponds to the JSON property `dataUri`
|
|
3830
|
+
# @return [String]
|
|
3831
|
+
attr_accessor :data_uri
|
|
3832
|
+
|
|
3833
|
+
# Optional. Google Cloud Storage uri of the image.
|
|
3834
|
+
# Corresponds to the JSON property `gcsUri`
|
|
3835
|
+
# @return [String]
|
|
3836
|
+
attr_accessor :gcs_uri
|
|
3837
|
+
|
|
3838
|
+
# Text extracted from the image using OCR or alt text describing the image.
|
|
3839
|
+
# Corresponds to the JSON property `imageText`
|
|
3840
|
+
# @return [String]
|
|
3841
|
+
attr_accessor :image_text
|
|
3842
|
+
|
|
3843
|
+
# Mime type of the image. An IANA published [media type (MIME type)] (https://
|
|
3844
|
+
# www.iana.org/assignments/media-types/media-types.xhtml).
|
|
3845
|
+
# Corresponds to the JSON property `mimeType`
|
|
3846
|
+
# @return [String]
|
|
3847
|
+
attr_accessor :mime_type
|
|
3848
|
+
|
|
3849
|
+
def initialize(**args)
|
|
3850
|
+
update!(**args)
|
|
3851
|
+
end
|
|
3852
|
+
|
|
3853
|
+
# Update properties of this object
|
|
3854
|
+
def update!(**args)
|
|
3855
|
+
@annotations = args[:annotations] if args.key?(:annotations)
|
|
3856
|
+
@blob_asset_id = args[:blob_asset_id] if args.key?(:blob_asset_id)
|
|
3857
|
+
@data_uri = args[:data_uri] if args.key?(:data_uri)
|
|
3858
|
+
@gcs_uri = args[:gcs_uri] if args.key?(:gcs_uri)
|
|
3859
|
+
@image_text = args[:image_text] if args.key?(:image_text)
|
|
3860
|
+
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
|
3861
|
+
end
|
|
3862
|
+
end
|
|
3863
|
+
|
|
3652
3864
|
# Represents a list type block.
|
|
3653
3865
|
class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock
|
|
3654
3866
|
include Google::Apis::Core::Hashable
|
|
@@ -3724,6 +3936,11 @@ module Google
|
|
|
3724
3936
|
class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock
|
|
3725
3937
|
include Google::Apis::Core::Hashable
|
|
3726
3938
|
|
|
3939
|
+
# Represents the annotation of a block or a chunk.
|
|
3940
|
+
# Corresponds to the JSON property `annotations`
|
|
3941
|
+
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentAnnotations]
|
|
3942
|
+
attr_accessor :annotations
|
|
3943
|
+
|
|
3727
3944
|
# Body rows containing main table content.
|
|
3728
3945
|
# Corresponds to the JSON property `bodyRows`
|
|
3729
3946
|
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow>]
|
|
@@ -3745,6 +3962,7 @@ module Google
|
|
|
3745
3962
|
|
|
3746
3963
|
# Update properties of this object
|
|
3747
3964
|
def update!(**args)
|
|
3965
|
+
@annotations = args[:annotations] if args.key?(:annotations)
|
|
3748
3966
|
@body_rows = args[:body_rows] if args.key?(:body_rows)
|
|
3749
3967
|
@caption = args[:caption] if args.key?(:caption)
|
|
3750
3968
|
@header_rows = args[:header_rows] if args.key?(:header_rows)
|
|
@@ -3806,6 +4024,11 @@ module Google
|
|
|
3806
4024
|
class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock
|
|
3807
4025
|
include Google::Apis::Core::Hashable
|
|
3808
4026
|
|
|
4027
|
+
# Represents the annotation of a block or a chunk.
|
|
4028
|
+
# Corresponds to the JSON property `annotations`
|
|
4029
|
+
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentAnnotations]
|
|
4030
|
+
attr_accessor :annotations
|
|
4031
|
+
|
|
3809
4032
|
# A text block could further have child blocks. Repeated blocks support further
|
|
3810
4033
|
# hierarchies and nested blocks.
|
|
3811
4034
|
# Corresponds to the JSON property `blocks`
|
|
@@ -3830,6 +4053,7 @@ module Google
|
|
|
3830
4053
|
|
|
3831
4054
|
# Update properties of this object
|
|
3832
4055
|
def update!(**args)
|
|
4056
|
+
@annotations = args[:annotations] if args.key?(:annotations)
|
|
3833
4057
|
@blocks = args[:blocks] if args.key?(:blocks)
|
|
3834
4058
|
@text = args[:text] if args.key?(:text)
|
|
3835
4059
|
@type = args[:type] if args.key?(:type)
|
|
@@ -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.118.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
22
|
GENERATOR_VERSION = "0.18.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20260503"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -700,6 +700,18 @@ module Google
|
|
|
700
700
|
include Google::Apis::Core::JsonObjectSupport
|
|
701
701
|
end
|
|
702
702
|
|
|
703
|
+
class GoogleCloudDocumentaiV1DocumentAnnotations
|
|
704
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
705
|
+
|
|
706
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
707
|
+
end
|
|
708
|
+
|
|
709
|
+
class GoogleCloudDocumentaiV1DocumentBlobAsset
|
|
710
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
711
|
+
|
|
712
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
713
|
+
end
|
|
714
|
+
|
|
703
715
|
class GoogleCloudDocumentaiV1DocumentChunkedDocument
|
|
704
716
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
705
717
|
|
|
@@ -712,6 +724,12 @@ module Google
|
|
|
712
724
|
include Google::Apis::Core::JsonObjectSupport
|
|
713
725
|
end
|
|
714
726
|
|
|
727
|
+
class GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkField
|
|
728
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
729
|
+
|
|
730
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
731
|
+
end
|
|
732
|
+
|
|
715
733
|
class GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageFooter
|
|
716
734
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
717
735
|
|
|
@@ -730,6 +748,18 @@ module Google
|
|
|
730
748
|
include Google::Apis::Core::JsonObjectSupport
|
|
731
749
|
end
|
|
732
750
|
|
|
751
|
+
class GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkImageChunkField
|
|
752
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
753
|
+
|
|
754
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
755
|
+
end
|
|
756
|
+
|
|
757
|
+
class GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkTableChunkField
|
|
758
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
759
|
+
|
|
760
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
761
|
+
end
|
|
762
|
+
|
|
733
763
|
class GoogleCloudDocumentaiV1DocumentDocumentLayout
|
|
734
764
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
735
765
|
|
|
@@ -742,6 +772,12 @@ module Google
|
|
|
742
772
|
include Google::Apis::Core::JsonObjectSupport
|
|
743
773
|
end
|
|
744
774
|
|
|
775
|
+
class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutImageBlock
|
|
776
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
777
|
+
|
|
778
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
779
|
+
end
|
|
780
|
+
|
|
745
781
|
class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock
|
|
746
782
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
747
783
|
|
|
@@ -2998,6 +3034,8 @@ module Google
|
|
|
2998
3034
|
class GoogleCloudDocumentaiV1Document
|
|
2999
3035
|
# @private
|
|
3000
3036
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
3037
|
+
collection :blob_assets, as: 'blobAssets', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentBlobAsset, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentBlobAsset::Representation
|
|
3038
|
+
|
|
3001
3039
|
property :chunked_document, as: 'chunkedDocument', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentChunkedDocument, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentChunkedDocument::Representation
|
|
3002
3040
|
|
|
3003
3041
|
property :content, :base64 => true, as: 'content'
|
|
@@ -3031,6 +3069,22 @@ module Google
|
|
|
3031
3069
|
end
|
|
3032
3070
|
end
|
|
3033
3071
|
|
|
3072
|
+
class GoogleCloudDocumentaiV1DocumentAnnotations
|
|
3073
|
+
# @private
|
|
3074
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
3075
|
+
property :description, as: 'description'
|
|
3076
|
+
end
|
|
3077
|
+
end
|
|
3078
|
+
|
|
3079
|
+
class GoogleCloudDocumentaiV1DocumentBlobAsset
|
|
3080
|
+
# @private
|
|
3081
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
3082
|
+
property :asset_id, as: 'assetId'
|
|
3083
|
+
property :content, :base64 => true, as: 'content'
|
|
3084
|
+
property :mime_type, as: 'mimeType'
|
|
3085
|
+
end
|
|
3086
|
+
end
|
|
3087
|
+
|
|
3034
3088
|
class GoogleCloudDocumentaiV1DocumentChunkedDocument
|
|
3035
3089
|
# @private
|
|
3036
3090
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -3042,6 +3096,8 @@ module Google
|
|
|
3042
3096
|
class GoogleCloudDocumentaiV1DocumentChunkedDocumentChunk
|
|
3043
3097
|
# @private
|
|
3044
3098
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
3099
|
+
collection :chunk_fields, as: 'chunkFields', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkField, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkField::Representation
|
|
3100
|
+
|
|
3045
3101
|
property :chunk_id, as: 'chunkId'
|
|
3046
3102
|
property :content, as: 'content'
|
|
3047
3103
|
collection :page_footers, as: 'pageFooters', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageFooter, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageFooter::Representation
|
|
@@ -3054,6 +3110,16 @@ module Google
|
|
|
3054
3110
|
end
|
|
3055
3111
|
end
|
|
3056
3112
|
|
|
3113
|
+
class GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkField
|
|
3114
|
+
# @private
|
|
3115
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
3116
|
+
property :image_chunk_field, as: 'imageChunkField', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkImageChunkField, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkImageChunkField::Representation
|
|
3117
|
+
|
|
3118
|
+
property :table_chunk_field, as: 'tableChunkField', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkTableChunkField, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkTableChunkField::Representation
|
|
3119
|
+
|
|
3120
|
+
end
|
|
3121
|
+
end
|
|
3122
|
+
|
|
3057
3123
|
class GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageFooter
|
|
3058
3124
|
# @private
|
|
3059
3125
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -3080,6 +3146,25 @@ module Google
|
|
|
3080
3146
|
end
|
|
3081
3147
|
end
|
|
3082
3148
|
|
|
3149
|
+
class GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkImageChunkField
|
|
3150
|
+
# @private
|
|
3151
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
3152
|
+
property :annotations, as: 'annotations', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentAnnotations, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentAnnotations::Representation
|
|
3153
|
+
|
|
3154
|
+
property :blob_asset_id, as: 'blobAssetId'
|
|
3155
|
+
property :data_uri, as: 'dataUri'
|
|
3156
|
+
property :gcs_uri, as: 'gcsUri'
|
|
3157
|
+
end
|
|
3158
|
+
end
|
|
3159
|
+
|
|
3160
|
+
class GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkTableChunkField
|
|
3161
|
+
# @private
|
|
3162
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
3163
|
+
property :annotations, as: 'annotations', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentAnnotations, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentAnnotations::Representation
|
|
3164
|
+
|
|
3165
|
+
end
|
|
3166
|
+
end
|
|
3167
|
+
|
|
3083
3168
|
class GoogleCloudDocumentaiV1DocumentDocumentLayout
|
|
3084
3169
|
# @private
|
|
3085
3170
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -3094,6 +3179,8 @@ module Google
|
|
|
3094
3179
|
property :block_id, as: 'blockId'
|
|
3095
3180
|
property :bounding_box, as: 'boundingBox', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1BoundingPoly, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1BoundingPoly::Representation
|
|
3096
3181
|
|
|
3182
|
+
property :image_block, as: 'imageBlock', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutImageBlock, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutImageBlock::Representation
|
|
3183
|
+
|
|
3097
3184
|
property :list_block, as: 'listBlock', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock::Representation
|
|
3098
3185
|
|
|
3099
3186
|
property :page_span, as: 'pageSpan', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan::Representation
|
|
@@ -3105,6 +3192,19 @@ module Google
|
|
|
3105
3192
|
end
|
|
3106
3193
|
end
|
|
3107
3194
|
|
|
3195
|
+
class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutImageBlock
|
|
3196
|
+
# @private
|
|
3197
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
3198
|
+
property :annotations, as: 'annotations', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentAnnotations, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentAnnotations::Representation
|
|
3199
|
+
|
|
3200
|
+
property :blob_asset_id, as: 'blobAssetId'
|
|
3201
|
+
property :data_uri, as: 'dataUri'
|
|
3202
|
+
property :gcs_uri, as: 'gcsUri'
|
|
3203
|
+
property :image_text, as: 'imageText'
|
|
3204
|
+
property :mime_type, as: 'mimeType'
|
|
3205
|
+
end
|
|
3206
|
+
end
|
|
3207
|
+
|
|
3108
3208
|
class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock
|
|
3109
3209
|
# @private
|
|
3110
3210
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -3133,6 +3233,8 @@ module Google
|
|
|
3133
3233
|
class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock
|
|
3134
3234
|
# @private
|
|
3135
3235
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
3236
|
+
property :annotations, as: 'annotations', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentAnnotations, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentAnnotations::Representation
|
|
3237
|
+
|
|
3136
3238
|
collection :body_rows, as: 'bodyRows', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow::Representation
|
|
3137
3239
|
|
|
3138
3240
|
property :caption, as: 'caption'
|
|
@@ -3162,6 +3264,8 @@ module Google
|
|
|
3162
3264
|
class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock
|
|
3163
3265
|
# @private
|
|
3164
3266
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
3267
|
+
property :annotations, as: 'annotations', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentAnnotations, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentAnnotations::Representation
|
|
3268
|
+
|
|
3165
3269
|
collection :blocks, as: 'blocks', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock::Representation
|
|
3166
3270
|
|
|
3167
3271
|
property :text, as: 'text'
|
|
@@ -149,8 +149,8 @@ module Google
|
|
|
149
149
|
end
|
|
150
150
|
|
|
151
151
|
# Lists information about the supported locations for this service. This method
|
|
152
|
-
# lists locations based on the resource scope provided in the
|
|
153
|
-
# ListLocationsRequest.name
|
|
152
|
+
# lists locations based on the resource scope provided in the
|
|
153
|
+
# ListLocationsRequest.name field: * **Global locations**: If `name` is empty,
|
|
154
154
|
# the method lists the public locations available to all projects. * **Project-
|
|
155
155
|
# specific locations**: If `name` follows the format `projects/`project``, the
|
|
156
156
|
# method lists locations visible to that specific project. This includes public,
|
|
@@ -161,8 +161,8 @@ module Google
|
|
|
161
161
|
# @param [String] name
|
|
162
162
|
# The resource that owns the locations collection, if applicable.
|
|
163
163
|
# @param [Array<String>, String] extra_location_types
|
|
164
|
-
# Optional. Do not use this field
|
|
165
|
-
#
|
|
164
|
+
# Optional. Do not use this field unless explicitly documented otherwise. This
|
|
165
|
+
# is primarily for internal usage.
|
|
166
166
|
# @param [String] filter
|
|
167
167
|
# A filter to narrow down results to a preferred subset. The filtering language
|
|
168
168
|
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.118.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -57,7 +57,7 @@ licenses:
|
|
|
57
57
|
metadata:
|
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-documentai_v1/CHANGELOG.md
|
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1/v0.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1/v0.118.0
|
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-documentai_v1
|
|
62
62
|
rdoc_options: []
|
|
63
63
|
require_paths:
|