google-apis-documentai_v1beta3 0.104.0 → 0.106.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: ffd770a80d11f0fcc1397d490c7f933d96247facf8ccf9f54c4b4fb33c61ac32
|
4
|
+
data.tar.gz: e2e59114c43914974e9d588ce6c831721a4c5866e09a69b9173832085f4c0c5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 212dc21939631b0002b8dd78a1cb76b4deb934c58d76ee7fdabcc28a0133c0838239587deed91feabb3dfae088986ecabd5e803bf1ece1b510b356bcc57aceac
|
7
|
+
data.tar.gz: 3a8e8b9c1b7d62e6dc18a4167834b85d03d9a7ae4a16e5bfcb2b4e9ffcb6c7816b07076d4ca5aa85415059a7cddcc12cbff15302a8a677c093cc606c4783966c
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-documentai_v1beta3
|
2
2
|
|
3
|
+
### v0.106.0 (2025-05-04)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20250427
|
6
|
+
* Regenerated using generator version 0.17.0
|
7
|
+
|
8
|
+
### v0.105.0 (2025-04-27)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20250421
|
11
|
+
|
3
12
|
### v0.104.0 (2025-04-20)
|
4
13
|
|
5
14
|
* Regenerated from discovery document revision 20250416
|
data/OVERVIEW.md
CHANGED
@@ -83,7 +83,7 @@ The [product documentation](https://cloud.google.com/document-ai/docs/) may prov
|
|
83
83
|
|
84
84
|
## Supported Ruby versions
|
85
85
|
|
86
|
-
This library is supported on Ruby
|
86
|
+
This library is supported on Ruby 3.1+.
|
87
87
|
|
88
88
|
Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
|
89
89
|
|
@@ -2783,6 +2783,13 @@ module Google
|
|
2783
2783
|
class GoogleCloudDocumentaiV1beta3Document
|
2784
2784
|
include Google::Apis::Core::Hashable
|
2785
2785
|
|
2786
|
+
# Optional. The blob assets in this document. This is used to store the content
|
2787
|
+
# of the inline blobs in this document, e.g. image bytes, such that it can be
|
2788
|
+
# referenced by other fields in the document via asset id.
|
2789
|
+
# Corresponds to the JSON property `blobAssets`
|
2790
|
+
# @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentBlobAsset>]
|
2791
|
+
attr_accessor :blob_assets
|
2792
|
+
|
2786
2793
|
# Represents the chunks that the document is divided into.
|
2787
2794
|
# Corresponds to the JSON property `chunkedDocument`
|
2788
2795
|
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentChunkedDocument]
|
@@ -2881,6 +2888,7 @@ module Google
|
|
2881
2888
|
|
2882
2889
|
# Update properties of this object
|
2883
2890
|
def update!(**args)
|
2891
|
+
@blob_assets = args[:blob_assets] if args.key?(:blob_assets)
|
2884
2892
|
@chunked_document = args[:chunked_document] if args.key?(:chunked_document)
|
2885
2893
|
@content = args[:content] if args.key?(:content)
|
2886
2894
|
@docid = args[:docid] if args.key?(:docid)
|
@@ -2899,6 +2907,60 @@ module Google
|
|
2899
2907
|
end
|
2900
2908
|
end
|
2901
2909
|
|
2910
|
+
# Represents the annotation of a block or a chunk.
|
2911
|
+
class GoogleCloudDocumentaiV1beta3DocumentAnnotations
|
2912
|
+
include Google::Apis::Core::Hashable
|
2913
|
+
|
2914
|
+
# The description of the content with this annotation.
|
2915
|
+
# Corresponds to the JSON property `description`
|
2916
|
+
# @return [String]
|
2917
|
+
attr_accessor :description
|
2918
|
+
|
2919
|
+
def initialize(**args)
|
2920
|
+
update!(**args)
|
2921
|
+
end
|
2922
|
+
|
2923
|
+
# Update properties of this object
|
2924
|
+
def update!(**args)
|
2925
|
+
@description = args[:description] if args.key?(:description)
|
2926
|
+
end
|
2927
|
+
end
|
2928
|
+
|
2929
|
+
# Represents a blob asset. It's used to store the content of the inline blob in
|
2930
|
+
# this document, e.g. image bytes, such that it can be referenced by other
|
2931
|
+
# fields in the document via asset id.
|
2932
|
+
class GoogleCloudDocumentaiV1beta3DocumentBlobAsset
|
2933
|
+
include Google::Apis::Core::Hashable
|
2934
|
+
|
2935
|
+
# Optional. The id of the blob asset.
|
2936
|
+
# Corresponds to the JSON property `assetId`
|
2937
|
+
# @return [String]
|
2938
|
+
attr_accessor :asset_id
|
2939
|
+
|
2940
|
+
# Optional. The content of the blob asset, e.g. image bytes.
|
2941
|
+
# Corresponds to the JSON property `content`
|
2942
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
2943
|
+
# @return [String]
|
2944
|
+
attr_accessor :content
|
2945
|
+
|
2946
|
+
# The mime type of the blob asset. An IANA published [media type (MIME type)](
|
2947
|
+
# https://www.iana.org/assignments/media-types/media-types.xhtml).
|
2948
|
+
# Corresponds to the JSON property `mimeType`
|
2949
|
+
# @return [String]
|
2950
|
+
attr_accessor :mime_type
|
2951
|
+
|
2952
|
+
def initialize(**args)
|
2953
|
+
update!(**args)
|
2954
|
+
end
|
2955
|
+
|
2956
|
+
# Update properties of this object
|
2957
|
+
def update!(**args)
|
2958
|
+
@asset_id = args[:asset_id] if args.key?(:asset_id)
|
2959
|
+
@content = args[:content] if args.key?(:content)
|
2960
|
+
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
2961
|
+
end
|
2962
|
+
end
|
2963
|
+
|
2902
2964
|
# Represents the chunks that the document is divided into.
|
2903
2965
|
class GoogleCloudDocumentaiV1beta3DocumentChunkedDocument
|
2904
2966
|
include Google::Apis::Core::Hashable
|
@@ -2922,6 +2984,11 @@ module Google
|
|
2922
2984
|
class GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunk
|
2923
2985
|
include Google::Apis::Core::Hashable
|
2924
2986
|
|
2987
|
+
# Chunk fields inside this chunk.
|
2988
|
+
# Corresponds to the JSON property `chunkFields`
|
2989
|
+
# @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkField>]
|
2990
|
+
attr_accessor :chunk_fields
|
2991
|
+
|
2925
2992
|
# ID of the chunk.
|
2926
2993
|
# Corresponds to the JSON property `chunkId`
|
2927
2994
|
# @return [String]
|
@@ -2958,6 +3025,7 @@ module Google
|
|
2958
3025
|
|
2959
3026
|
# Update properties of this object
|
2960
3027
|
def update!(**args)
|
3028
|
+
@chunk_fields = args[:chunk_fields] if args.key?(:chunk_fields)
|
2961
3029
|
@chunk_id = args[:chunk_id] if args.key?(:chunk_id)
|
2962
3030
|
@content = args[:content] if args.key?(:content)
|
2963
3031
|
@page_footers = args[:page_footers] if args.key?(:page_footers)
|
@@ -2967,6 +3035,32 @@ module Google
|
|
2967
3035
|
end
|
2968
3036
|
end
|
2969
3037
|
|
3038
|
+
# The chunk field in the chunk. A chunk field could be one of the various types (
|
3039
|
+
# e.g. image, table) supported.
|
3040
|
+
class GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkField
|
3041
|
+
include Google::Apis::Core::Hashable
|
3042
|
+
|
3043
|
+
# The image chunk field in the chunk.
|
3044
|
+
# Corresponds to the JSON property `imageChunkField`
|
3045
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkImageChunkField]
|
3046
|
+
attr_accessor :image_chunk_field
|
3047
|
+
|
3048
|
+
# The table chunk field in the chunk.
|
3049
|
+
# Corresponds to the JSON property `tableChunkField`
|
3050
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkTableChunkField]
|
3051
|
+
attr_accessor :table_chunk_field
|
3052
|
+
|
3053
|
+
def initialize(**args)
|
3054
|
+
update!(**args)
|
3055
|
+
end
|
3056
|
+
|
3057
|
+
# Update properties of this object
|
3058
|
+
def update!(**args)
|
3059
|
+
@image_chunk_field = args[:image_chunk_field] if args.key?(:image_chunk_field)
|
3060
|
+
@table_chunk_field = args[:table_chunk_field] if args.key?(:table_chunk_field)
|
3061
|
+
end
|
3062
|
+
end
|
3063
|
+
|
2970
3064
|
# Represents the page footer associated with the chunk.
|
2971
3065
|
class GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageFooter
|
2972
3066
|
include Google::Apis::Core::Hashable
|
@@ -3042,6 +3136,65 @@ module Google
|
|
3042
3136
|
end
|
3043
3137
|
end
|
3044
3138
|
|
3139
|
+
# The image chunk field in the chunk.
|
3140
|
+
class GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkImageChunkField
|
3141
|
+
include Google::Apis::Core::Hashable
|
3142
|
+
|
3143
|
+
# Represents the annotation of a block or a chunk.
|
3144
|
+
# Corresponds to the JSON property `annotations`
|
3145
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentAnnotations]
|
3146
|
+
attr_accessor :annotations
|
3147
|
+
|
3148
|
+
# Optional. Asset id of the inline image. If set, find the image content in the
|
3149
|
+
# blob_assets field.
|
3150
|
+
# Corresponds to the JSON property `blobAssetId`
|
3151
|
+
# @return [String]
|
3152
|
+
attr_accessor :blob_asset_id
|
3153
|
+
|
3154
|
+
# Optional. Data uri of the image. It is composed of four parts: a prefix (data:)
|
3155
|
+
# , a MIME type indicating the type of data, an optional base64 token if non-
|
3156
|
+
# textual, and the data itself: data:,
|
3157
|
+
# Corresponds to the JSON property `dataUri`
|
3158
|
+
# @return [String]
|
3159
|
+
attr_accessor :data_uri
|
3160
|
+
|
3161
|
+
# Optional. Google Cloud Storage uri of the image.
|
3162
|
+
# Corresponds to the JSON property `gcsUri`
|
3163
|
+
# @return [String]
|
3164
|
+
attr_accessor :gcs_uri
|
3165
|
+
|
3166
|
+
def initialize(**args)
|
3167
|
+
update!(**args)
|
3168
|
+
end
|
3169
|
+
|
3170
|
+
# Update properties of this object
|
3171
|
+
def update!(**args)
|
3172
|
+
@annotations = args[:annotations] if args.key?(:annotations)
|
3173
|
+
@blob_asset_id = args[:blob_asset_id] if args.key?(:blob_asset_id)
|
3174
|
+
@data_uri = args[:data_uri] if args.key?(:data_uri)
|
3175
|
+
@gcs_uri = args[:gcs_uri] if args.key?(:gcs_uri)
|
3176
|
+
end
|
3177
|
+
end
|
3178
|
+
|
3179
|
+
# The table chunk field in the chunk.
|
3180
|
+
class GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkTableChunkField
|
3181
|
+
include Google::Apis::Core::Hashable
|
3182
|
+
|
3183
|
+
# Represents the annotation of a block or a chunk.
|
3184
|
+
# Corresponds to the JSON property `annotations`
|
3185
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentAnnotations]
|
3186
|
+
attr_accessor :annotations
|
3187
|
+
|
3188
|
+
def initialize(**args)
|
3189
|
+
update!(**args)
|
3190
|
+
end
|
3191
|
+
|
3192
|
+
# Update properties of this object
|
3193
|
+
def update!(**args)
|
3194
|
+
@annotations = args[:annotations] if args.key?(:annotations)
|
3195
|
+
end
|
3196
|
+
end
|
3197
|
+
|
3045
3198
|
# Represents the parsed layout of a document as a collection of blocks that the
|
3046
3199
|
# document is divided into.
|
3047
3200
|
class GoogleCloudDocumentaiV1beta3DocumentDocumentLayout
|
@@ -3077,6 +3230,11 @@ module Google
|
|
3077
3230
|
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3BoundingPoly]
|
3078
3231
|
attr_accessor :bounding_box
|
3079
3232
|
|
3233
|
+
# Represents an image type block.
|
3234
|
+
# Corresponds to the JSON property `imageBlock`
|
3235
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutImageBlock]
|
3236
|
+
attr_accessor :image_block
|
3237
|
+
|
3080
3238
|
# Represents a list type block.
|
3081
3239
|
# Corresponds to the JSON property `listBlock`
|
3082
3240
|
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock]
|
@@ -3105,6 +3263,7 @@ module Google
|
|
3105
3263
|
def update!(**args)
|
3106
3264
|
@block_id = args[:block_id] if args.key?(:block_id)
|
3107
3265
|
@bounding_box = args[:bounding_box] if args.key?(:bounding_box)
|
3266
|
+
@image_block = args[:image_block] if args.key?(:image_block)
|
3108
3267
|
@list_block = args[:list_block] if args.key?(:list_block)
|
3109
3268
|
@page_span = args[:page_span] if args.key?(:page_span)
|
3110
3269
|
@table_block = args[:table_block] if args.key?(:table_block)
|
@@ -3112,6 +3271,59 @@ module Google
|
|
3112
3271
|
end
|
3113
3272
|
end
|
3114
3273
|
|
3274
|
+
# Represents an image type block.
|
3275
|
+
class GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutImageBlock
|
3276
|
+
include Google::Apis::Core::Hashable
|
3277
|
+
|
3278
|
+
# Represents the annotation of a block or a chunk.
|
3279
|
+
# Corresponds to the JSON property `annotations`
|
3280
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentAnnotations]
|
3281
|
+
attr_accessor :annotations
|
3282
|
+
|
3283
|
+
# Optional. Asset id of the inline image. If set, find the image content in the
|
3284
|
+
# blob_assets field.
|
3285
|
+
# Corresponds to the JSON property `blobAssetId`
|
3286
|
+
# @return [String]
|
3287
|
+
attr_accessor :blob_asset_id
|
3288
|
+
|
3289
|
+
# Optional. Data uri of the image. It is composed of four parts: a prefix (data:)
|
3290
|
+
# , a MIME type indicating the type of data, an optional base64 token if non-
|
3291
|
+
# textual, and the data itself: data:,
|
3292
|
+
# Corresponds to the JSON property `dataUri`
|
3293
|
+
# @return [String]
|
3294
|
+
attr_accessor :data_uri
|
3295
|
+
|
3296
|
+
# Optional. Google Cloud Storage uri of the image.
|
3297
|
+
# Corresponds to the JSON property `gcsUri`
|
3298
|
+
# @return [String]
|
3299
|
+
attr_accessor :gcs_uri
|
3300
|
+
|
3301
|
+
# Text extracted from the image using OCR or alt text describing the image.
|
3302
|
+
# Corresponds to the JSON property `imageText`
|
3303
|
+
# @return [String]
|
3304
|
+
attr_accessor :image_text
|
3305
|
+
|
3306
|
+
# Mime type of the image. An IANA published [media type (MIME type)] (https://
|
3307
|
+
# www.iana.org/assignments/media-types/media-types.xhtml).
|
3308
|
+
# Corresponds to the JSON property `mimeType`
|
3309
|
+
# @return [String]
|
3310
|
+
attr_accessor :mime_type
|
3311
|
+
|
3312
|
+
def initialize(**args)
|
3313
|
+
update!(**args)
|
3314
|
+
end
|
3315
|
+
|
3316
|
+
# Update properties of this object
|
3317
|
+
def update!(**args)
|
3318
|
+
@annotations = args[:annotations] if args.key?(:annotations)
|
3319
|
+
@blob_asset_id = args[:blob_asset_id] if args.key?(:blob_asset_id)
|
3320
|
+
@data_uri = args[:data_uri] if args.key?(:data_uri)
|
3321
|
+
@gcs_uri = args[:gcs_uri] if args.key?(:gcs_uri)
|
3322
|
+
@image_text = args[:image_text] if args.key?(:image_text)
|
3323
|
+
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
3324
|
+
end
|
3325
|
+
end
|
3326
|
+
|
3115
3327
|
# Represents a list type block.
|
3116
3328
|
class GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock
|
3117
3329
|
include Google::Apis::Core::Hashable
|
@@ -3187,6 +3399,11 @@ module Google
|
|
3187
3399
|
class GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock
|
3188
3400
|
include Google::Apis::Core::Hashable
|
3189
3401
|
|
3402
|
+
# Represents the annotation of a block or a chunk.
|
3403
|
+
# Corresponds to the JSON property `annotations`
|
3404
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentAnnotations]
|
3405
|
+
attr_accessor :annotations
|
3406
|
+
|
3190
3407
|
# Body rows containing main table content.
|
3191
3408
|
# Corresponds to the JSON property `bodyRows`
|
3192
3409
|
# @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow>]
|
@@ -3208,6 +3425,7 @@ module Google
|
|
3208
3425
|
|
3209
3426
|
# Update properties of this object
|
3210
3427
|
def update!(**args)
|
3428
|
+
@annotations = args[:annotations] if args.key?(:annotations)
|
3211
3429
|
@body_rows = args[:body_rows] if args.key?(:body_rows)
|
3212
3430
|
@caption = args[:caption] if args.key?(:caption)
|
3213
3431
|
@header_rows = args[:header_rows] if args.key?(:header_rows)
|
@@ -3455,6 +3673,12 @@ module Google
|
|
3455
3673
|
# @return [Google::Apis::DocumentaiV1beta3::GoogleTypeMoney]
|
3456
3674
|
attr_accessor :money_value
|
3457
3675
|
|
3676
|
+
#
|
3677
|
+
# Corresponds to the JSON property `signatureValue`
|
3678
|
+
# @return [Boolean]
|
3679
|
+
attr_accessor :signature_value
|
3680
|
+
alias_method :signature_value?, :signature_value
|
3681
|
+
|
3458
3682
|
# Optional. An optional field to store a normalized string. For some entity
|
3459
3683
|
# types, one of respective `structured_value` fields may also be populated. Also
|
3460
3684
|
# not all the types of `structured_value` will be normalized. For example, some
|
@@ -3480,6 +3704,7 @@ module Google
|
|
3480
3704
|
@float_value = args[:float_value] if args.key?(:float_value)
|
3481
3705
|
@integer_value = args[:integer_value] if args.key?(:integer_value)
|
3482
3706
|
@money_value = args[:money_value] if args.key?(:money_value)
|
3707
|
+
@signature_value = args[:signature_value] if args.key?(:signature_value)
|
3483
3708
|
@text = args[:text] if args.key?(:text)
|
3484
3709
|
end
|
3485
3710
|
end
|
@@ -5042,6 +5267,11 @@ module Google
|
|
5042
5267
|
# @return [String]
|
5043
5268
|
attr_accessor :display_name
|
5044
5269
|
|
5270
|
+
# Grounding config of the entity type.
|
5271
|
+
# Corresponds to the JSON property `groundingConfig`
|
5272
|
+
# @return [String]
|
5273
|
+
attr_accessor :grounding_config
|
5274
|
+
|
5045
5275
|
# The name of the property. Follows the same guidelines as the EntityType name.
|
5046
5276
|
# Corresponds to the JSON property `name`
|
5047
5277
|
# @return [String]
|
@@ -5072,6 +5302,7 @@ module Google
|
|
5072
5302
|
def update!(**args)
|
5073
5303
|
@description = args[:description] if args.key?(:description)
|
5074
5304
|
@display_name = args[:display_name] if args.key?(:display_name)
|
5305
|
+
@grounding_config = args[:grounding_config] if args.key?(:grounding_config)
|
5075
5306
|
@name = args[:name] if args.key?(:name)
|
5076
5307
|
@occurrence_type = args[:occurrence_type] if args.key?(:occurrence_type)
|
5077
5308
|
@property_metadata = args[:property_metadata] if args.key?(:property_metadata)
|
@@ -6715,12 +6946,30 @@ module Google
|
|
6715
6946
|
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfigChunkingConfig]
|
6716
6947
|
attr_accessor :chunking_config
|
6717
6948
|
|
6949
|
+
# Optional. Whether to include image annotations in layout parser response.
|
6950
|
+
# Corresponds to the JSON property `enableImageAnnotation`
|
6951
|
+
# @return [Boolean]
|
6952
|
+
attr_accessor :enable_image_annotation
|
6953
|
+
alias_method :enable_image_annotation?, :enable_image_annotation
|
6954
|
+
|
6955
|
+
# Optional. Whether to extract images in layout parser response.
|
6956
|
+
# Corresponds to the JSON property `enableImageExtraction`
|
6957
|
+
# @return [Boolean]
|
6958
|
+
attr_accessor :enable_image_extraction
|
6959
|
+
alias_method :enable_image_extraction?, :enable_image_extraction
|
6960
|
+
|
6718
6961
|
# Optional. Whether to refine PDF layout using LLM.
|
6719
6962
|
# Corresponds to the JSON property `enableLlmLayoutParsing`
|
6720
6963
|
# @return [Boolean]
|
6721
6964
|
attr_accessor :enable_llm_layout_parsing
|
6722
6965
|
alias_method :enable_llm_layout_parsing?, :enable_llm_layout_parsing
|
6723
6966
|
|
6967
|
+
# Optional. Whether to include table annotations in layout parser response.
|
6968
|
+
# Corresponds to the JSON property `enableTableAnnotation`
|
6969
|
+
# @return [Boolean]
|
6970
|
+
attr_accessor :enable_table_annotation
|
6971
|
+
alias_method :enable_table_annotation?, :enable_table_annotation
|
6972
|
+
|
6724
6973
|
# Optional. Whether to include bounding boxes in layout parser processor
|
6725
6974
|
# response.
|
6726
6975
|
# Corresponds to the JSON property `returnBoundingBoxes`
|
@@ -6741,7 +6990,10 @@ module Google
|
|
6741
6990
|
# Update properties of this object
|
6742
6991
|
def update!(**args)
|
6743
6992
|
@chunking_config = args[:chunking_config] if args.key?(:chunking_config)
|
6993
|
+
@enable_image_annotation = args[:enable_image_annotation] if args.key?(:enable_image_annotation)
|
6994
|
+
@enable_image_extraction = args[:enable_image_extraction] if args.key?(:enable_image_extraction)
|
6744
6995
|
@enable_llm_layout_parsing = args[:enable_llm_layout_parsing] if args.key?(:enable_llm_layout_parsing)
|
6996
|
+
@enable_table_annotation = args[:enable_table_annotation] if args.key?(:enable_table_annotation)
|
6745
6997
|
@return_bounding_boxes = args[:return_bounding_boxes] if args.key?(:return_bounding_boxes)
|
6746
6998
|
@return_images = args[:return_images] if args.key?(:return_images)
|
6747
6999
|
end
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.106.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.17.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250427"
|
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 GoogleCloudDocumentaiV1beta3DocumentAnnotations
|
704
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
705
|
+
|
706
|
+
include Google::Apis::Core::JsonObjectSupport
|
707
|
+
end
|
708
|
+
|
709
|
+
class GoogleCloudDocumentaiV1beta3DocumentBlobAsset
|
710
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
711
|
+
|
712
|
+
include Google::Apis::Core::JsonObjectSupport
|
713
|
+
end
|
714
|
+
|
703
715
|
class GoogleCloudDocumentaiV1beta3DocumentChunkedDocument
|
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 GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkField
|
728
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
729
|
+
|
730
|
+
include Google::Apis::Core::JsonObjectSupport
|
731
|
+
end
|
732
|
+
|
715
733
|
class GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageFooter
|
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 GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkImageChunkField
|
752
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
753
|
+
|
754
|
+
include Google::Apis::Core::JsonObjectSupport
|
755
|
+
end
|
756
|
+
|
757
|
+
class GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkTableChunkField
|
758
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
759
|
+
|
760
|
+
include Google::Apis::Core::JsonObjectSupport
|
761
|
+
end
|
762
|
+
|
733
763
|
class GoogleCloudDocumentaiV1beta3DocumentDocumentLayout
|
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 GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutImageBlock
|
776
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
777
|
+
|
778
|
+
include Google::Apis::Core::JsonObjectSupport
|
779
|
+
end
|
780
|
+
|
745
781
|
class GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock
|
746
782
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
747
783
|
|
@@ -2585,6 +2621,8 @@ module Google
|
|
2585
2621
|
class GoogleCloudDocumentaiV1beta3Document
|
2586
2622
|
# @private
|
2587
2623
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2624
|
+
collection :blob_assets, as: 'blobAssets', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentBlobAsset, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentBlobAsset::Representation
|
2625
|
+
|
2588
2626
|
property :chunked_document, as: 'chunkedDocument', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentChunkedDocument, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentChunkedDocument::Representation
|
2589
2627
|
|
2590
2628
|
property :content, :base64 => true, as: 'content'
|
@@ -2613,6 +2651,22 @@ module Google
|
|
2613
2651
|
end
|
2614
2652
|
end
|
2615
2653
|
|
2654
|
+
class GoogleCloudDocumentaiV1beta3DocumentAnnotations
|
2655
|
+
# @private
|
2656
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2657
|
+
property :description, as: 'description'
|
2658
|
+
end
|
2659
|
+
end
|
2660
|
+
|
2661
|
+
class GoogleCloudDocumentaiV1beta3DocumentBlobAsset
|
2662
|
+
# @private
|
2663
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2664
|
+
property :asset_id, as: 'assetId'
|
2665
|
+
property :content, :base64 => true, as: 'content'
|
2666
|
+
property :mime_type, as: 'mimeType'
|
2667
|
+
end
|
2668
|
+
end
|
2669
|
+
|
2616
2670
|
class GoogleCloudDocumentaiV1beta3DocumentChunkedDocument
|
2617
2671
|
# @private
|
2618
2672
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2624,6 +2678,8 @@ module Google
|
|
2624
2678
|
class GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunk
|
2625
2679
|
# @private
|
2626
2680
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2681
|
+
collection :chunk_fields, as: 'chunkFields', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkField, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkField::Representation
|
2682
|
+
|
2627
2683
|
property :chunk_id, as: 'chunkId'
|
2628
2684
|
property :content, as: 'content'
|
2629
2685
|
collection :page_footers, as: 'pageFooters', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageFooter, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageFooter::Representation
|
@@ -2636,6 +2692,16 @@ module Google
|
|
2636
2692
|
end
|
2637
2693
|
end
|
2638
2694
|
|
2695
|
+
class GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkField
|
2696
|
+
# @private
|
2697
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2698
|
+
property :image_chunk_field, as: 'imageChunkField', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkImageChunkField, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkImageChunkField::Representation
|
2699
|
+
|
2700
|
+
property :table_chunk_field, as: 'tableChunkField', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkTableChunkField, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkTableChunkField::Representation
|
2701
|
+
|
2702
|
+
end
|
2703
|
+
end
|
2704
|
+
|
2639
2705
|
class GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageFooter
|
2640
2706
|
# @private
|
2641
2707
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2662,6 +2728,25 @@ module Google
|
|
2662
2728
|
end
|
2663
2729
|
end
|
2664
2730
|
|
2731
|
+
class GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkImageChunkField
|
2732
|
+
# @private
|
2733
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2734
|
+
property :annotations, as: 'annotations', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentAnnotations, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentAnnotations::Representation
|
2735
|
+
|
2736
|
+
property :blob_asset_id, as: 'blobAssetId'
|
2737
|
+
property :data_uri, as: 'dataUri'
|
2738
|
+
property :gcs_uri, as: 'gcsUri'
|
2739
|
+
end
|
2740
|
+
end
|
2741
|
+
|
2742
|
+
class GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkTableChunkField
|
2743
|
+
# @private
|
2744
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2745
|
+
property :annotations, as: 'annotations', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentAnnotations, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentAnnotations::Representation
|
2746
|
+
|
2747
|
+
end
|
2748
|
+
end
|
2749
|
+
|
2665
2750
|
class GoogleCloudDocumentaiV1beta3DocumentDocumentLayout
|
2666
2751
|
# @private
|
2667
2752
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2676,6 +2761,8 @@ module Google
|
|
2676
2761
|
property :block_id, as: 'blockId'
|
2677
2762
|
property :bounding_box, as: 'boundingBox', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3BoundingPoly, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3BoundingPoly::Representation
|
2678
2763
|
|
2764
|
+
property :image_block, as: 'imageBlock', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutImageBlock, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutImageBlock::Representation
|
2765
|
+
|
2679
2766
|
property :list_block, as: 'listBlock', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock::Representation
|
2680
2767
|
|
2681
2768
|
property :page_span, as: 'pageSpan', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan::Representation
|
@@ -2687,6 +2774,19 @@ module Google
|
|
2687
2774
|
end
|
2688
2775
|
end
|
2689
2776
|
|
2777
|
+
class GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutImageBlock
|
2778
|
+
# @private
|
2779
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2780
|
+
property :annotations, as: 'annotations', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentAnnotations, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentAnnotations::Representation
|
2781
|
+
|
2782
|
+
property :blob_asset_id, as: 'blobAssetId'
|
2783
|
+
property :data_uri, as: 'dataUri'
|
2784
|
+
property :gcs_uri, as: 'gcsUri'
|
2785
|
+
property :image_text, as: 'imageText'
|
2786
|
+
property :mime_type, as: 'mimeType'
|
2787
|
+
end
|
2788
|
+
end
|
2789
|
+
|
2690
2790
|
class GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock
|
2691
2791
|
# @private
|
2692
2792
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2715,6 +2815,8 @@ module Google
|
|
2715
2815
|
class GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock
|
2716
2816
|
# @private
|
2717
2817
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2818
|
+
property :annotations, as: 'annotations', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentAnnotations, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentAnnotations::Representation
|
2819
|
+
|
2718
2820
|
collection :body_rows, as: 'bodyRows', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow::Representation
|
2719
2821
|
|
2720
2822
|
property :caption, as: 'caption'
|
@@ -2787,6 +2889,7 @@ module Google
|
|
2787
2889
|
property :integer_value, as: 'integerValue'
|
2788
2890
|
property :money_value, as: 'moneyValue', class: Google::Apis::DocumentaiV1beta3::GoogleTypeMoney, decorator: Google::Apis::DocumentaiV1beta3::GoogleTypeMoney::Representation
|
2789
2891
|
|
2892
|
+
property :signature_value, as: 'signatureValue'
|
2790
2893
|
property :text, as: 'text'
|
2791
2894
|
end
|
2792
2895
|
end
|
@@ -3240,6 +3343,7 @@ module Google
|
|
3240
3343
|
class Representation < Google::Apis::Core::JsonRepresentation
|
3241
3344
|
property :description, as: 'description'
|
3242
3345
|
property :display_name, as: 'displayName'
|
3346
|
+
property :grounding_config, as: 'groundingConfig'
|
3243
3347
|
property :name, as: 'name'
|
3244
3348
|
property :occurrence_type, as: 'occurrenceType'
|
3245
3349
|
property :property_metadata, as: 'propertyMetadata', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3PropertyMetadata, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3PropertyMetadata::Representation
|
@@ -3728,7 +3832,10 @@ module Google
|
|
3728
3832
|
class Representation < Google::Apis::Core::JsonRepresentation
|
3729
3833
|
property :chunking_config, as: 'chunkingConfig', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfigChunkingConfig, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfigChunkingConfig::Representation
|
3730
3834
|
|
3835
|
+
property :enable_image_annotation, as: 'enableImageAnnotation'
|
3836
|
+
property :enable_image_extraction, as: 'enableImageExtraction'
|
3731
3837
|
property :enable_llm_layout_parsing, as: 'enableLlmLayoutParsing'
|
3838
|
+
property :enable_table_annotation, as: 'enableTableAnnotation'
|
3732
3839
|
property :return_bounding_boxes, as: 'returnBoundingBoxes'
|
3733
3840
|
property :return_images, as: 'returnImages'
|
3734
3841
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-documentai_v1beta3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.106.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: google-apis-core
|
@@ -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_v1beta3/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta3/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta3/v0.106.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-documentai_v1beta3
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|
@@ -66,14 +66,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
66
66
|
requirements:
|
67
67
|
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: '
|
69
|
+
version: '3.1'
|
70
70
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - ">="
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '0'
|
75
75
|
requirements: []
|
76
|
-
rubygems_version: 3.6.
|
76
|
+
rubygems_version: 3.6.8
|
77
77
|
specification_version: 4
|
78
78
|
summary: Simple REST client for Cloud Document AI API V1beta3
|
79
79
|
test_files: []
|