google-apis-documentai_v1beta3 0.102.0 → 0.104.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: 791c557d0916d807f93dd00d5725edcd78e0296167cb46ad2c90209f4116ff89
4
- data.tar.gz: 7d899981c86213c4633f17467716f436f18daa9f5dd994a19758fb4923f59532
3
+ metadata.gz: a1fad5cb56ca19eb7cce1c048fb1a08965ea0ce3ba3315c901711c6e9e30b7c2
4
+ data.tar.gz: ae7788539eca3cfbd0b54f7eaedc30864056fb4cff4cd99733e5afc19fe8304c
5
5
  SHA512:
6
- metadata.gz: d8928ea7064b70b8c2182f42690c4858ec60491e87f517c7a66df537b76e386d0a49bde22b5034d026c1767acc1f6dca9d4f8eae10f7c8f3a1389a678b87a70b
7
- data.tar.gz: 1da8d0ade1298c5502ce1f537083d374a61e2d03bfdcc6398f0f08a659aed40afd9ef1e71f532ad01612f7ff2ba1209cda0d32bf59253fbfc92c037266c198b9
6
+ metadata.gz: 2a6ea739c2b6382682df2397e53809b12362ac1601f77c69aa71ddff8131e895b2c7c809c90a962011a5212ba4d7cf9361843b303cacec2bea9c28613b7a0f5e
7
+ data.tar.gz: f696f3e1b43ab116859ec6fc45e5d3eaa627840cda4ca2f559b390185e6812263d0aee0e9023b2fe714744448542f1173924fee9bdfb9ab5048b3cf5de1ea920
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-documentai_v1beta3
2
2
 
3
+ ### v0.104.0 (2025-04-20)
4
+
5
+ * Regenerated from discovery document revision 20250416
6
+
7
+ ### v0.103.0 (2025-03-23)
8
+
9
+ * Regenerated from discovery document revision 20250321
10
+
3
11
  ### v0.102.0 (2025-02-26)
4
12
 
5
13
  * Regenerated from discovery document revision 20250210
@@ -2796,6 +2796,11 @@ module Google
2796
2796
  # @return [String]
2797
2797
  attr_accessor :content
2798
2798
 
2799
+ # Optional. An internal identifier for document. Should be loggable (no PII).
2800
+ # Corresponds to the JSON property `docid`
2801
+ # @return [String]
2802
+ attr_accessor :docid
2803
+
2799
2804
  # Represents the parsed layout of a document as a collection of blocks that the
2800
2805
  # document is divided into.
2801
2806
  # Corresponds to the JSON property `documentLayout`
@@ -2878,6 +2883,7 @@ module Google
2878
2883
  def update!(**args)
2879
2884
  @chunked_document = args[:chunked_document] if args.key?(:chunked_document)
2880
2885
  @content = args[:content] if args.key?(:content)
2886
+ @docid = args[:docid] if args.key?(:docid)
2881
2887
  @document_layout = args[:document_layout] if args.key?(:document_layout)
2882
2888
  @entities = args[:entities] if args.key?(:entities)
2883
2889
  @entity_relations = args[:entity_relations] if args.key?(:entity_relations)
@@ -3066,6 +3072,11 @@ module Google
3066
3072
  # @return [String]
3067
3073
  attr_accessor :block_id
3068
3074
 
3075
+ # A bounding polygon for the detected image annotation.
3076
+ # Corresponds to the JSON property `boundingBox`
3077
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3BoundingPoly]
3078
+ attr_accessor :bounding_box
3079
+
3069
3080
  # Represents a list type block.
3070
3081
  # Corresponds to the JSON property `listBlock`
3071
3082
  # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock]
@@ -3093,6 +3104,7 @@ module Google
3093
3104
  # Update properties of this object
3094
3105
  def update!(**args)
3095
3106
  @block_id = args[:block_id] if args.key?(:block_id)
3107
+ @bounding_box = args[:bounding_box] if args.key?(:bounding_box)
3096
3108
  @list_block = args[:list_block] if args.key?(:list_block)
3097
3109
  @page_span = args[:page_span] if args.key?(:page_span)
3098
3110
  @table_block = args[:table_block] if args.key?(:table_block)
@@ -3378,16 +3390,16 @@ module Google
3378
3390
  class GoogleCloudDocumentaiV1beta3DocumentEntityNormalizedValue
3379
3391
  include Google::Apis::Core::Hashable
3380
3392
 
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
3393
+ # Represents a postal address (for example, for postal delivery or payments
3394
+ # addresses). Given a postal address, a postal service can deliver items to a
3395
+ # premise, P.O. box or similar. It is not intended to model geographical
3396
+ # locations (roads, towns, mountains). In typical usage, an address would be
3385
3397
  # 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) -
3398
+ # of process. Advice on address input or editing: - Use an internationalization-
3399
+ # ready address widget such as https://github.com/google/libaddressinput. -
3388
3400
  # Users should not be presented with UI elements for input or editing of fields
3389
3401
  # 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
3402
+ # this schema, see: https://support.google.com/business/answer/6397478.
3391
3403
  # Corresponds to the JSON property `addressValue`
3392
3404
  # @return [Google::Apis::DocumentaiV1beta3::GoogleTypePostalAddress]
3393
3405
  attr_accessor :address_value
@@ -6703,6 +6715,12 @@ module Google
6703
6715
  # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfigChunkingConfig]
6704
6716
  attr_accessor :chunking_config
6705
6717
 
6718
+ # Optional. Whether to refine PDF layout using LLM.
6719
+ # Corresponds to the JSON property `enableLlmLayoutParsing`
6720
+ # @return [Boolean]
6721
+ attr_accessor :enable_llm_layout_parsing
6722
+ alias_method :enable_llm_layout_parsing?, :enable_llm_layout_parsing
6723
+
6706
6724
  # Optional. Whether to include bounding boxes in layout parser processor
6707
6725
  # response.
6708
6726
  # Corresponds to the JSON property `returnBoundingBoxes`
@@ -6723,6 +6741,7 @@ module Google
6723
6741
  # Update properties of this object
6724
6742
  def update!(**args)
6725
6743
  @chunking_config = args[:chunking_config] if args.key?(:chunking_config)
6744
+ @enable_llm_layout_parsing = args[:enable_llm_layout_parsing] if args.key?(:enable_llm_layout_parsing)
6726
6745
  @return_bounding_boxes = args[:return_bounding_boxes] if args.key?(:return_bounding_boxes)
6727
6746
  @return_images = args[:return_images] if args.key?(:return_images)
6728
6747
  end
@@ -8370,46 +8389,46 @@ module Google
8370
8389
  end
8371
8390
  end
8372
8391
 
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
8392
+ # Represents a postal address (for example, for postal delivery or payments
8393
+ # addresses). Given a postal address, a postal service can deliver items to a
8394
+ # premise, P.O. box or similar. It is not intended to model geographical
8395
+ # locations (roads, towns, mountains). In typical usage, an address would be
8377
8396
  # 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) -
8397
+ # of process. Advice on address input or editing: - Use an internationalization-
8398
+ # ready address widget such as https://github.com/google/libaddressinput. -
8380
8399
  # Users should not be presented with UI elements for input or editing of fields
8381
8400
  # 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
8401
+ # this schema, see: https://support.google.com/business/answer/6397478.
8383
8402
  class GoogleTypePostalAddress
8384
8403
  include Google::Apis::Core::Hashable
8385
8404
 
8386
8405
  # 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
8406
+ # values in `address_lines` do not have type information and may sometimes
8407
+ # contain multiple values in a single field (for example, "Austin, TX"), it is
8408
+ # important that the line order is clear. The order of address lines should be "
8409
+ # envelope order" for the country or region of the address. In places where this
8410
+ # can vary (for example, Japan), `address_language` is used to make it explicit (
8411
+ # for example, "ja" for large-to-small ordering and "ja-Latn" or "en" for small-
8412
+ # to-large). In this way, the most specific line of an address can be selected
8413
+ # based on the language. The minimum permitted structural representation of an
8414
+ # address consists of a `region_code` with all remaining information placed in
8415
+ # the `address_lines`. It would be possible to format such an address very
8397
8416
  # approximately without geocoding, but no semantic reasoning could be made about
8398
8417
  # 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).
8418
+ # Creating an address only containing a `region_code` and `address_lines` and
8419
+ # then geocoding is the recommended way to handle completely unstructured
8420
+ # addresses (as opposed to guessing which parts of the address should be
8421
+ # localities or administrative areas).
8403
8422
  # Corresponds to the JSON property `addressLines`
8404
8423
  # @return [Array<String>]
8405
8424
  attr_accessor :address_lines
8406
8425
 
8407
8426
  # Optional. Highest administrative subdivision which is used for postal
8408
8427
  # 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.
8428
+ # an oblast, or a prefecture. For Spain, this is the province and not the
8429
+ # autonomous community (for example, "Barcelona" and not "Catalonia"). Many
8430
+ # countries don't use an administrative area in postal addresses. For example,
8431
+ # in Switzerland, this should be left unpopulated.
8413
8432
  # Corresponds to the JSON property `administrativeArea`
8414
8433
  # @return [String]
8415
8434
  attr_accessor :administrative_area
@@ -8426,10 +8445,10 @@ module Google
8426
8445
  # @return [String]
8427
8446
  attr_accessor :language_code
8428
8447
 
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.
8448
+ # Optional. Generally refers to the city or town portion of the address.
8449
+ # Examples: US city, IT comune, UK post town. In regions of the world where
8450
+ # localities are not well defined or do not fit into this structure well, leave `
8451
+ # locality` empty and use `address_lines`.
8433
8452
  # Corresponds to the JSON property `locality`
8434
8453
  # @return [String]
8435
8454
  attr_accessor :locality
@@ -8441,8 +8460,8 @@ module Google
8441
8460
 
8442
8461
  # Optional. Postal code of the address. Not all countries use or require postal
8443
8462
  # 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.).
8463
+ # validation with other parts of the address (for example, state or zip code
8464
+ # validation in the United States).
8446
8465
  # Corresponds to the JSON property `postalCode`
8447
8466
  # @return [String]
8448
8467
  attr_accessor :postal_code
@@ -8471,15 +8490,15 @@ module Google
8471
8490
 
8472
8491
  # Optional. Additional, country-specific, sorting code. This is not used in most
8473
8492
  # 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
8493
+ # optionally followed by a number (for example, "CEDEX 7"), or just a number
8475
8494
  # alone, representing the "sector code" (Jamaica), "delivery area indicator" (
8476
- # Malawi) or "post office indicator" (For example Côte d'Ivoire).
8495
+ # Malawi) or "post office indicator" (Côte d'Ivoire).
8477
8496
  # Corresponds to the JSON property `sortingCode`
8478
8497
  # @return [String]
8479
8498
  attr_accessor :sorting_code
8480
8499
 
8481
- # Optional. Sublocality of the address. For example, this can be neighborhoods,
8482
- # boroughs, districts.
8500
+ # Optional. Sublocality of the address. For example, this can be a neighborhood,
8501
+ # borough, or district.
8483
8502
  # Corresponds to the JSON property `sublocality`
8484
8503
  # @return [String]
8485
8504
  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.102.0"
19
+ GEM_VERSION = "0.104.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.16.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250210"
25
+ REVISION = "20250416"
26
26
  end
27
27
  end
28
28
  end
@@ -2588,6 +2588,7 @@ module Google
2588
2588
  property :chunked_document, as: 'chunkedDocument', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentChunkedDocument, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentChunkedDocument::Representation
2589
2589
 
2590
2590
  property :content, :base64 => true, as: 'content'
2591
+ property :docid, as: 'docid'
2591
2592
  property :document_layout, as: 'documentLayout', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentDocumentLayout, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentDocumentLayout::Representation
2592
2593
 
2593
2594
  collection :entities, as: 'entities', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentEntity, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentEntity::Representation
@@ -2673,6 +2674,8 @@ module Google
2673
2674
  # @private
2674
2675
  class Representation < Google::Apis::Core::JsonRepresentation
2675
2676
  property :block_id, as: 'blockId'
2677
+ property :bounding_box, as: 'boundingBox', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3BoundingPoly, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3BoundingPoly::Representation
2678
+
2676
2679
  property :list_block, as: 'listBlock', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock::Representation
2677
2680
 
2678
2681
  property :page_span, as: 'pageSpan', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan::Representation
@@ -3725,6 +3728,7 @@ module Google
3725
3728
  class Representation < Google::Apis::Core::JsonRepresentation
3726
3729
  property :chunking_config, as: 'chunkingConfig', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfigChunkingConfig, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfigChunkingConfig::Representation
3727
3730
 
3731
+ property :enable_llm_layout_parsing, as: 'enableLlmLayoutParsing'
3728
3732
  property :return_bounding_boxes, as: 'returnBoundingBoxes'
3729
3733
  property :return_images, as: 'returnImages'
3730
3734
  end
@@ -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,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.102.0
4
+ version: 0.104.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-02 00:00:00.000000000 Z
10
+ date: 2025-04-20 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.102.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta3/v0.104.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: