Skip to content

Commit 2147b03

Browse files
feat: Automated regeneration of documentai v1beta3 client (googleapis#22182)
Auto-created at 2025-03-23 10:00:59 +0000 using the toys pull request generator.
1 parent 4b0a99c commit 2147b03

File tree

6 files changed

+63
-45
lines changed

6 files changed

+63
-45
lines changed

api_names_out.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223277,6 +223277,7 @@
223277223277
"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3ProcessOptionsIndividualPageSelector/pages/page": page
223278223278
"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfig": google_cloud_documentai_v1beta3_process_options_layout_config
223279223279
"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfig/chunkingConfig": chunking_config
223280+
"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfig/enableLlmLayoutParsing": enable_llm_layout_parsing
223280223281
"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfig/returnBoundingBoxes": return_bounding_boxes
223281223282
"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfig/returnImages": return_images
223282223283
"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfigChunkingConfig": google_cloud_documentai_v1beta3_process_options_layout_config_chunking_config
@@ -223525,6 +223526,7 @@
223525223526
"/documentai:v1beta3/documentai.projects.locations.get": get_project_location
223526223527
"/documentai:v1beta3/documentai.projects.locations.get/name": name
223527223528
"/documentai:v1beta3/documentai.projects.locations.list": list_project_locations
223529+
"/documentai:v1beta3/documentai.projects.locations.list/extraLocationTypes": extra_location_types
223528223530
"/documentai:v1beta3/documentai.projects.locations.list/filter": filter
223529223531
"/documentai:v1beta3/documentai.projects.locations.list/name": name
223530223532
"/documentai:v1beta3/documentai.projects.locations.list/pageSize": page_size

generated/google-apis-documentai_v1beta3/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-documentai_v1beta3
22

3+
### v0.103.0 (2025-03-23)
4+
5+
* Regenerated from discovery document revision 20250321
6+
37
### v0.102.0 (2025-02-26)
48

59
* Regenerated from discovery document revision 20250210

generated/google-apis-documentai_v1beta3/lib/google/apis/documentai_v1beta3/classes.rb

Lines changed: 49 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -3378,16 +3378,16 @@ def update!(**args)
33783378
class GoogleCloudDocumentaiV1beta3DocumentEntityNormalizedValue
33793379
include Google::Apis::Core::Hashable
33803380

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
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
33853385
# created by user input or from importing existing data, depending on the type
3386-
# of process. Advice on address input / editing: - Use an internationalization-
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. -
33883388
# Users should not be presented with UI elements for input or editing of fields
33893389
# 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.
33913391
# Corresponds to the JSON property `addressValue`
33923392
# @return [Google::Apis::DocumentaiV1beta3::GoogleTypePostalAddress]
33933393
attr_accessor :address_value
@@ -6703,6 +6703,12 @@ class GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfig
67036703
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfigChunkingConfig]
67046704
attr_accessor :chunking_config
67056705

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+
67066712
# Optional. Whether to include bounding boxes in layout parser processor
67076713
# response.
67086714
# Corresponds to the JSON property `returnBoundingBoxes`
@@ -6723,6 +6729,7 @@ def initialize(**args)
67236729
# Update properties of this object
67246730
def update!(**args)
67256731
@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)
67266733
@return_bounding_boxes = args[:return_bounding_boxes] if args.key?(:return_bounding_boxes)
67276734
@return_images = args[:return_images] if args.key?(:return_images)
67286735
end
@@ -8370,46 +8377,46 @@ def update!(**args)
83708377
end
83718378
end
83728379

8373-
# Represents a postal address. For example for postal delivery or payments
8374-
# addresses. Given a postal address, a postal service can deliver items to a
8375-
# premise, P.O. Box or similar. It is not intended to model geographical
8376-
# 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
83778384
# created by user input or from importing existing data, depending on the type
8378-
# of process. Advice on address input / editing: - Use an internationalization-
8379-
# 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. -
83808387
# Users should not be presented with UI elements for input or editing of fields
83818388
# outside countries where that field is used. For more guidance on how to use
8382-
# this schema, see: https://support.google.com/business/answer/6397478
8389+
# this schema, see: https://support.google.com/business/answer/6397478.
83838390
class GoogleTypePostalAddress
83848391
include Google::Apis::Core::Hashable
83858392

83868393
# Unstructured address lines describing the lower levels of an address. Because
8387-
# values in address_lines do not have type information and may sometimes contain
8388-
# multiple values in a single field (For example "Austin, TX"), it is important
8389-
# that the line order is clear. The order of address lines should be "envelope
8390-
# order" for the country/region of the address. In places where this can vary (
8391-
# For example Japan), address_language is used to make it explicit (For example "
8392-
# ja" for large-to-small ordering and "ja-Latn" or "en" for small-to-large).
8393-
# This way, the most specific line of an address can be selected based on the
8394-
# language. The minimum permitted structural representation of an address
8395-
# consists of a region_code with all remaining information placed in the
8396-
# address_lines. It would be possible to format such an address very
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
83978404
# approximately without geocoding, but no semantic reasoning could be made about
83988405
# any of the address components until it was at least partially resolved.
8399-
# Creating an address only containing a region_code and address_lines, and then
8400-
# geocoding is the recommended way to handle completely unstructured addresses (
8401-
# as opposed to guessing which parts of the address should be localities or
8402-
# 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).
84038410
# Corresponds to the JSON property `addressLines`
84048411
# @return [Array<String>]
84058412
attr_accessor :address_lines
84068413

84078414
# Optional. Highest administrative subdivision which is used for postal
84088415
# addresses of a country or region. For example, this can be a state, a province,
8409-
# an oblast, or a prefecture. Specifically, for Spain this is the province and
8410-
# not the autonomous community (For example "Barcelona" and not "Catalonia").
8411-
# Many countries don't use an administrative area in postal addresses. For
8412-
# example in Switzerland this should be left unpopulated.
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.
84138420
# Corresponds to the JSON property `administrativeArea`
84148421
# @return [String]
84158422
attr_accessor :administrative_area
@@ -8426,10 +8433,10 @@ class GoogleTypePostalAddress
84268433
# @return [String]
84278434
attr_accessor :language_code
84288435

8429-
# Optional. Generally refers to the city/town portion of the address. Examples:
8430-
# US city, IT comune, UK post town. In regions of the world where localities are
8431-
# not well defined or do not fit into this structure well, leave locality empty
8432-
# 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`.
84338440
# Corresponds to the JSON property `locality`
84348441
# @return [String]
84358442
attr_accessor :locality
@@ -8441,8 +8448,8 @@ class GoogleTypePostalAddress
84418448

84428449
# Optional. Postal code of the address. Not all countries use or require postal
84438450
# codes to be present, but where they are used, they may trigger additional
8444-
# validation with other parts of the address (For example state/zip validation
8445-
# in the U.S.A.).
8451+
# validation with other parts of the address (for example, state or zip code
8452+
# validation in the United States).
84468453
# Corresponds to the JSON property `postalCode`
84478454
# @return [String]
84488455
attr_accessor :postal_code
@@ -8471,15 +8478,15 @@ class GoogleTypePostalAddress
84718478

84728479
# Optional. Additional, country-specific, sorting code. This is not used in most
84738480
# regions. Where it is used, the value is either a string like "CEDEX",
8474-
# optionally followed by a number (For example "CEDEX 7"), or just a number
8481+
# optionally followed by a number (for example, "CEDEX 7"), or just a number
84758482
# alone, representing the "sector code" (Jamaica), "delivery area indicator" (
8476-
# Malawi) or "post office indicator" (For example Côte d'Ivoire).
8483+
# Malawi) or "post office indicator" (Côte d'Ivoire).
84778484
# Corresponds to the JSON property `sortingCode`
84788485
# @return [String]
84798486
attr_accessor :sorting_code
84808487

8481-
# Optional. Sublocality of the address. For example, this can be neighborhoods,
8482-
# boroughs, districts.
8488+
# Optional. Sublocality of the address. For example, this can be a neighborhood,
8489+
# borough, or district.
84838490
# Corresponds to the JSON property `sublocality`
84848491
# @return [String]
84858492
attr_accessor :sublocality

generated/google-apis-documentai_v1beta3/lib/google/apis/documentai_v1beta3/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module DocumentaiV1beta3
1818
# Version of the google-apis-documentai_v1beta3 gem
19-
GEM_VERSION = "0.102.0"
19+
GEM_VERSION = "0.103.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.16.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250210"
25+
REVISION = "20250321"
2626
end
2727
end
2828
end

generated/google-apis-documentai_v1beta3/lib/google/apis/documentai_v1beta3/representations.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3725,6 +3725,7 @@ class GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfig
37253725
class Representation < Google::Apis::Core::JsonRepresentation
37263726
property :chunking_config, as: 'chunkingConfig', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfigChunkingConfig, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfigChunkingConfig::Representation
37273727

3728+
property :enable_llm_layout_parsing, as: 'enableLlmLayoutParsing'
37283729
property :return_bounding_boxes, as: 'returnBoundingBoxes'
37293730
property :return_images, as: 'returnImages'
37303731
end

generated/google-apis-documentai_v1beta3/lib/google/apis/documentai_v1beta3/service.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &bloc
118118
# Lists information about the supported locations for this service.
119119
# @param [String] name
120120
# 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.
121124
# @param [String] filter
122125
# A filter to narrow down results to a preferred subset. The filtering language
123126
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
@@ -145,11 +148,12 @@ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &bloc
145148
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
146149
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
147150
# @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)
149152
command = make_simple_command(:get, 'v1beta3/{+name}/locations', options)
150153
command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudLocationListLocationsResponse::Representation
151154
command.response_class = Google::Apis::DocumentaiV1beta3::GoogleCloudLocationListLocationsResponse
152155
command.params['name'] = name unless name.nil?
156+
command.query['extraLocationTypes'] = extra_location_types unless extra_location_types.nil?
153157
command.query['filter'] = filter unless filter.nil?
154158
command.query['pageSize'] = page_size unless page_size.nil?
155159
command.query['pageToken'] = page_token unless page_token.nil?

0 commit comments

Comments
 (0)