google-apis-documentai_v1beta3 0.101.0 → 0.103.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 +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/google/apis/documentai_v1beta3/classes.rb +66 -44
- data/lib/google/apis/documentai_v1beta3/gem_version.rb +3 -3
- data/lib/google/apis/documentai_v1beta3/representations.rb +3 -0
- data/lib/google/apis/documentai_v1beta3/service.rb +5 -1
- metadata +4 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ecdfb89070c4633f18cbaed7837a9107743ad61e1427f56d323b1308f148e94e
|
4
|
+
data.tar.gz: 50ce7c59dd0dc6f2c5308af7350a7d929b1c7188e4051b22fac45cb93c7e204e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b19133b19c5bf609ada9940b053b8c9bc40da44981e004a32f1d28cf320e60a0d907899d5a345f77200296ee84508704b9d5f6b78f28760bf9bfc5aa0c9d914a
|
7
|
+
data.tar.gz: bd34e94e432d2cb05bf2992d698d65c0d21b76339013ea56be5eb421f648cd0bfdd2462089b59cb1ac963a8fdf78813e30ce60e48c6f8bdb06fba226cb13ad9e
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-documentai_v1beta3
|
2
2
|
|
3
|
+
### v0.103.0 (2025-03-23)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20250321
|
6
|
+
|
7
|
+
### v0.102.0 (2025-02-26)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20250210
|
10
|
+
* Regenerated using generator version 0.16.0
|
11
|
+
|
3
12
|
### v0.101.0 (2024-12-15)
|
4
13
|
|
5
14
|
* Regenerated from discovery document revision 20241210
|
@@ -3378,16 +3378,16 @@ module Google
|
|
3378
3378
|
class GoogleCloudDocumentaiV1beta3DocumentEntityNormalizedValue
|
3379
3379
|
include Google::Apis::Core::Hashable
|
3380
3380
|
|
3381
|
-
# Represents a postal address
|
3382
|
-
# addresses. Given a postal address, a postal service can deliver items to a
|
3383
|
-
# premise, P.O.
|
3384
|
-
# locations (roads, towns, mountains). In typical usage an address would be
|
3381
|
+
# Represents a postal address (for example, for postal delivery or payments
|
3382
|
+
# addresses). Given a postal address, a postal service can deliver items to a
|
3383
|
+
# premise, P.O. box or similar. It is not intended to model geographical
|
3384
|
+
# locations (roads, towns, mountains). In typical usage, an address would be
|
3385
3385
|
# created by user input or from importing existing data, depending on the type
|
3386
|
-
# of process. Advice on address input
|
3387
|
-
# ready address widget such as https://github.com/google/libaddressinput
|
3386
|
+
# of process. Advice on address input or editing: - Use an internationalization-
|
3387
|
+
# ready address widget such as https://github.com/google/libaddressinput. -
|
3388
3388
|
# Users should not be presented with UI elements for input or editing of fields
|
3389
3389
|
# outside countries where that field is used. For more guidance on how to use
|
3390
|
-
# this schema, see: https://support.google.com/business/answer/6397478
|
3390
|
+
# this schema, see: https://support.google.com/business/answer/6397478.
|
3391
3391
|
# Corresponds to the JSON property `addressValue`
|
3392
3392
|
# @return [Google::Apis::DocumentaiV1beta3::GoogleTypePostalAddress]
|
3393
3393
|
attr_accessor :address_value
|
@@ -6703,6 +6703,25 @@ module Google
|
|
6703
6703
|
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfigChunkingConfig]
|
6704
6704
|
attr_accessor :chunking_config
|
6705
6705
|
|
6706
|
+
# Optional. Whether to refine PDF layout using LLM.
|
6707
|
+
# Corresponds to the JSON property `enableLlmLayoutParsing`
|
6708
|
+
# @return [Boolean]
|
6709
|
+
attr_accessor :enable_llm_layout_parsing
|
6710
|
+
alias_method :enable_llm_layout_parsing?, :enable_llm_layout_parsing
|
6711
|
+
|
6712
|
+
# Optional. Whether to include bounding boxes in layout parser processor
|
6713
|
+
# response.
|
6714
|
+
# Corresponds to the JSON property `returnBoundingBoxes`
|
6715
|
+
# @return [Boolean]
|
6716
|
+
attr_accessor :return_bounding_boxes
|
6717
|
+
alias_method :return_bounding_boxes?, :return_bounding_boxes
|
6718
|
+
|
6719
|
+
# Optional. Whether to include images in layout parser processor response.
|
6720
|
+
# Corresponds to the JSON property `returnImages`
|
6721
|
+
# @return [Boolean]
|
6722
|
+
attr_accessor :return_images
|
6723
|
+
alias_method :return_images?, :return_images
|
6724
|
+
|
6706
6725
|
def initialize(**args)
|
6707
6726
|
update!(**args)
|
6708
6727
|
end
|
@@ -6710,6 +6729,9 @@ module Google
|
|
6710
6729
|
# Update properties of this object
|
6711
6730
|
def update!(**args)
|
6712
6731
|
@chunking_config = args[:chunking_config] if args.key?(:chunking_config)
|
6732
|
+
@enable_llm_layout_parsing = args[:enable_llm_layout_parsing] if args.key?(:enable_llm_layout_parsing)
|
6733
|
+
@return_bounding_boxes = args[:return_bounding_boxes] if args.key?(:return_bounding_boxes)
|
6734
|
+
@return_images = args[:return_images] if args.key?(:return_images)
|
6713
6735
|
end
|
6714
6736
|
end
|
6715
6737
|
|
@@ -6719,7 +6741,7 @@ module Google
|
|
6719
6741
|
|
6720
6742
|
# Optional. The percentile of cosine dissimilarity that must be exceeded between
|
6721
6743
|
# a group of tokens and the next. The smaller this number is, the more chunks
|
6722
|
-
# will be generated.
|
6744
|
+
# will be generated. THIS FIELD IS NOT YET USED.
|
6723
6745
|
# Corresponds to the JSON property `breakpointPercentileThreshold`
|
6724
6746
|
# @return [Fixnum]
|
6725
6747
|
attr_accessor :breakpoint_percentile_threshold
|
@@ -6736,7 +6758,7 @@ module Google
|
|
6736
6758
|
alias_method :include_ancestor_headings?, :include_ancestor_headings
|
6737
6759
|
|
6738
6760
|
# Optional. The number of tokens to group together when evaluating semantic
|
6739
|
-
# similarity.
|
6761
|
+
# similarity. THIS FIELD IS NOT YET USED.
|
6740
6762
|
# Corresponds to the JSON property `semanticChunkingGroupSize`
|
6741
6763
|
# @return [Boolean]
|
6742
6764
|
attr_accessor :semantic_chunking_group_size
|
@@ -8355,46 +8377,46 @@ module Google
|
|
8355
8377
|
end
|
8356
8378
|
end
|
8357
8379
|
|
8358
|
-
# Represents a postal address
|
8359
|
-
# addresses. Given a postal address, a postal service can deliver items to a
|
8360
|
-
# premise, P.O.
|
8361
|
-
# locations (roads, towns, mountains). In typical usage an address would be
|
8380
|
+
# Represents a postal address (for example, for postal delivery or payments
|
8381
|
+
# addresses). Given a postal address, a postal service can deliver items to a
|
8382
|
+
# premise, P.O. box or similar. It is not intended to model geographical
|
8383
|
+
# locations (roads, towns, mountains). In typical usage, an address would be
|
8362
8384
|
# created by user input or from importing existing data, depending on the type
|
8363
|
-
# of process. Advice on address input
|
8364
|
-
# ready address widget such as https://github.com/google/libaddressinput
|
8385
|
+
# of process. Advice on address input or editing: - Use an internationalization-
|
8386
|
+
# ready address widget such as https://github.com/google/libaddressinput. -
|
8365
8387
|
# Users should not be presented with UI elements for input or editing of fields
|
8366
8388
|
# outside countries where that field is used. For more guidance on how to use
|
8367
|
-
# this schema, see: https://support.google.com/business/answer/6397478
|
8389
|
+
# this schema, see: https://support.google.com/business/answer/6397478.
|
8368
8390
|
class GoogleTypePostalAddress
|
8369
8391
|
include Google::Apis::Core::Hashable
|
8370
8392
|
|
8371
8393
|
# Unstructured address lines describing the lower levels of an address. Because
|
8372
|
-
# values in address_lines do not have type information and may sometimes
|
8373
|
-
# multiple values in a single field (
|
8374
|
-
# that the line order is clear. The order of address lines should be "
|
8375
|
-
# order" for the country
|
8376
|
-
#
|
8377
|
-
# ja" for large-to-small ordering and "ja-Latn" or "en" for small-
|
8378
|
-
#
|
8379
|
-
# language. The minimum permitted structural representation of an
|
8380
|
-
# consists of a region_code with all remaining information placed in
|
8381
|
-
# address_lines
|
8394
|
+
# values in `address_lines` do not have type information and may sometimes
|
8395
|
+
# contain multiple values in a single field (for example, "Austin, TX"), it is
|
8396
|
+
# important that the line order is clear. The order of address lines should be "
|
8397
|
+
# envelope order" for the country or region of the address. In places where this
|
8398
|
+
# can vary (for example, Japan), `address_language` is used to make it explicit (
|
8399
|
+
# for example, "ja" for large-to-small ordering and "ja-Latn" or "en" for small-
|
8400
|
+
# to-large). In this way, the most specific line of an address can be selected
|
8401
|
+
# based on the language. The minimum permitted structural representation of an
|
8402
|
+
# address consists of a `region_code` with all remaining information placed in
|
8403
|
+
# the `address_lines`. It would be possible to format such an address very
|
8382
8404
|
# approximately without geocoding, but no semantic reasoning could be made about
|
8383
8405
|
# any of the address components until it was at least partially resolved.
|
8384
|
-
# Creating an address only containing a region_code and address_lines
|
8385
|
-
# geocoding is the recommended way to handle completely unstructured
|
8386
|
-
# as opposed to guessing which parts of the address should be
|
8387
|
-
# administrative areas).
|
8406
|
+
# Creating an address only containing a `region_code` and `address_lines` and
|
8407
|
+
# then geocoding is the recommended way to handle completely unstructured
|
8408
|
+
# addresses (as opposed to guessing which parts of the address should be
|
8409
|
+
# localities or administrative areas).
|
8388
8410
|
# Corresponds to the JSON property `addressLines`
|
8389
8411
|
# @return [Array<String>]
|
8390
8412
|
attr_accessor :address_lines
|
8391
8413
|
|
8392
8414
|
# Optional. Highest administrative subdivision which is used for postal
|
8393
8415
|
# addresses of a country or region. For example, this can be a state, a province,
|
8394
|
-
# an oblast, or a prefecture.
|
8395
|
-
#
|
8396
|
-
#
|
8397
|
-
#
|
8416
|
+
# an oblast, or a prefecture. For Spain, this is the province and not the
|
8417
|
+
# autonomous community (for example, "Barcelona" and not "Catalonia"). Many
|
8418
|
+
# countries don't use an administrative area in postal addresses. For example,
|
8419
|
+
# in Switzerland, this should be left unpopulated.
|
8398
8420
|
# Corresponds to the JSON property `administrativeArea`
|
8399
8421
|
# @return [String]
|
8400
8422
|
attr_accessor :administrative_area
|
@@ -8411,10 +8433,10 @@ module Google
|
|
8411
8433
|
# @return [String]
|
8412
8434
|
attr_accessor :language_code
|
8413
8435
|
|
8414
|
-
# Optional. Generally refers to the city
|
8415
|
-
# US city, IT comune, UK post town. In regions of the world where
|
8416
|
-
# not well defined or do not fit into this structure well, leave
|
8417
|
-
# and use address_lines
|
8436
|
+
# Optional. Generally refers to the city or town portion of the address.
|
8437
|
+
# Examples: US city, IT comune, UK post town. In regions of the world where
|
8438
|
+
# localities are not well defined or do not fit into this structure well, leave `
|
8439
|
+
# locality` empty and use `address_lines`.
|
8418
8440
|
# Corresponds to the JSON property `locality`
|
8419
8441
|
# @return [String]
|
8420
8442
|
attr_accessor :locality
|
@@ -8426,8 +8448,8 @@ module Google
|
|
8426
8448
|
|
8427
8449
|
# Optional. Postal code of the address. Not all countries use or require postal
|
8428
8450
|
# codes to be present, but where they are used, they may trigger additional
|
8429
|
-
# validation with other parts of the address (
|
8430
|
-
# in the
|
8451
|
+
# validation with other parts of the address (for example, state or zip code
|
8452
|
+
# validation in the United States).
|
8431
8453
|
# Corresponds to the JSON property `postalCode`
|
8432
8454
|
# @return [String]
|
8433
8455
|
attr_accessor :postal_code
|
@@ -8456,15 +8478,15 @@ module Google
|
|
8456
8478
|
|
8457
8479
|
# Optional. Additional, country-specific, sorting code. This is not used in most
|
8458
8480
|
# regions. Where it is used, the value is either a string like "CEDEX",
|
8459
|
-
# optionally followed by a number (
|
8481
|
+
# optionally followed by a number (for example, "CEDEX 7"), or just a number
|
8460
8482
|
# alone, representing the "sector code" (Jamaica), "delivery area indicator" (
|
8461
|
-
# Malawi) or "post office indicator" (
|
8483
|
+
# Malawi) or "post office indicator" (Côte d'Ivoire).
|
8462
8484
|
# Corresponds to the JSON property `sortingCode`
|
8463
8485
|
# @return [String]
|
8464
8486
|
attr_accessor :sorting_code
|
8465
8487
|
|
8466
|
-
# Optional. Sublocality of the address. For example, this can be
|
8467
|
-
#
|
8488
|
+
# Optional. Sublocality of the address. For example, this can be a neighborhood,
|
8489
|
+
# borough, or district.
|
8468
8490
|
# Corresponds to the JSON property `sublocality`
|
8469
8491
|
# @return [String]
|
8470
8492
|
attr_accessor :sublocality
|
@@ -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.103.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.16.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250321"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -3725,6 +3725,9 @@ module Google
|
|
3725
3725
|
class Representation < Google::Apis::Core::JsonRepresentation
|
3726
3726
|
property :chunking_config, as: 'chunkingConfig', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfigChunkingConfig, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfigChunkingConfig::Representation
|
3727
3727
|
|
3728
|
+
property :enable_llm_layout_parsing, as: 'enableLlmLayoutParsing'
|
3729
|
+
property :return_bounding_boxes, as: 'returnBoundingBoxes'
|
3730
|
+
property :return_images, as: 'returnImages'
|
3728
3731
|
end
|
3729
3732
|
end
|
3730
3733
|
|
@@ -118,6 +118,9 @@ module Google
|
|
118
118
|
# Lists information about the supported locations for this service.
|
119
119
|
# @param [String] name
|
120
120
|
# The resource that owns the locations collection, if applicable.
|
121
|
+
# @param [Array<String>, String] extra_location_types
|
122
|
+
# Optional. A list of extra location types that should be used as conditions for
|
123
|
+
# controlling the visibility of the locations.
|
121
124
|
# @param [String] filter
|
122
125
|
# A filter to narrow down results to a preferred subset. The filtering language
|
123
126
|
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
|
@@ -145,11 +148,12 @@ module Google
|
|
145
148
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
146
149
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
147
150
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
148
|
-
def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
151
|
+
def list_project_locations(name, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
149
152
|
command = make_simple_command(:get, 'v1beta3/{+name}/locations', options)
|
150
153
|
command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudLocationListLocationsResponse::Representation
|
151
154
|
command.response_class = Google::Apis::DocumentaiV1beta3::GoogleCloudLocationListLocationsResponse
|
152
155
|
command.params['name'] = name unless name.nil?
|
156
|
+
command.query['extraLocationTypes'] = extra_location_types unless extra_location_types.nil?
|
153
157
|
command.query['filter'] = filter unless filter.nil?
|
154
158
|
command.query['pageSize'] = page_size unless page_size.nil?
|
155
159
|
command.query['pageToken'] = page_token unless page_token.nil?
|
metadata
CHANGED
@@ -1,14 +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.103.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-03-23 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: google-apis-core
|
@@ -58,9 +57,8 @@ licenses:
|
|
58
57
|
metadata:
|
59
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-documentai_v1beta3/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta3/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta3/v0.103.0
|
62
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-documentai_v1beta3
|
63
|
-
post_install_message:
|
64
62
|
rdoc_options: []
|
65
63
|
require_paths:
|
66
64
|
- lib
|
@@ -75,8 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
73
|
- !ruby/object:Gem::Version
|
76
74
|
version: '0'
|
77
75
|
requirements: []
|
78
|
-
rubygems_version: 3.5
|
79
|
-
signing_key:
|
76
|
+
rubygems_version: 3.6.5
|
80
77
|
specification_version: 4
|
81
78
|
summary: Simple REST client for Cloud Document AI API V1beta3
|
82
79
|
test_files: []
|