google-apis-documentai_v1 0.85.0 → 0.87.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1826,6 +1826,11 @@ module Google
1826
1826
  class GoogleCloudDocumentaiV1Document
1827
1827
  include Google::Apis::Core::Hashable
1828
1828
 
1829
+ # Represents the chunks that the document is divided into.
1830
+ # Corresponds to the JSON property `chunkedDocument`
1831
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentChunkedDocument]
1832
+ attr_accessor :chunked_document
1833
+
1829
1834
  # Optional. Inline document content, represented as a stream of bytes. Note: As
1830
1835
  # with all `bytes` fields, protobuffers use a pure binary representation,
1831
1836
  # whereas JSON representations use base64.
@@ -1834,6 +1839,12 @@ module Google
1834
1839
  # @return [String]
1835
1840
  attr_accessor :content
1836
1841
 
1842
+ # Represents the parsed layout of a document as a collection of blocks that the
1843
+ # document is divided into.
1844
+ # Corresponds to the JSON property `documentLayout`
1845
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentDocumentLayout]
1846
+ attr_accessor :document_layout
1847
+
1837
1848
  # A list of entities detected on Document.text. For document shards, entities in
1838
1849
  # this list may cross shard boundaries.
1839
1850
  # Corresponds to the JSON property `entities`
@@ -1908,7 +1919,9 @@ module Google
1908
1919
 
1909
1920
  # Update properties of this object
1910
1921
  def update!(**args)
1922
+ @chunked_document = args[:chunked_document] if args.key?(:chunked_document)
1911
1923
  @content = args[:content] if args.key?(:content)
1924
+ @document_layout = args[:document_layout] if args.key?(:document_layout)
1912
1925
  @entities = args[:entities] if args.key?(:entities)
1913
1926
  @entity_relations = args[:entity_relations] if args.key?(:entity_relations)
1914
1927
  @error = args[:error] if args.key?(:error)
@@ -1923,6 +1936,400 @@ module Google
1923
1936
  end
1924
1937
  end
1925
1938
 
1939
+ # Represents the chunks that the document is divided into.
1940
+ class GoogleCloudDocumentaiV1DocumentChunkedDocument
1941
+ include Google::Apis::Core::Hashable
1942
+
1943
+ # List of chunks.
1944
+ # Corresponds to the JSON property `chunks`
1945
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentChunkedDocumentChunk>]
1946
+ attr_accessor :chunks
1947
+
1948
+ def initialize(**args)
1949
+ update!(**args)
1950
+ end
1951
+
1952
+ # Update properties of this object
1953
+ def update!(**args)
1954
+ @chunks = args[:chunks] if args.key?(:chunks)
1955
+ end
1956
+ end
1957
+
1958
+ # Represents a chunk.
1959
+ class GoogleCloudDocumentaiV1DocumentChunkedDocumentChunk
1960
+ include Google::Apis::Core::Hashable
1961
+
1962
+ # ID of the chunk.
1963
+ # Corresponds to the JSON property `chunkId`
1964
+ # @return [String]
1965
+ attr_accessor :chunk_id
1966
+
1967
+ # Text content of the chunk.
1968
+ # Corresponds to the JSON property `content`
1969
+ # @return [String]
1970
+ attr_accessor :content
1971
+
1972
+ # Page footers associated with the chunk.
1973
+ # Corresponds to the JSON property `pageFooters`
1974
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageFooter>]
1975
+ attr_accessor :page_footers
1976
+
1977
+ # Page headers associated with the chunk.
1978
+ # Corresponds to the JSON property `pageHeaders`
1979
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageHeader>]
1980
+ attr_accessor :page_headers
1981
+
1982
+ # Represents where the chunk starts and ends in the document.
1983
+ # Corresponds to the JSON property `pageSpan`
1984
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan]
1985
+ attr_accessor :page_span
1986
+
1987
+ # Unused.
1988
+ # Corresponds to the JSON property `sourceBlockIds`
1989
+ # @return [Array<String>]
1990
+ attr_accessor :source_block_ids
1991
+
1992
+ def initialize(**args)
1993
+ update!(**args)
1994
+ end
1995
+
1996
+ # Update properties of this object
1997
+ def update!(**args)
1998
+ @chunk_id = args[:chunk_id] if args.key?(:chunk_id)
1999
+ @content = args[:content] if args.key?(:content)
2000
+ @page_footers = args[:page_footers] if args.key?(:page_footers)
2001
+ @page_headers = args[:page_headers] if args.key?(:page_headers)
2002
+ @page_span = args[:page_span] if args.key?(:page_span)
2003
+ @source_block_ids = args[:source_block_ids] if args.key?(:source_block_ids)
2004
+ end
2005
+ end
2006
+
2007
+ # Represents the page footer associated with the chunk.
2008
+ class GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageFooter
2009
+ include Google::Apis::Core::Hashable
2010
+
2011
+ # Represents where the chunk starts and ends in the document.
2012
+ # Corresponds to the JSON property `pageSpan`
2013
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan]
2014
+ attr_accessor :page_span
2015
+
2016
+ # Footer in text format.
2017
+ # Corresponds to the JSON property `text`
2018
+ # @return [String]
2019
+ attr_accessor :text
2020
+
2021
+ def initialize(**args)
2022
+ update!(**args)
2023
+ end
2024
+
2025
+ # Update properties of this object
2026
+ def update!(**args)
2027
+ @page_span = args[:page_span] if args.key?(:page_span)
2028
+ @text = args[:text] if args.key?(:text)
2029
+ end
2030
+ end
2031
+
2032
+ # Represents the page header associated with the chunk.
2033
+ class GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageHeader
2034
+ include Google::Apis::Core::Hashable
2035
+
2036
+ # Represents where the chunk starts and ends in the document.
2037
+ # Corresponds to the JSON property `pageSpan`
2038
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan]
2039
+ attr_accessor :page_span
2040
+
2041
+ # Header in text format.
2042
+ # Corresponds to the JSON property `text`
2043
+ # @return [String]
2044
+ attr_accessor :text
2045
+
2046
+ def initialize(**args)
2047
+ update!(**args)
2048
+ end
2049
+
2050
+ # Update properties of this object
2051
+ def update!(**args)
2052
+ @page_span = args[:page_span] if args.key?(:page_span)
2053
+ @text = args[:text] if args.key?(:text)
2054
+ end
2055
+ end
2056
+
2057
+ # Represents where the chunk starts and ends in the document.
2058
+ class GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan
2059
+ include Google::Apis::Core::Hashable
2060
+
2061
+ # Page where chunk ends in the document.
2062
+ # Corresponds to the JSON property `pageEnd`
2063
+ # @return [Fixnum]
2064
+ attr_accessor :page_end
2065
+
2066
+ # Page where chunk starts in the document.
2067
+ # Corresponds to the JSON property `pageStart`
2068
+ # @return [Fixnum]
2069
+ attr_accessor :page_start
2070
+
2071
+ def initialize(**args)
2072
+ update!(**args)
2073
+ end
2074
+
2075
+ # Update properties of this object
2076
+ def update!(**args)
2077
+ @page_end = args[:page_end] if args.key?(:page_end)
2078
+ @page_start = args[:page_start] if args.key?(:page_start)
2079
+ end
2080
+ end
2081
+
2082
+ # Represents the parsed layout of a document as a collection of blocks that the
2083
+ # document is divided into.
2084
+ class GoogleCloudDocumentaiV1DocumentDocumentLayout
2085
+ include Google::Apis::Core::Hashable
2086
+
2087
+ # List of blocks in the document.
2088
+ # Corresponds to the JSON property `blocks`
2089
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock>]
2090
+ attr_accessor :blocks
2091
+
2092
+ def initialize(**args)
2093
+ update!(**args)
2094
+ end
2095
+
2096
+ # Update properties of this object
2097
+ def update!(**args)
2098
+ @blocks = args[:blocks] if args.key?(:blocks)
2099
+ end
2100
+ end
2101
+
2102
+ # Represents a block. A block could be one of the various types (text, table,
2103
+ # list) supported.
2104
+ class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock
2105
+ include Google::Apis::Core::Hashable
2106
+
2107
+ # ID of the block.
2108
+ # Corresponds to the JSON property `blockId`
2109
+ # @return [String]
2110
+ attr_accessor :block_id
2111
+
2112
+ # Represents a list type block.
2113
+ # Corresponds to the JSON property `listBlock`
2114
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock]
2115
+ attr_accessor :list_block
2116
+
2117
+ # Represents where the block starts and ends in the document.
2118
+ # Corresponds to the JSON property `pageSpan`
2119
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan]
2120
+ attr_accessor :page_span
2121
+
2122
+ # Represents a table type block.
2123
+ # Corresponds to the JSON property `tableBlock`
2124
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock]
2125
+ attr_accessor :table_block
2126
+
2127
+ # Represents a text type block.
2128
+ # Corresponds to the JSON property `textBlock`
2129
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock]
2130
+ attr_accessor :text_block
2131
+
2132
+ def initialize(**args)
2133
+ update!(**args)
2134
+ end
2135
+
2136
+ # Update properties of this object
2137
+ def update!(**args)
2138
+ @block_id = args[:block_id] if args.key?(:block_id)
2139
+ @list_block = args[:list_block] if args.key?(:list_block)
2140
+ @page_span = args[:page_span] if args.key?(:page_span)
2141
+ @table_block = args[:table_block] if args.key?(:table_block)
2142
+ @text_block = args[:text_block] if args.key?(:text_block)
2143
+ end
2144
+ end
2145
+
2146
+ # Represents a list type block.
2147
+ class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock
2148
+ include Google::Apis::Core::Hashable
2149
+
2150
+ # List entries that constitute a list block.
2151
+ # Corresponds to the JSON property `listEntries`
2152
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry>]
2153
+ attr_accessor :list_entries
2154
+
2155
+ # Type of the list_entries (if exist). Available options are `ordered` and `
2156
+ # unordered`.
2157
+ # Corresponds to the JSON property `type`
2158
+ # @return [String]
2159
+ attr_accessor :type
2160
+
2161
+ def initialize(**args)
2162
+ update!(**args)
2163
+ end
2164
+
2165
+ # Update properties of this object
2166
+ def update!(**args)
2167
+ @list_entries = args[:list_entries] if args.key?(:list_entries)
2168
+ @type = args[:type] if args.key?(:type)
2169
+ end
2170
+ end
2171
+
2172
+ # Represents an entry in the list.
2173
+ class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry
2174
+ include Google::Apis::Core::Hashable
2175
+
2176
+ # A list entry is a list of blocks. Repeated blocks support further hierarchies
2177
+ # and nested blocks.
2178
+ # Corresponds to the JSON property `blocks`
2179
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock>]
2180
+ attr_accessor :blocks
2181
+
2182
+ def initialize(**args)
2183
+ update!(**args)
2184
+ end
2185
+
2186
+ # Update properties of this object
2187
+ def update!(**args)
2188
+ @blocks = args[:blocks] if args.key?(:blocks)
2189
+ end
2190
+ end
2191
+
2192
+ # Represents where the block starts and ends in the document.
2193
+ class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan
2194
+ include Google::Apis::Core::Hashable
2195
+
2196
+ # Page where block ends in the document.
2197
+ # Corresponds to the JSON property `pageEnd`
2198
+ # @return [Fixnum]
2199
+ attr_accessor :page_end
2200
+
2201
+ # Page where block starts in the document.
2202
+ # Corresponds to the JSON property `pageStart`
2203
+ # @return [Fixnum]
2204
+ attr_accessor :page_start
2205
+
2206
+ def initialize(**args)
2207
+ update!(**args)
2208
+ end
2209
+
2210
+ # Update properties of this object
2211
+ def update!(**args)
2212
+ @page_end = args[:page_end] if args.key?(:page_end)
2213
+ @page_start = args[:page_start] if args.key?(:page_start)
2214
+ end
2215
+ end
2216
+
2217
+ # Represents a table type block.
2218
+ class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock
2219
+ include Google::Apis::Core::Hashable
2220
+
2221
+ # Body rows containing main table content.
2222
+ # Corresponds to the JSON property `bodyRows`
2223
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow>]
2224
+ attr_accessor :body_rows
2225
+
2226
+ # Table caption/title.
2227
+ # Corresponds to the JSON property `caption`
2228
+ # @return [String]
2229
+ attr_accessor :caption
2230
+
2231
+ # Header rows at the top of the table.
2232
+ # Corresponds to the JSON property `headerRows`
2233
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow>]
2234
+ attr_accessor :header_rows
2235
+
2236
+ def initialize(**args)
2237
+ update!(**args)
2238
+ end
2239
+
2240
+ # Update properties of this object
2241
+ def update!(**args)
2242
+ @body_rows = args[:body_rows] if args.key?(:body_rows)
2243
+ @caption = args[:caption] if args.key?(:caption)
2244
+ @header_rows = args[:header_rows] if args.key?(:header_rows)
2245
+ end
2246
+ end
2247
+
2248
+ # Represents a cell in a table row.
2249
+ class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell
2250
+ include Google::Apis::Core::Hashable
2251
+
2252
+ # A table cell is a list of blocks. Repeated blocks support further hierarchies
2253
+ # and nested blocks.
2254
+ # Corresponds to the JSON property `blocks`
2255
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock>]
2256
+ attr_accessor :blocks
2257
+
2258
+ # How many columns this cell spans.
2259
+ # Corresponds to the JSON property `colSpan`
2260
+ # @return [Fixnum]
2261
+ attr_accessor :col_span
2262
+
2263
+ # How many rows this cell spans.
2264
+ # Corresponds to the JSON property `rowSpan`
2265
+ # @return [Fixnum]
2266
+ attr_accessor :row_span
2267
+
2268
+ def initialize(**args)
2269
+ update!(**args)
2270
+ end
2271
+
2272
+ # Update properties of this object
2273
+ def update!(**args)
2274
+ @blocks = args[:blocks] if args.key?(:blocks)
2275
+ @col_span = args[:col_span] if args.key?(:col_span)
2276
+ @row_span = args[:row_span] if args.key?(:row_span)
2277
+ end
2278
+ end
2279
+
2280
+ # Represents a row in a table.
2281
+ class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow
2282
+ include Google::Apis::Core::Hashable
2283
+
2284
+ # A table row is a list of table cells.
2285
+ # Corresponds to the JSON property `cells`
2286
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell>]
2287
+ attr_accessor :cells
2288
+
2289
+ def initialize(**args)
2290
+ update!(**args)
2291
+ end
2292
+
2293
+ # Update properties of this object
2294
+ def update!(**args)
2295
+ @cells = args[:cells] if args.key?(:cells)
2296
+ end
2297
+ end
2298
+
2299
+ # Represents a text type block.
2300
+ class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock
2301
+ include Google::Apis::Core::Hashable
2302
+
2303
+ # A text block could further have child blocks. Repeated blocks support further
2304
+ # hierarchies and nested blocks.
2305
+ # Corresponds to the JSON property `blocks`
2306
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock>]
2307
+ attr_accessor :blocks
2308
+
2309
+ # Text content stored in the block.
2310
+ # Corresponds to the JSON property `text`
2311
+ # @return [String]
2312
+ attr_accessor :text
2313
+
2314
+ # Type of the text in the block. Available options are: `paragraph`, `subtitle`,
2315
+ # `heading-1`, `heading-2`, `heading-3`, `heading-4`, `heading-5`, `header`, `
2316
+ # footer`.
2317
+ # Corresponds to the JSON property `type`
2318
+ # @return [String]
2319
+ attr_accessor :type
2320
+
2321
+ def initialize(**args)
2322
+ update!(**args)
2323
+ end
2324
+
2325
+ # Update properties of this object
2326
+ def update!(**args)
2327
+ @blocks = args[:blocks] if args.key?(:blocks)
2328
+ @text = args[:text] if args.key?(:text)
2329
+ @type = args[:type] if args.key?(:type)
2330
+ end
2331
+ end
2332
+
1926
2333
  # An entity that could be a phrase in the text or a property that belongs to the
1927
2334
  # document. It is a known entity type, such as a person, an organization, or
1928
2335
  # location.
@@ -4691,6 +5098,11 @@ module Google
4691
5098
  # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessOptionsIndividualPageSelector]
4692
5099
  attr_accessor :individual_page_selector
4693
5100
 
5101
+ # Serving config for layout parser processor.
5102
+ # Corresponds to the JSON property `layoutConfig`
5103
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessOptionsLayoutConfig]
5104
+ attr_accessor :layout_config
5105
+
4694
5106
  # Config for Document OCR.
4695
5107
  # Corresponds to the JSON property `ocrConfig`
4696
5108
  # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1OcrConfig]
@@ -4710,6 +5122,7 @@ module Google
4710
5122
  @from_end = args[:from_end] if args.key?(:from_end)
4711
5123
  @from_start = args[:from_start] if args.key?(:from_start)
4712
5124
  @individual_page_selector = args[:individual_page_selector] if args.key?(:individual_page_selector)
5125
+ @layout_config = args[:layout_config] if args.key?(:layout_config)
4713
5126
  @ocr_config = args[:ocr_config] if args.key?(:ocr_config)
4714
5127
  @schema_override = args[:schema_override] if args.key?(:schema_override)
4715
5128
  end
@@ -4734,8 +5147,53 @@ module Google
4734
5147
  end
4735
5148
  end
4736
5149
 
4737
- # Request message for the ProcessDocument method.
4738
- class GoogleCloudDocumentaiV1ProcessRequest
5150
+ # Serving config for layout parser processor.
5151
+ class GoogleCloudDocumentaiV1ProcessOptionsLayoutConfig
5152
+ include Google::Apis::Core::Hashable
5153
+
5154
+ # Serving config for chunking.
5155
+ # Corresponds to the JSON property `chunkingConfig`
5156
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessOptionsLayoutConfigChunkingConfig]
5157
+ attr_accessor :chunking_config
5158
+
5159
+ def initialize(**args)
5160
+ update!(**args)
5161
+ end
5162
+
5163
+ # Update properties of this object
5164
+ def update!(**args)
5165
+ @chunking_config = args[:chunking_config] if args.key?(:chunking_config)
5166
+ end
5167
+ end
5168
+
5169
+ # Serving config for chunking.
5170
+ class GoogleCloudDocumentaiV1ProcessOptionsLayoutConfigChunkingConfig
5171
+ include Google::Apis::Core::Hashable
5172
+
5173
+ # Optional. The chunk sizes to use when splitting documents, in order of level.
5174
+ # Corresponds to the JSON property `chunkSize`
5175
+ # @return [Fixnum]
5176
+ attr_accessor :chunk_size
5177
+
5178
+ # Optional. Whether or not to include ancestor headings when splitting.
5179
+ # Corresponds to the JSON property `includeAncestorHeadings`
5180
+ # @return [Boolean]
5181
+ attr_accessor :include_ancestor_headings
5182
+ alias_method :include_ancestor_headings?, :include_ancestor_headings
5183
+
5184
+ def initialize(**args)
5185
+ update!(**args)
5186
+ end
5187
+
5188
+ # Update properties of this object
5189
+ def update!(**args)
5190
+ @chunk_size = args[:chunk_size] if args.key?(:chunk_size)
5191
+ @include_ancestor_headings = args[:include_ancestor_headings] if args.key?(:include_ancestor_headings)
5192
+ end
5193
+ end
5194
+
5195
+ # Request message for the ProcessDocument method.
5196
+ class GoogleCloudDocumentaiV1ProcessRequest
4739
5197
  include Google::Apis::Core::Hashable
4740
5198
 
4741
5199
  # Specifies which fields to include in the ProcessResponse.document output. Only
@@ -4870,6 +5328,18 @@ module Google
4870
5328
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessorVersionAlias>]
4871
5329
  attr_accessor :processor_version_aliases
4872
5330
 
5331
+ # Output only. Reserved for future use.
5332
+ # Corresponds to the JSON property `satisfiesPzi`
5333
+ # @return [Boolean]
5334
+ attr_accessor :satisfies_pzi
5335
+ alias_method :satisfies_pzi?, :satisfies_pzi
5336
+
5337
+ # Output only. Reserved for future use.
5338
+ # Corresponds to the JSON property `satisfiesPzs`
5339
+ # @return [Boolean]
5340
+ attr_accessor :satisfies_pzs
5341
+ alias_method :satisfies_pzs?, :satisfies_pzs
5342
+
4873
5343
  # Output only. The state of the processor.
4874
5344
  # Corresponds to the JSON property `state`
4875
5345
  # @return [String]
@@ -4894,6 +5364,8 @@ module Google
4894
5364
  @name = args[:name] if args.key?(:name)
4895
5365
  @process_endpoint = args[:process_endpoint] if args.key?(:process_endpoint)
4896
5366
  @processor_version_aliases = args[:processor_version_aliases] if args.key?(:processor_version_aliases)
5367
+ @satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi)
5368
+ @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
4897
5369
  @state = args[:state] if args.key?(:state)
4898
5370
  @type = args[:type] if args.key?(:type)
4899
5371
  end
@@ -5038,6 +5510,18 @@ module Google
5038
5510
  # @return [String]
5039
5511
  attr_accessor :name
5040
5512
 
5513
+ # Output only. Reserved for future use.
5514
+ # Corresponds to the JSON property `satisfiesPzi`
5515
+ # @return [Boolean]
5516
+ attr_accessor :satisfies_pzi
5517
+ alias_method :satisfies_pzi?, :satisfies_pzi
5518
+
5519
+ # Output only. Reserved for future use.
5520
+ # Corresponds to the JSON property `satisfiesPzs`
5521
+ # @return [Boolean]
5522
+ attr_accessor :satisfies_pzs
5523
+ alias_method :satisfies_pzs?, :satisfies_pzs
5524
+
5041
5525
  # Output only. The state of the processor version.
5042
5526
  # Corresponds to the JSON property `state`
5043
5527
  # @return [String]
@@ -5059,6 +5543,8 @@ module Google
5059
5543
  @latest_evaluation = args[:latest_evaluation] if args.key?(:latest_evaluation)
5060
5544
  @model_type = args[:model_type] if args.key?(:model_type)
5061
5545
  @name = args[:name] if args.key?(:name)
5546
+ @satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi)
5547
+ @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
5062
5548
  @state = args[:state] if args.key?(:state)
5063
5549
  end
5064
5550
  end
@@ -5684,6 +6170,11 @@ module Google
5684
6170
  class GoogleCloudDocumentaiV1beta1Document
5685
6171
  include Google::Apis::Core::Hashable
5686
6172
 
6173
+ # Represents the chunks that the document is divided into.
6174
+ # Corresponds to the JSON property `chunkedDocument`
6175
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentChunkedDocument]
6176
+ attr_accessor :chunked_document
6177
+
5687
6178
  # Optional. Inline document content, represented as a stream of bytes. Note: As
5688
6179
  # with all `bytes` fields, protobuffers use a pure binary representation,
5689
6180
  # whereas JSON representations use base64.
@@ -5692,6 +6183,12 @@ module Google
5692
6183
  # @return [String]
5693
6184
  attr_accessor :content
5694
6185
 
6186
+ # Represents the parsed layout of a document as a collection of blocks that the
6187
+ # document is divided into.
6188
+ # Corresponds to the JSON property `documentLayout`
6189
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentDocumentLayout]
6190
+ attr_accessor :document_layout
6191
+
5695
6192
  # A list of entities detected on Document.text. For document shards, entities in
5696
6193
  # this list may cross shard boundaries.
5697
6194
  # Corresponds to the JSON property `entities`
@@ -5766,7 +6263,9 @@ module Google
5766
6263
 
5767
6264
  # Update properties of this object
5768
6265
  def update!(**args)
6266
+ @chunked_document = args[:chunked_document] if args.key?(:chunked_document)
5769
6267
  @content = args[:content] if args.key?(:content)
6268
+ @document_layout = args[:document_layout] if args.key?(:document_layout)
5770
6269
  @entities = args[:entities] if args.key?(:entities)
5771
6270
  @entity_relations = args[:entity_relations] if args.key?(:entity_relations)
5772
6271
  @error = args[:error] if args.key?(:error)
@@ -5781,72 +6280,58 @@ module Google
5781
6280
  end
5782
6281
  end
5783
6282
 
5784
- # An entity that could be a phrase in the text or a property that belongs to the
5785
- # document. It is a known entity type, such as a person, an organization, or
5786
- # location.
5787
- class GoogleCloudDocumentaiV1beta1DocumentEntity
6283
+ # Represents the chunks that the document is divided into.
6284
+ class GoogleCloudDocumentaiV1beta1DocumentChunkedDocument
5788
6285
  include Google::Apis::Core::Hashable
5789
6286
 
5790
- # Optional. Confidence of detected Schema entity. Range `[0, 1]`.
5791
- # Corresponds to the JSON property `confidence`
5792
- # @return [Float]
5793
- attr_accessor :confidence
5794
-
5795
- # Optional. Canonical id. This will be a unique value in the entity list for
5796
- # this document.
5797
- # Corresponds to the JSON property `id`
5798
- # @return [String]
5799
- attr_accessor :id
6287
+ # List of chunks.
6288
+ # Corresponds to the JSON property `chunks`
6289
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunk>]
6290
+ attr_accessor :chunks
5800
6291
 
5801
- # Optional. Deprecated. Use `id` field instead.
5802
- # Corresponds to the JSON property `mentionId`
5803
- # @return [String]
5804
- attr_accessor :mention_id
6292
+ def initialize(**args)
6293
+ update!(**args)
6294
+ end
5805
6295
 
5806
- # Optional. Text value of the entity e.g. `1600 Amphitheatre Pkwy`.
5807
- # Corresponds to the JSON property `mentionText`
5808
- # @return [String]
5809
- attr_accessor :mention_text
6296
+ # Update properties of this object
6297
+ def update!(**args)
6298
+ @chunks = args[:chunks] if args.key?(:chunks)
6299
+ end
6300
+ end
5810
6301
 
5811
- # Parsed and normalized entity value.
5812
- # Corresponds to the JSON property `normalizedValue`
5813
- # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue]
5814
- attr_accessor :normalized_value
6302
+ # Represents a chunk.
6303
+ class GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunk
6304
+ include Google::Apis::Core::Hashable
5815
6305
 
5816
- # Referencing the visual context of the entity in the Document.pages. Page
5817
- # anchors can be cross-page, consist of multiple bounding polygons and
5818
- # optionally reference specific layout element types.
5819
- # Corresponds to the JSON property `pageAnchor`
5820
- # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageAnchor]
5821
- attr_accessor :page_anchor
6306
+ # ID of the chunk.
6307
+ # Corresponds to the JSON property `chunkId`
6308
+ # @return [String]
6309
+ attr_accessor :chunk_id
5822
6310
 
5823
- # Optional. Entities can be nested to form a hierarchical data structure
5824
- # representing the content in the document.
5825
- # Corresponds to the JSON property `properties`
5826
- # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentEntity>]
5827
- attr_accessor :properties
6311
+ # Text content of the chunk.
6312
+ # Corresponds to the JSON property `content`
6313
+ # @return [String]
6314
+ attr_accessor :content
5828
6315
 
5829
- # Structure to identify provenance relationships between annotations in
5830
- # different revisions.
5831
- # Corresponds to the JSON property `provenance`
5832
- # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentProvenance]
5833
- attr_accessor :provenance
6316
+ # Page footers associated with the chunk.
6317
+ # Corresponds to the JSON property `pageFooters`
6318
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageFooter>]
6319
+ attr_accessor :page_footers
5834
6320
 
5835
- # Optional. Whether the entity will be redacted for de-identification purposes.
5836
- # Corresponds to the JSON property `redacted`
5837
- # @return [Boolean]
5838
- attr_accessor :redacted
5839
- alias_method :redacted?, :redacted
6321
+ # Page headers associated with the chunk.
6322
+ # Corresponds to the JSON property `pageHeaders`
6323
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageHeader>]
6324
+ attr_accessor :page_headers
5840
6325
 
5841
- # Text reference indexing into the Document.text.
5842
- # Corresponds to the JSON property `textAnchor`
5843
- # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentTextAnchor]
5844
- attr_accessor :text_anchor
6326
+ # Represents where the chunk starts and ends in the document.
6327
+ # Corresponds to the JSON property `pageSpan`
6328
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageSpan]
6329
+ attr_accessor :page_span
5845
6330
 
5846
- # Required. Entity type from a schema e.g. `Address`.
5847
- # Corresponds to the JSON property `type`
5848
- # @return [String]
5849
- attr_accessor :type
6331
+ # Unused.
6332
+ # Corresponds to the JSON property `sourceBlockIds`
6333
+ # @return [Array<String>]
6334
+ attr_accessor :source_block_ids
5850
6335
 
5851
6336
  def initialize(**args)
5852
6337
  update!(**args)
@@ -5854,97 +6339,50 @@ module Google
5854
6339
 
5855
6340
  # Update properties of this object
5856
6341
  def update!(**args)
5857
- @confidence = args[:confidence] if args.key?(:confidence)
5858
- @id = args[:id] if args.key?(:id)
5859
- @mention_id = args[:mention_id] if args.key?(:mention_id)
5860
- @mention_text = args[:mention_text] if args.key?(:mention_text)
5861
- @normalized_value = args[:normalized_value] if args.key?(:normalized_value)
5862
- @page_anchor = args[:page_anchor] if args.key?(:page_anchor)
5863
- @properties = args[:properties] if args.key?(:properties)
5864
- @provenance = args[:provenance] if args.key?(:provenance)
5865
- @redacted = args[:redacted] if args.key?(:redacted)
5866
- @text_anchor = args[:text_anchor] if args.key?(:text_anchor)
5867
- @type = args[:type] if args.key?(:type)
6342
+ @chunk_id = args[:chunk_id] if args.key?(:chunk_id)
6343
+ @content = args[:content] if args.key?(:content)
6344
+ @page_footers = args[:page_footers] if args.key?(:page_footers)
6345
+ @page_headers = args[:page_headers] if args.key?(:page_headers)
6346
+ @page_span = args[:page_span] if args.key?(:page_span)
6347
+ @source_block_ids = args[:source_block_ids] if args.key?(:source_block_ids)
5868
6348
  end
5869
6349
  end
5870
6350
 
5871
- # Parsed and normalized entity value.
5872
- class GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue
6351
+ # Represents the page footer associated with the chunk.
6352
+ class GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageFooter
5873
6353
  include Google::Apis::Core::Hashable
5874
6354
 
5875
- # Represents a postal address, e.g. for postal delivery or payments addresses.
5876
- # Given a postal address, a postal service can deliver items to a premise, P.O.
5877
- # Box or similar. It is not intended to model geographical locations (roads,
5878
- # towns, mountains). In typical usage an address would be created via user input
5879
- # or from importing existing data, depending on the type of process. Advice on
5880
- # address input / editing: - Use an internationalization-ready address widget
5881
- # such as https://github.com/google/libaddressinput) - Users should not be
5882
- # presented with UI elements for input or editing of fields outside countries
5883
- # where that field is used. For more guidance on how to use this schema, please
5884
- # see: https://support.google.com/business/answer/6397478
5885
- # Corresponds to the JSON property `addressValue`
5886
- # @return [Google::Apis::DocumentaiV1::GoogleTypePostalAddress]
5887
- attr_accessor :address_value
5888
-
5889
- # Boolean value. Can be used for entities with binary values, or for checkboxes.
5890
- # Corresponds to the JSON property `booleanValue`
5891
- # @return [Boolean]
5892
- attr_accessor :boolean_value
5893
- alias_method :boolean_value?, :boolean_value
6355
+ # Represents where the chunk starts and ends in the document.
6356
+ # Corresponds to the JSON property `pageSpan`
6357
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageSpan]
6358
+ attr_accessor :page_span
5894
6359
 
5895
- # Represents a whole or partial calendar date, such as a birthday. The time of
5896
- # day and time zone are either specified elsewhere or are insignificant. The
5897
- # date is relative to the Gregorian Calendar. This can represent one of the
5898
- # following: * A full date, with non-zero year, month, and day values. * A month
5899
- # and day, with a zero year (for example, an anniversary). * A year on its own,
5900
- # with a zero month and a zero day. * A year and month, with a zero day (for
5901
- # example, a credit card expiration date). Related types: * google.type.
5902
- # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
5903
- # Corresponds to the JSON property `dateValue`
5904
- # @return [Google::Apis::DocumentaiV1::GoogleTypeDate]
5905
- attr_accessor :date_value
6360
+ # Footer in text format.
6361
+ # Corresponds to the JSON property `text`
6362
+ # @return [String]
6363
+ attr_accessor :text
5906
6364
 
5907
- # Represents civil time (or occasionally physical time). This type can represent
5908
- # a civil time in one of a few possible ways: * When utc_offset is set and
5909
- # time_zone is unset: a civil time on a calendar day with a particular offset
5910
- # from UTC. * When time_zone is set and utc_offset is unset: a civil time on a
5911
- # calendar day in a particular time zone. * When neither time_zone nor
5912
- # utc_offset is set: a civil time on a calendar day in local time. The date is
5913
- # relative to the Proleptic Gregorian Calendar. If year, month, or day are 0,
5914
- # the DateTime is considered not to have a specific year, month, or day
5915
- # respectively. This type may also be used to represent a physical time if all
5916
- # the date and time fields are set and either case of the `time_offset` oneof is
5917
- # set. Consider using `Timestamp` message for physical time instead. If your use
5918
- # case also would like to store the user's timezone, that can be done in another
5919
- # field. This type is more flexible than some applications may want. Make sure
5920
- # to document and validate your application's limitations.
5921
- # Corresponds to the JSON property `datetimeValue`
5922
- # @return [Google::Apis::DocumentaiV1::GoogleTypeDateTime]
5923
- attr_accessor :datetime_value
6365
+ def initialize(**args)
6366
+ update!(**args)
6367
+ end
5924
6368
 
5925
- # Float value.
5926
- # Corresponds to the JSON property `floatValue`
5927
- # @return [Float]
5928
- attr_accessor :float_value
6369
+ # Update properties of this object
6370
+ def update!(**args)
6371
+ @page_span = args[:page_span] if args.key?(:page_span)
6372
+ @text = args[:text] if args.key?(:text)
6373
+ end
6374
+ end
5929
6375
 
5930
- # Integer value.
5931
- # Corresponds to the JSON property `integerValue`
5932
- # @return [Fixnum]
5933
- attr_accessor :integer_value
6376
+ # Represents the page header associated with the chunk.
6377
+ class GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageHeader
6378
+ include Google::Apis::Core::Hashable
5934
6379
 
5935
- # Represents an amount of money with its currency type.
5936
- # Corresponds to the JSON property `moneyValue`
5937
- # @return [Google::Apis::DocumentaiV1::GoogleTypeMoney]
5938
- attr_accessor :money_value
6380
+ # Represents where the chunk starts and ends in the document.
6381
+ # Corresponds to the JSON property `pageSpan`
6382
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageSpan]
6383
+ attr_accessor :page_span
5939
6384
 
5940
- # Optional. An optional field to store a normalized string. For some entity
5941
- # types, one of respective `structured_value` fields may also be populated. Also
5942
- # not all the types of `structured_value` will be normalized. For example, some
5943
- # processors may not generate `float` or `integer` normalized text by default.
5944
- # Below are sample formats mapped to structured values. - Money/Currency type (`
5945
- # money_value`) is in the ISO 4217 text format. - Date type (`date_value`) is in
5946
- # the ISO 8601 text format. - Datetime type (`datetime_value`) is in the ISO
5947
- # 8601 text format.
6385
+ # Header in text format.
5948
6386
  # Corresponds to the JSON property `text`
5949
6387
  # @return [String]
5950
6388
  attr_accessor :text
@@ -5955,35 +6393,24 @@ module Google
5955
6393
 
5956
6394
  # Update properties of this object
5957
6395
  def update!(**args)
5958
- @address_value = args[:address_value] if args.key?(:address_value)
5959
- @boolean_value = args[:boolean_value] if args.key?(:boolean_value)
5960
- @date_value = args[:date_value] if args.key?(:date_value)
5961
- @datetime_value = args[:datetime_value] if args.key?(:datetime_value)
5962
- @float_value = args[:float_value] if args.key?(:float_value)
5963
- @integer_value = args[:integer_value] if args.key?(:integer_value)
5964
- @money_value = args[:money_value] if args.key?(:money_value)
6396
+ @page_span = args[:page_span] if args.key?(:page_span)
5965
6397
  @text = args[:text] if args.key?(:text)
5966
6398
  end
5967
6399
  end
5968
6400
 
5969
- # Relationship between Entities.
5970
- class GoogleCloudDocumentaiV1beta1DocumentEntityRelation
6401
+ # Represents where the chunk starts and ends in the document.
6402
+ class GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageSpan
5971
6403
  include Google::Apis::Core::Hashable
5972
6404
 
5973
- # Object entity id.
5974
- # Corresponds to the JSON property `objectId`
5975
- # @return [String]
5976
- attr_accessor :object_id_prop
5977
-
5978
- # Relationship description.
5979
- # Corresponds to the JSON property `relation`
5980
- # @return [String]
5981
- attr_accessor :relation
6405
+ # Page where chunk ends in the document.
6406
+ # Corresponds to the JSON property `pageEnd`
6407
+ # @return [Fixnum]
6408
+ attr_accessor :page_end
5982
6409
 
5983
- # Subject entity id.
5984
- # Corresponds to the JSON property `subjectId`
5985
- # @return [String]
5986
- attr_accessor :subject_id
6410
+ # Page where chunk starts in the document.
6411
+ # Corresponds to the JSON property `pageStart`
6412
+ # @return [Fixnum]
6413
+ attr_accessor :page_start
5987
6414
 
5988
6415
  def initialize(**args)
5989
6416
  update!(**args)
@@ -5991,108 +6418,89 @@ module Google
5991
6418
 
5992
6419
  # Update properties of this object
5993
6420
  def update!(**args)
5994
- @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
5995
- @relation = args[:relation] if args.key?(:relation)
5996
- @subject_id = args[:subject_id] if args.key?(:subject_id)
6421
+ @page_end = args[:page_end] if args.key?(:page_end)
6422
+ @page_start = args[:page_start] if args.key?(:page_start)
5997
6423
  end
5998
6424
  end
5999
6425
 
6000
- # A page in a Document.
6001
- class GoogleCloudDocumentaiV1beta1DocumentPage
6426
+ # Represents the parsed layout of a document as a collection of blocks that the
6427
+ # document is divided into.
6428
+ class GoogleCloudDocumentaiV1beta1DocumentDocumentLayout
6002
6429
  include Google::Apis::Core::Hashable
6003
6430
 
6004
- # A list of visually detected text blocks on the page. A block has a set of
6005
- # lines (collected into paragraphs) that have a common line-spacing and
6006
- # orientation.
6431
+ # List of blocks in the document.
6007
6432
  # Corresponds to the JSON property `blocks`
6008
- # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageBlock>]
6433
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlock>]
6009
6434
  attr_accessor :blocks
6010
6435
 
6011
- # A list of detected barcodes.
6012
- # Corresponds to the JSON property `detectedBarcodes`
6013
- # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode>]
6014
- attr_accessor :detected_barcodes
6436
+ def initialize(**args)
6437
+ update!(**args)
6438
+ end
6015
6439
 
6016
- # A list of detected languages together with confidence.
6017
- # Corresponds to the JSON property `detectedLanguages`
6018
- # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage>]
6019
- attr_accessor :detected_languages
6440
+ # Update properties of this object
6441
+ def update!(**args)
6442
+ @blocks = args[:blocks] if args.key?(:blocks)
6443
+ end
6444
+ end
6020
6445
 
6021
- # Dimension for the page.
6022
- # Corresponds to the JSON property `dimension`
6023
- # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDimension]
6024
- attr_accessor :dimension
6446
+ # Represents a block. A block could be one of the various types (text, table,
6447
+ # list) supported.
6448
+ class GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlock
6449
+ include Google::Apis::Core::Hashable
6025
6450
 
6026
- # A list of visually detected form fields on the page.
6027
- # Corresponds to the JSON property `formFields`
6028
- # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageFormField>]
6029
- attr_accessor :form_fields
6030
-
6031
- # Rendered image contents for this page.
6032
- # Corresponds to the JSON property `image`
6033
- # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageImage]
6034
- attr_accessor :image
6035
-
6036
- # Image quality scores for the page image.
6037
- # Corresponds to the JSON property `imageQualityScores`
6038
- # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores]
6039
- attr_accessor :image_quality_scores
6040
-
6041
- # Visual element describing a layout unit on a page.
6042
- # Corresponds to the JSON property `layout`
6043
- # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageLayout]
6044
- attr_accessor :layout
6451
+ # ID of the block.
6452
+ # Corresponds to the JSON property `blockId`
6453
+ # @return [String]
6454
+ attr_accessor :block_id
6045
6455
 
6046
- # A list of visually detected text lines on the page. A collection of tokens
6047
- # that a human would perceive as a line.
6048
- # Corresponds to the JSON property `lines`
6049
- # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageLine>]
6050
- attr_accessor :lines
6456
+ # Represents a list type block.
6457
+ # Corresponds to the JSON property `listBlock`
6458
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock]
6459
+ attr_accessor :list_block
6051
6460
 
6052
- # 1-based index for current Page in a parent Document. Useful when a page is
6053
- # taken out of a Document for individual processing.
6054
- # Corresponds to the JSON property `pageNumber`
6055
- # @return [Fixnum]
6056
- attr_accessor :page_number
6461
+ # Represents where the block starts and ends in the document.
6462
+ # Corresponds to the JSON property `pageSpan`
6463
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan]
6464
+ attr_accessor :page_span
6057
6465
 
6058
- # A list of visually detected text paragraphs on the page. A collection of lines
6059
- # that a human would perceive as a paragraph.
6060
- # Corresponds to the JSON property `paragraphs`
6061
- # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageParagraph>]
6062
- attr_accessor :paragraphs
6466
+ # Represents a table type block.
6467
+ # Corresponds to the JSON property `tableBlock`
6468
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock]
6469
+ attr_accessor :table_block
6063
6470
 
6064
- # Structure to identify provenance relationships between annotations in
6065
- # different revisions.
6066
- # Corresponds to the JSON property `provenance`
6067
- # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentProvenance]
6068
- attr_accessor :provenance
6471
+ # Represents a text type block.
6472
+ # Corresponds to the JSON property `textBlock`
6473
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock]
6474
+ attr_accessor :text_block
6069
6475
 
6070
- # A list of visually detected symbols on the page.
6071
- # Corresponds to the JSON property `symbols`
6072
- # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageSymbol>]
6073
- attr_accessor :symbols
6476
+ def initialize(**args)
6477
+ update!(**args)
6478
+ end
6074
6479
 
6075
- # A list of visually detected tables on the page.
6076
- # Corresponds to the JSON property `tables`
6077
- # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageTable>]
6078
- attr_accessor :tables
6480
+ # Update properties of this object
6481
+ def update!(**args)
6482
+ @block_id = args[:block_id] if args.key?(:block_id)
6483
+ @list_block = args[:list_block] if args.key?(:list_block)
6484
+ @page_span = args[:page_span] if args.key?(:page_span)
6485
+ @table_block = args[:table_block] if args.key?(:table_block)
6486
+ @text_block = args[:text_block] if args.key?(:text_block)
6487
+ end
6488
+ end
6079
6489
 
6080
- # A list of visually detected tokens on the page.
6081
- # Corresponds to the JSON property `tokens`
6082
- # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageToken>]
6083
- attr_accessor :tokens
6490
+ # Represents a list type block.
6491
+ class GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock
6492
+ include Google::Apis::Core::Hashable
6084
6493
 
6085
- # Transformation matrices that were applied to the original document image to
6086
- # produce Page.image.
6087
- # Corresponds to the JSON property `transforms`
6088
- # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageMatrix>]
6089
- attr_accessor :transforms
6494
+ # List entries that constitute a list block.
6495
+ # Corresponds to the JSON property `listEntries`
6496
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry>]
6497
+ attr_accessor :list_entries
6090
6498
 
6091
- # A list of detected non-text visual elements e.g. checkbox, signature etc. on
6092
- # the page.
6093
- # Corresponds to the JSON property `visualElements`
6094
- # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageVisualElement>]
6095
- attr_accessor :visual_elements
6499
+ # Type of the list_entries (if exist). Available options are `ordered` and `
6500
+ # unordered`.
6501
+ # Corresponds to the JSON property `type`
6502
+ # @return [String]
6503
+ attr_accessor :type
6096
6504
 
6097
6505
  def initialize(**args)
6098
6506
  update!(**args)
@@ -6100,36 +6508,20 @@ module Google
6100
6508
 
6101
6509
  # Update properties of this object
6102
6510
  def update!(**args)
6103
- @blocks = args[:blocks] if args.key?(:blocks)
6104
- @detected_barcodes = args[:detected_barcodes] if args.key?(:detected_barcodes)
6105
- @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
6106
- @dimension = args[:dimension] if args.key?(:dimension)
6107
- @form_fields = args[:form_fields] if args.key?(:form_fields)
6108
- @image = args[:image] if args.key?(:image)
6109
- @image_quality_scores = args[:image_quality_scores] if args.key?(:image_quality_scores)
6110
- @layout = args[:layout] if args.key?(:layout)
6111
- @lines = args[:lines] if args.key?(:lines)
6112
- @page_number = args[:page_number] if args.key?(:page_number)
6113
- @paragraphs = args[:paragraphs] if args.key?(:paragraphs)
6114
- @provenance = args[:provenance] if args.key?(:provenance)
6115
- @symbols = args[:symbols] if args.key?(:symbols)
6116
- @tables = args[:tables] if args.key?(:tables)
6117
- @tokens = args[:tokens] if args.key?(:tokens)
6118
- @transforms = args[:transforms] if args.key?(:transforms)
6119
- @visual_elements = args[:visual_elements] if args.key?(:visual_elements)
6511
+ @list_entries = args[:list_entries] if args.key?(:list_entries)
6512
+ @type = args[:type] if args.key?(:type)
6120
6513
  end
6121
6514
  end
6122
6515
 
6123
- # Referencing the visual context of the entity in the Document.pages. Page
6124
- # anchors can be cross-page, consist of multiple bounding polygons and
6125
- # optionally reference specific layout element types.
6126
- class GoogleCloudDocumentaiV1beta1DocumentPageAnchor
6516
+ # Represents an entry in the list.
6517
+ class GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry
6127
6518
  include Google::Apis::Core::Hashable
6128
6519
 
6129
- # One or more references to visual page elements
6130
- # Corresponds to the JSON property `pageRefs`
6131
- # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef>]
6132
- attr_accessor :page_refs
6520
+ # A list entry is a list of blocks. Repeated blocks support further hierarchies
6521
+ # and nested blocks.
6522
+ # Corresponds to the JSON property `blocks`
6523
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlock>]
6524
+ attr_accessor :blocks
6133
6525
 
6134
6526
  def initialize(**args)
6135
6527
  update!(**args)
@@ -6137,41 +6529,23 @@ module Google
6137
6529
 
6138
6530
  # Update properties of this object
6139
6531
  def update!(**args)
6140
- @page_refs = args[:page_refs] if args.key?(:page_refs)
6532
+ @blocks = args[:blocks] if args.key?(:blocks)
6141
6533
  end
6142
6534
  end
6143
6535
 
6144
- # Represents a weak reference to a page element within a document.
6145
- class GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef
6536
+ # Represents where the block starts and ends in the document.
6537
+ class GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan
6146
6538
  include Google::Apis::Core::Hashable
6147
6539
 
6148
- # A bounding polygon for the detected image annotation.
6149
- # Corresponds to the JSON property `boundingPoly`
6150
- # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1BoundingPoly]
6151
- attr_accessor :bounding_poly
6152
-
6153
- # Optional. Confidence of detected page element, if applicable. Range `[0, 1]`.
6154
- # Corresponds to the JSON property `confidence`
6155
- # @return [Float]
6156
- attr_accessor :confidence
6157
-
6158
- # Optional. Deprecated. Use PageRef.bounding_poly instead.
6159
- # Corresponds to the JSON property `layoutId`
6160
- # @return [String]
6161
- attr_accessor :layout_id
6162
-
6163
- # Optional. The type of the layout element that is being referenced if any.
6164
- # Corresponds to the JSON property `layoutType`
6165
- # @return [String]
6166
- attr_accessor :layout_type
6540
+ # Page where block ends in the document.
6541
+ # Corresponds to the JSON property `pageEnd`
6542
+ # @return [Fixnum]
6543
+ attr_accessor :page_end
6167
6544
 
6168
- # Required. Index into the Document.pages element, for example using `Document.
6169
- # pages` to locate the related page element. This field is skipped when its
6170
- # value is the default `0`. See https://developers.google.com/protocol-buffers/
6171
- # docs/proto3#json.
6172
- # Corresponds to the JSON property `page`
6545
+ # Page where block starts in the document.
6546
+ # Corresponds to the JSON property `pageStart`
6173
6547
  # @return [Fixnum]
6174
- attr_accessor :page
6548
+ attr_accessor :page_start
6175
6549
 
6176
6550
  def initialize(**args)
6177
6551
  update!(**args)
@@ -6179,34 +6553,29 @@ module Google
6179
6553
 
6180
6554
  # Update properties of this object
6181
6555
  def update!(**args)
6182
- @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
6183
- @confidence = args[:confidence] if args.key?(:confidence)
6184
- @layout_id = args[:layout_id] if args.key?(:layout_id)
6185
- @layout_type = args[:layout_type] if args.key?(:layout_type)
6186
- @page = args[:page] if args.key?(:page)
6556
+ @page_end = args[:page_end] if args.key?(:page_end)
6557
+ @page_start = args[:page_start] if args.key?(:page_start)
6187
6558
  end
6188
6559
  end
6189
6560
 
6190
- # A block has a set of lines (collected into paragraphs) that have a common line-
6191
- # spacing and orientation.
6192
- class GoogleCloudDocumentaiV1beta1DocumentPageBlock
6561
+ # Represents a table type block.
6562
+ class GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock
6193
6563
  include Google::Apis::Core::Hashable
6194
6564
 
6195
- # A list of detected languages together with confidence.
6196
- # Corresponds to the JSON property `detectedLanguages`
6197
- # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage>]
6198
- attr_accessor :detected_languages
6565
+ # Body rows containing main table content.
6566
+ # Corresponds to the JSON property `bodyRows`
6567
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow>]
6568
+ attr_accessor :body_rows
6199
6569
 
6200
- # Visual element describing a layout unit on a page.
6201
- # Corresponds to the JSON property `layout`
6202
- # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageLayout]
6203
- attr_accessor :layout
6570
+ # Table caption/title.
6571
+ # Corresponds to the JSON property `caption`
6572
+ # @return [String]
6573
+ attr_accessor :caption
6204
6574
 
6205
- # Structure to identify provenance relationships between annotations in
6206
- # different revisions.
6207
- # Corresponds to the JSON property `provenance`
6208
- # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentProvenance]
6209
- attr_accessor :provenance
6575
+ # Header rows at the top of the table.
6576
+ # Corresponds to the JSON property `headerRows`
6577
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow>]
6578
+ attr_accessor :header_rows
6210
6579
 
6211
6580
  def initialize(**args)
6212
6581
  update!(**args)
@@ -6214,25 +6583,31 @@ module Google
6214
6583
 
6215
6584
  # Update properties of this object
6216
6585
  def update!(**args)
6217
- @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
6218
- @layout = args[:layout] if args.key?(:layout)
6219
- @provenance = args[:provenance] if args.key?(:provenance)
6586
+ @body_rows = args[:body_rows] if args.key?(:body_rows)
6587
+ @caption = args[:caption] if args.key?(:caption)
6588
+ @header_rows = args[:header_rows] if args.key?(:header_rows)
6220
6589
  end
6221
6590
  end
6222
6591
 
6223
- # A detected barcode.
6224
- class GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode
6592
+ # Represents a cell in a table row.
6593
+ class GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell
6225
6594
  include Google::Apis::Core::Hashable
6226
6595
 
6227
- # Encodes the detailed information of a barcode.
6228
- # Corresponds to the JSON property `barcode`
6229
- # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1Barcode]
6230
- attr_accessor :barcode
6596
+ # A table cell is a list of blocks. Repeated blocks support further hierarchies
6597
+ # and nested blocks.
6598
+ # Corresponds to the JSON property `blocks`
6599
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlock>]
6600
+ attr_accessor :blocks
6231
6601
 
6232
- # Visual element describing a layout unit on a page.
6233
- # Corresponds to the JSON property `layout`
6234
- # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageLayout]
6235
- attr_accessor :layout
6602
+ # How many columns this cell spans.
6603
+ # Corresponds to the JSON property `colSpan`
6604
+ # @return [Fixnum]
6605
+ attr_accessor :col_span
6606
+
6607
+ # How many rows this cell spans.
6608
+ # Corresponds to the JSON property `rowSpan`
6609
+ # @return [Fixnum]
6610
+ attr_accessor :row_span
6236
6611
 
6237
6612
  def initialize(**args)
6238
6613
  update!(**args)
@@ -6240,25 +6615,20 @@ module Google
6240
6615
 
6241
6616
  # Update properties of this object
6242
6617
  def update!(**args)
6243
- @barcode = args[:barcode] if args.key?(:barcode)
6244
- @layout = args[:layout] if args.key?(:layout)
6618
+ @blocks = args[:blocks] if args.key?(:blocks)
6619
+ @col_span = args[:col_span] if args.key?(:col_span)
6620
+ @row_span = args[:row_span] if args.key?(:row_span)
6245
6621
  end
6246
6622
  end
6247
6623
 
6248
- # Detected language for a structural component.
6249
- class GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage
6624
+ # Represents a row in a table.
6625
+ class GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow
6250
6626
  include Google::Apis::Core::Hashable
6251
6627
 
6252
- # Confidence of detected language. Range `[0, 1]`.
6253
- # Corresponds to the JSON property `confidence`
6254
- # @return [Float]
6255
- attr_accessor :confidence
6256
-
6257
- # The [BCP-47 language code](https://www.unicode.org/reports/tr35/#
6258
- # Unicode_locale_identifier), such as `en-US` or `sr-Latn`.
6259
- # Corresponds to the JSON property `languageCode`
6260
- # @return [String]
6261
- attr_accessor :language_code
6628
+ # A table row is a list of table cells.
6629
+ # Corresponds to the JSON property `cells`
6630
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell>]
6631
+ attr_accessor :cells
6262
6632
 
6263
6633
  def initialize(**args)
6264
6634
  update!(**args)
@@ -6266,29 +6636,31 @@ module Google
6266
6636
 
6267
6637
  # Update properties of this object
6268
6638
  def update!(**args)
6269
- @confidence = args[:confidence] if args.key?(:confidence)
6270
- @language_code = args[:language_code] if args.key?(:language_code)
6639
+ @cells = args[:cells] if args.key?(:cells)
6271
6640
  end
6272
6641
  end
6273
6642
 
6274
- # Dimension for the page.
6275
- class GoogleCloudDocumentaiV1beta1DocumentPageDimension
6643
+ # Represents a text type block.
6644
+ class GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock
6276
6645
  include Google::Apis::Core::Hashable
6277
6646
 
6278
- # Page height.
6279
- # Corresponds to the JSON property `height`
6280
- # @return [Float]
6281
- attr_accessor :height
6647
+ # A text block could further have child blocks. Repeated blocks support further
6648
+ # hierarchies and nested blocks.
6649
+ # Corresponds to the JSON property `blocks`
6650
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlock>]
6651
+ attr_accessor :blocks
6282
6652
 
6283
- # Dimension unit.
6284
- # Corresponds to the JSON property `unit`
6653
+ # Text content stored in the block.
6654
+ # Corresponds to the JSON property `text`
6285
6655
  # @return [String]
6286
- attr_accessor :unit
6656
+ attr_accessor :text
6287
6657
 
6288
- # Page width.
6289
- # Corresponds to the JSON property `width`
6290
- # @return [Float]
6291
- attr_accessor :width
6658
+ # Type of the text in the block. Available options are: `paragraph`, `subtitle`,
6659
+ # `heading-1`, `heading-2`, `heading-3`, `heading-4`, `heading-5`, `header`, `
6660
+ # footer`.
6661
+ # Corresponds to the JSON property `type`
6662
+ # @return [String]
6663
+ attr_accessor :type
6292
6664
 
6293
6665
  def initialize(**args)
6294
6666
  update!(**args)
@@ -6296,44 +6668,56 @@ module Google
6296
6668
 
6297
6669
  # Update properties of this object
6298
6670
  def update!(**args)
6299
- @height = args[:height] if args.key?(:height)
6300
- @unit = args[:unit] if args.key?(:unit)
6301
- @width = args[:width] if args.key?(:width)
6671
+ @blocks = args[:blocks] if args.key?(:blocks)
6672
+ @text = args[:text] if args.key?(:text)
6673
+ @type = args[:type] if args.key?(:type)
6302
6674
  end
6303
6675
  end
6304
6676
 
6305
- # A form field detected on the page.
6306
- class GoogleCloudDocumentaiV1beta1DocumentPageFormField
6677
+ # An entity that could be a phrase in the text or a property that belongs to the
6678
+ # document. It is a known entity type, such as a person, an organization, or
6679
+ # location.
6680
+ class GoogleCloudDocumentaiV1beta1DocumentEntity
6307
6681
  include Google::Apis::Core::Hashable
6308
6682
 
6309
- # Created for Labeling UI to export key text. If corrections were made to the
6310
- # text identified by the `field_name.text_anchor`, this field will contain the
6311
- # correction.
6312
- # Corresponds to the JSON property `correctedKeyText`
6313
- # @return [String]
6314
- attr_accessor :corrected_key_text
6683
+ # Optional. Confidence of detected Schema entity. Range `[0, 1]`.
6684
+ # Corresponds to the JSON property `confidence`
6685
+ # @return [Float]
6686
+ attr_accessor :confidence
6315
6687
 
6316
- # Created for Labeling UI to export value text. If corrections were made to the
6317
- # text identified by the `field_value.text_anchor`, this field will contain the
6318
- # correction.
6319
- # Corresponds to the JSON property `correctedValueText`
6688
+ # Optional. Canonical id. This will be a unique value in the entity list for
6689
+ # this document.
6690
+ # Corresponds to the JSON property `id`
6320
6691
  # @return [String]
6321
- attr_accessor :corrected_value_text
6692
+ attr_accessor :id
6322
6693
 
6323
- # Visual element describing a layout unit on a page.
6324
- # Corresponds to the JSON property `fieldName`
6325
- # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageLayout]
6326
- attr_accessor :field_name
6694
+ # Optional. Deprecated. Use `id` field instead.
6695
+ # Corresponds to the JSON property `mentionId`
6696
+ # @return [String]
6697
+ attr_accessor :mention_id
6327
6698
 
6328
- # Visual element describing a layout unit on a page.
6329
- # Corresponds to the JSON property `fieldValue`
6330
- # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageLayout]
6331
- attr_accessor :field_value
6699
+ # Optional. Text value of the entity e.g. `1600 Amphitheatre Pkwy`.
6700
+ # Corresponds to the JSON property `mentionText`
6701
+ # @return [String]
6702
+ attr_accessor :mention_text
6332
6703
 
6333
- # A list of detected languages for name together with confidence.
6334
- # Corresponds to the JSON property `nameDetectedLanguages`
6335
- # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage>]
6336
- attr_accessor :name_detected_languages
6704
+ # Parsed and normalized entity value.
6705
+ # Corresponds to the JSON property `normalizedValue`
6706
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue]
6707
+ attr_accessor :normalized_value
6708
+
6709
+ # Referencing the visual context of the entity in the Document.pages. Page
6710
+ # anchors can be cross-page, consist of multiple bounding polygons and
6711
+ # optionally reference specific layout element types.
6712
+ # Corresponds to the JSON property `pageAnchor`
6713
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageAnchor]
6714
+ attr_accessor :page_anchor
6715
+
6716
+ # Optional. Entities can be nested to form a hierarchical data structure
6717
+ # representing the content in the document.
6718
+ # Corresponds to the JSON property `properties`
6719
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentEntity>]
6720
+ attr_accessor :properties
6337
6721
 
6338
6722
  # Structure to identify provenance relationships between annotations in
6339
6723
  # different revisions.
@@ -6341,17 +6725,21 @@ module Google
6341
6725
  # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentProvenance]
6342
6726
  attr_accessor :provenance
6343
6727
 
6344
- # A list of detected languages for value together with confidence.
6345
- # Corresponds to the JSON property `valueDetectedLanguages`
6346
- # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage>]
6347
- attr_accessor :value_detected_languages
6728
+ # Optional. Whether the entity will be redacted for de-identification purposes.
6729
+ # Corresponds to the JSON property `redacted`
6730
+ # @return [Boolean]
6731
+ attr_accessor :redacted
6732
+ alias_method :redacted?, :redacted
6348
6733
 
6349
- # If the value is non-textual, this field represents the type. Current valid
6350
- # values are: - blank (this indicates the `field_value` is normal text) - `
6351
- # unfilled_checkbox` - `filled_checkbox`
6352
- # Corresponds to the JSON property `valueType`
6734
+ # Text reference indexing into the Document.text.
6735
+ # Corresponds to the JSON property `textAnchor`
6736
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentTextAnchor]
6737
+ attr_accessor :text_anchor
6738
+
6739
+ # Required. Entity type from a schema e.g. `Address`.
6740
+ # Corresponds to the JSON property `type`
6353
6741
  # @return [String]
6354
- attr_accessor :value_type
6742
+ attr_accessor :type
6355
6743
 
6356
6744
  def initialize(**args)
6357
6745
  update!(**args)
@@ -6359,69 +6747,100 @@ module Google
6359
6747
 
6360
6748
  # Update properties of this object
6361
6749
  def update!(**args)
6362
- @corrected_key_text = args[:corrected_key_text] if args.key?(:corrected_key_text)
6363
- @corrected_value_text = args[:corrected_value_text] if args.key?(:corrected_value_text)
6364
- @field_name = args[:field_name] if args.key?(:field_name)
6365
- @field_value = args[:field_value] if args.key?(:field_value)
6366
- @name_detected_languages = args[:name_detected_languages] if args.key?(:name_detected_languages)
6750
+ @confidence = args[:confidence] if args.key?(:confidence)
6751
+ @id = args[:id] if args.key?(:id)
6752
+ @mention_id = args[:mention_id] if args.key?(:mention_id)
6753
+ @mention_text = args[:mention_text] if args.key?(:mention_text)
6754
+ @normalized_value = args[:normalized_value] if args.key?(:normalized_value)
6755
+ @page_anchor = args[:page_anchor] if args.key?(:page_anchor)
6756
+ @properties = args[:properties] if args.key?(:properties)
6367
6757
  @provenance = args[:provenance] if args.key?(:provenance)
6368
- @value_detected_languages = args[:value_detected_languages] if args.key?(:value_detected_languages)
6369
- @value_type = args[:value_type] if args.key?(:value_type)
6758
+ @redacted = args[:redacted] if args.key?(:redacted)
6759
+ @text_anchor = args[:text_anchor] if args.key?(:text_anchor)
6760
+ @type = args[:type] if args.key?(:type)
6370
6761
  end
6371
6762
  end
6372
6763
 
6373
- # Rendered image contents for this page.
6374
- class GoogleCloudDocumentaiV1beta1DocumentPageImage
6764
+ # Parsed and normalized entity value.
6765
+ class GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue
6375
6766
  include Google::Apis::Core::Hashable
6376
6767
 
6377
- # Raw byte content of the image.
6378
- # Corresponds to the JSON property `content`
6379
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
6380
- # @return [String]
6381
- attr_accessor :content
6382
-
6383
- # Height of the image in pixels.
6384
- # Corresponds to the JSON property `height`
6385
- # @return [Fixnum]
6386
- attr_accessor :height
6768
+ # Represents a postal address, e.g. for postal delivery or payments addresses.
6769
+ # Given a postal address, a postal service can deliver items to a premise, P.O.
6770
+ # Box or similar. It is not intended to model geographical locations (roads,
6771
+ # towns, mountains). In typical usage an address would be created via user input
6772
+ # or from importing existing data, depending on the type of process. Advice on
6773
+ # address input / editing: - Use an internationalization-ready address widget
6774
+ # such as https://github.com/google/libaddressinput) - Users should not be
6775
+ # presented with UI elements for input or editing of fields outside countries
6776
+ # where that field is used. For more guidance on how to use this schema, please
6777
+ # see: https://support.google.com/business/answer/6397478
6778
+ # Corresponds to the JSON property `addressValue`
6779
+ # @return [Google::Apis::DocumentaiV1::GoogleTypePostalAddress]
6780
+ attr_accessor :address_value
6387
6781
 
6388
- # Encoding [media type (MIME type)](https://www.iana.org/assignments/media-types/
6389
- # media-types.xhtml) for the image.
6390
- # Corresponds to the JSON property `mimeType`
6391
- # @return [String]
6392
- attr_accessor :mime_type
6782
+ # Boolean value. Can be used for entities with binary values, or for checkboxes.
6783
+ # Corresponds to the JSON property `booleanValue`
6784
+ # @return [Boolean]
6785
+ attr_accessor :boolean_value
6786
+ alias_method :boolean_value?, :boolean_value
6393
6787
 
6394
- # Width of the image in pixels.
6395
- # Corresponds to the JSON property `width`
6396
- # @return [Fixnum]
6397
- attr_accessor :width
6788
+ # Represents a whole or partial calendar date, such as a birthday. The time of
6789
+ # day and time zone are either specified elsewhere or are insignificant. The
6790
+ # date is relative to the Gregorian Calendar. This can represent one of the
6791
+ # following: * A full date, with non-zero year, month, and day values. * A month
6792
+ # and day, with a zero year (for example, an anniversary). * A year on its own,
6793
+ # with a zero month and a zero day. * A year and month, with a zero day (for
6794
+ # example, a credit card expiration date). Related types: * google.type.
6795
+ # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
6796
+ # Corresponds to the JSON property `dateValue`
6797
+ # @return [Google::Apis::DocumentaiV1::GoogleTypeDate]
6798
+ attr_accessor :date_value
6398
6799
 
6399
- def initialize(**args)
6400
- update!(**args)
6401
- end
6800
+ # Represents civil time (or occasionally physical time). This type can represent
6801
+ # a civil time in one of a few possible ways: * When utc_offset is set and
6802
+ # time_zone is unset: a civil time on a calendar day with a particular offset
6803
+ # from UTC. * When time_zone is set and utc_offset is unset: a civil time on a
6804
+ # calendar day in a particular time zone. * When neither time_zone nor
6805
+ # utc_offset is set: a civil time on a calendar day in local time. The date is
6806
+ # relative to the Proleptic Gregorian Calendar. If year, month, or day are 0,
6807
+ # the DateTime is considered not to have a specific year, month, or day
6808
+ # respectively. This type may also be used to represent a physical time if all
6809
+ # the date and time fields are set and either case of the `time_offset` oneof is
6810
+ # set. Consider using `Timestamp` message for physical time instead. If your use
6811
+ # case also would like to store the user's timezone, that can be done in another
6812
+ # field. This type is more flexible than some applications may want. Make sure
6813
+ # to document and validate your application's limitations.
6814
+ # Corresponds to the JSON property `datetimeValue`
6815
+ # @return [Google::Apis::DocumentaiV1::GoogleTypeDateTime]
6816
+ attr_accessor :datetime_value
6402
6817
 
6403
- # Update properties of this object
6404
- def update!(**args)
6405
- @content = args[:content] if args.key?(:content)
6406
- @height = args[:height] if args.key?(:height)
6407
- @mime_type = args[:mime_type] if args.key?(:mime_type)
6408
- @width = args[:width] if args.key?(:width)
6409
- end
6410
- end
6818
+ # Float value.
6819
+ # Corresponds to the JSON property `floatValue`
6820
+ # @return [Float]
6821
+ attr_accessor :float_value
6411
6822
 
6412
- # Image quality scores for the page image.
6413
- class GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores
6414
- include Google::Apis::Core::Hashable
6823
+ # Integer value.
6824
+ # Corresponds to the JSON property `integerValue`
6825
+ # @return [Fixnum]
6826
+ attr_accessor :integer_value
6415
6827
 
6416
- # A list of detected defects.
6417
- # Corresponds to the JSON property `detectedDefects`
6418
- # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect>]
6419
- attr_accessor :detected_defects
6828
+ # Represents an amount of money with its currency type.
6829
+ # Corresponds to the JSON property `moneyValue`
6830
+ # @return [Google::Apis::DocumentaiV1::GoogleTypeMoney]
6831
+ attr_accessor :money_value
6420
6832
 
6421
- # The overall quality score. Range `[0, 1]` where `1` is perfect quality.
6422
- # Corresponds to the JSON property `qualityScore`
6423
- # @return [Float]
6424
- attr_accessor :quality_score
6833
+ # Optional. An optional field to store a normalized string. For some entity
6834
+ # types, one of respective `structured_value` fields may also be populated. Also
6835
+ # not all the types of `structured_value` will be normalized. For example, some
6836
+ # processors may not generate `float` or `integer` normalized text by default.
6837
+ # Below are sample formats mapped to structured values. - Money/Currency type (`
6838
+ # money_value`) is in the ISO 4217 text format. - Date type (`date_value`) is in
6839
+ # the ISO 8601 text format. - Datetime type (`datetime_value`) is in the ISO
6840
+ # 8601 text format.
6841
+ # Corresponds to the JSON property `text`
6842
+ # @return [String]
6843
+ attr_accessor :text
6425
6844
 
6426
6845
  def initialize(**args)
6427
6846
  update!(**args)
@@ -6429,28 +6848,35 @@ module Google
6429
6848
 
6430
6849
  # Update properties of this object
6431
6850
  def update!(**args)
6432
- @detected_defects = args[:detected_defects] if args.key?(:detected_defects)
6433
- @quality_score = args[:quality_score] if args.key?(:quality_score)
6851
+ @address_value = args[:address_value] if args.key?(:address_value)
6852
+ @boolean_value = args[:boolean_value] if args.key?(:boolean_value)
6853
+ @date_value = args[:date_value] if args.key?(:date_value)
6854
+ @datetime_value = args[:datetime_value] if args.key?(:datetime_value)
6855
+ @float_value = args[:float_value] if args.key?(:float_value)
6856
+ @integer_value = args[:integer_value] if args.key?(:integer_value)
6857
+ @money_value = args[:money_value] if args.key?(:money_value)
6858
+ @text = args[:text] if args.key?(:text)
6434
6859
  end
6435
6860
  end
6436
6861
 
6437
- # Image Quality Defects
6438
- class GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect
6862
+ # Relationship between Entities.
6863
+ class GoogleCloudDocumentaiV1beta1DocumentEntityRelation
6439
6864
  include Google::Apis::Core::Hashable
6440
6865
 
6441
- # Confidence of detected defect. Range `[0, 1]` where `1` indicates strong
6442
- # confidence that the defect exists.
6443
- # Corresponds to the JSON property `confidence`
6444
- # @return [Float]
6445
- attr_accessor :confidence
6866
+ # Object entity id.
6867
+ # Corresponds to the JSON property `objectId`
6868
+ # @return [String]
6869
+ attr_accessor :object_id_prop
6446
6870
 
6447
- # Name of the defect type. Supported values are: - `quality/defect_blurry` - `
6448
- # quality/defect_noisy` - `quality/defect_dark` - `quality/defect_faint` - `
6449
- # quality/defect_text_too_small` - `quality/defect_document_cutoff` - `quality/
6450
- # defect_text_cutoff` - `quality/defect_glare`
6451
- # Corresponds to the JSON property `type`
6871
+ # Relationship description.
6872
+ # Corresponds to the JSON property `relation`
6452
6873
  # @return [String]
6453
- attr_accessor :type
6874
+ attr_accessor :relation
6875
+
6876
+ # Subject entity id.
6877
+ # Corresponds to the JSON property `subjectId`
6878
+ # @return [String]
6879
+ attr_accessor :subject_id
6454
6880
 
6455
6881
  def initialize(**args)
6456
6882
  update!(**args)
@@ -6458,111 +6884,187 @@ module Google
6458
6884
 
6459
6885
  # Update properties of this object
6460
6886
  def update!(**args)
6461
- @confidence = args[:confidence] if args.key?(:confidence)
6462
- @type = args[:type] if args.key?(:type)
6887
+ @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
6888
+ @relation = args[:relation] if args.key?(:relation)
6889
+ @subject_id = args[:subject_id] if args.key?(:subject_id)
6463
6890
  end
6464
6891
  end
6465
6892
 
6466
- # Visual element describing a layout unit on a page.
6467
- class GoogleCloudDocumentaiV1beta1DocumentPageLayout
6893
+ # A page in a Document.
6894
+ class GoogleCloudDocumentaiV1beta1DocumentPage
6468
6895
  include Google::Apis::Core::Hashable
6469
6896
 
6470
- # A bounding polygon for the detected image annotation.
6471
- # Corresponds to the JSON property `boundingPoly`
6472
- # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1BoundingPoly]
6473
- attr_accessor :bounding_poly
6897
+ # A list of visually detected text blocks on the page. A block has a set of
6898
+ # lines (collected into paragraphs) that have a common line-spacing and
6899
+ # orientation.
6900
+ # Corresponds to the JSON property `blocks`
6901
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageBlock>]
6902
+ attr_accessor :blocks
6474
6903
 
6475
- # Confidence of the current Layout within context of the object this layout is
6476
- # for. e.g. confidence can be for a single token, a table, a visual element, etc.
6477
- # depending on context. Range `[0, 1]`.
6478
- # Corresponds to the JSON property `confidence`
6479
- # @return [Float]
6480
- attr_accessor :confidence
6481
-
6482
- # Detected orientation for the Layout.
6483
- # Corresponds to the JSON property `orientation`
6484
- # @return [String]
6485
- attr_accessor :orientation
6486
-
6487
- # Text reference indexing into the Document.text.
6488
- # Corresponds to the JSON property `textAnchor`
6489
- # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentTextAnchor]
6490
- attr_accessor :text_anchor
6491
-
6492
- def initialize(**args)
6493
- update!(**args)
6494
- end
6495
-
6496
- # Update properties of this object
6497
- def update!(**args)
6498
- @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
6499
- @confidence = args[:confidence] if args.key?(:confidence)
6500
- @orientation = args[:orientation] if args.key?(:orientation)
6501
- @text_anchor = args[:text_anchor] if args.key?(:text_anchor)
6502
- end
6503
- end
6504
-
6505
- # A collection of tokens that a human would perceive as a line. Does not cross
6506
- # column boundaries, can be horizontal, vertical, etc.
6507
- class GoogleCloudDocumentaiV1beta1DocumentPageLine
6508
- include Google::Apis::Core::Hashable
6904
+ # A list of detected barcodes.
6905
+ # Corresponds to the JSON property `detectedBarcodes`
6906
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode>]
6907
+ attr_accessor :detected_barcodes
6509
6908
 
6510
6909
  # A list of detected languages together with confidence.
6511
6910
  # Corresponds to the JSON property `detectedLanguages`
6512
6911
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage>]
6513
6912
  attr_accessor :detected_languages
6514
6913
 
6914
+ # Dimension for the page.
6915
+ # Corresponds to the JSON property `dimension`
6916
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDimension]
6917
+ attr_accessor :dimension
6918
+
6919
+ # A list of visually detected form fields on the page.
6920
+ # Corresponds to the JSON property `formFields`
6921
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageFormField>]
6922
+ attr_accessor :form_fields
6923
+
6924
+ # Rendered image contents for this page.
6925
+ # Corresponds to the JSON property `image`
6926
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageImage]
6927
+ attr_accessor :image
6928
+
6929
+ # Image quality scores for the page image.
6930
+ # Corresponds to the JSON property `imageQualityScores`
6931
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores]
6932
+ attr_accessor :image_quality_scores
6933
+
6515
6934
  # Visual element describing a layout unit on a page.
6516
6935
  # Corresponds to the JSON property `layout`
6517
6936
  # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageLayout]
6518
6937
  attr_accessor :layout
6519
6938
 
6939
+ # A list of visually detected text lines on the page. A collection of tokens
6940
+ # that a human would perceive as a line.
6941
+ # Corresponds to the JSON property `lines`
6942
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageLine>]
6943
+ attr_accessor :lines
6944
+
6945
+ # 1-based index for current Page in a parent Document. Useful when a page is
6946
+ # taken out of a Document for individual processing.
6947
+ # Corresponds to the JSON property `pageNumber`
6948
+ # @return [Fixnum]
6949
+ attr_accessor :page_number
6950
+
6951
+ # A list of visually detected text paragraphs on the page. A collection of lines
6952
+ # that a human would perceive as a paragraph.
6953
+ # Corresponds to the JSON property `paragraphs`
6954
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageParagraph>]
6955
+ attr_accessor :paragraphs
6956
+
6520
6957
  # Structure to identify provenance relationships between annotations in
6521
6958
  # different revisions.
6522
6959
  # Corresponds to the JSON property `provenance`
6523
6960
  # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentProvenance]
6524
6961
  attr_accessor :provenance
6525
6962
 
6963
+ # A list of visually detected symbols on the page.
6964
+ # Corresponds to the JSON property `symbols`
6965
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageSymbol>]
6966
+ attr_accessor :symbols
6967
+
6968
+ # A list of visually detected tables on the page.
6969
+ # Corresponds to the JSON property `tables`
6970
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageTable>]
6971
+ attr_accessor :tables
6972
+
6973
+ # A list of visually detected tokens on the page.
6974
+ # Corresponds to the JSON property `tokens`
6975
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageToken>]
6976
+ attr_accessor :tokens
6977
+
6978
+ # Transformation matrices that were applied to the original document image to
6979
+ # produce Page.image.
6980
+ # Corresponds to the JSON property `transforms`
6981
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageMatrix>]
6982
+ attr_accessor :transforms
6983
+
6984
+ # A list of detected non-text visual elements e.g. checkbox, signature etc. on
6985
+ # the page.
6986
+ # Corresponds to the JSON property `visualElements`
6987
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageVisualElement>]
6988
+ attr_accessor :visual_elements
6989
+
6526
6990
  def initialize(**args)
6527
6991
  update!(**args)
6528
6992
  end
6529
6993
 
6530
6994
  # Update properties of this object
6531
6995
  def update!(**args)
6996
+ @blocks = args[:blocks] if args.key?(:blocks)
6997
+ @detected_barcodes = args[:detected_barcodes] if args.key?(:detected_barcodes)
6532
6998
  @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
6999
+ @dimension = args[:dimension] if args.key?(:dimension)
7000
+ @form_fields = args[:form_fields] if args.key?(:form_fields)
7001
+ @image = args[:image] if args.key?(:image)
7002
+ @image_quality_scores = args[:image_quality_scores] if args.key?(:image_quality_scores)
6533
7003
  @layout = args[:layout] if args.key?(:layout)
7004
+ @lines = args[:lines] if args.key?(:lines)
7005
+ @page_number = args[:page_number] if args.key?(:page_number)
7006
+ @paragraphs = args[:paragraphs] if args.key?(:paragraphs)
6534
7007
  @provenance = args[:provenance] if args.key?(:provenance)
7008
+ @symbols = args[:symbols] if args.key?(:symbols)
7009
+ @tables = args[:tables] if args.key?(:tables)
7010
+ @tokens = args[:tokens] if args.key?(:tokens)
7011
+ @transforms = args[:transforms] if args.key?(:transforms)
7012
+ @visual_elements = args[:visual_elements] if args.key?(:visual_elements)
6535
7013
  end
6536
7014
  end
6537
7015
 
6538
- # Representation for transformation matrix, intended to be compatible and used
6539
- # with OpenCV format for image manipulation.
6540
- class GoogleCloudDocumentaiV1beta1DocumentPageMatrix
7016
+ # Referencing the visual context of the entity in the Document.pages. Page
7017
+ # anchors can be cross-page, consist of multiple bounding polygons and
7018
+ # optionally reference specific layout element types.
7019
+ class GoogleCloudDocumentaiV1beta1DocumentPageAnchor
6541
7020
  include Google::Apis::Core::Hashable
6542
7021
 
6543
- # Number of columns in the matrix.
6544
- # Corresponds to the JSON property `cols`
6545
- # @return [Fixnum]
6546
- attr_accessor :cols
7022
+ # One or more references to visual page elements
7023
+ # Corresponds to the JSON property `pageRefs`
7024
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef>]
7025
+ attr_accessor :page_refs
6547
7026
 
6548
- # The matrix data.
6549
- # Corresponds to the JSON property `data`
6550
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
7027
+ def initialize(**args)
7028
+ update!(**args)
7029
+ end
7030
+
7031
+ # Update properties of this object
7032
+ def update!(**args)
7033
+ @page_refs = args[:page_refs] if args.key?(:page_refs)
7034
+ end
7035
+ end
7036
+
7037
+ # Represents a weak reference to a page element within a document.
7038
+ class GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef
7039
+ include Google::Apis::Core::Hashable
7040
+
7041
+ # A bounding polygon for the detected image annotation.
7042
+ # Corresponds to the JSON property `boundingPoly`
7043
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1BoundingPoly]
7044
+ attr_accessor :bounding_poly
7045
+
7046
+ # Optional. Confidence of detected page element, if applicable. Range `[0, 1]`.
7047
+ # Corresponds to the JSON property `confidence`
7048
+ # @return [Float]
7049
+ attr_accessor :confidence
7050
+
7051
+ # Optional. Deprecated. Use PageRef.bounding_poly instead.
7052
+ # Corresponds to the JSON property `layoutId`
6551
7053
  # @return [String]
6552
- attr_accessor :data
7054
+ attr_accessor :layout_id
6553
7055
 
6554
- # Number of rows in the matrix.
6555
- # Corresponds to the JSON property `rows`
6556
- # @return [Fixnum]
6557
- attr_accessor :rows
7056
+ # Optional. The type of the layout element that is being referenced if any.
7057
+ # Corresponds to the JSON property `layoutType`
7058
+ # @return [String]
7059
+ attr_accessor :layout_type
6558
7060
 
6559
- # This encodes information about what data type the matrix uses. For example, 0 (
6560
- # CV_8U) is an unsigned 8-bit image. For the full list of OpenCV primitive data
6561
- # types, please refer to https://docs.opencv.org/4.3.0/d1/d1b/
6562
- # group__core__hal__interface.html
6563
- # Corresponds to the JSON property `type`
7061
+ # Required. Index into the Document.pages element, for example using `Document.
7062
+ # pages` to locate the related page element. This field is skipped when its
7063
+ # value is the default `0`. See https://developers.google.com/protocol-buffers/
7064
+ # docs/proto3#json.
7065
+ # Corresponds to the JSON property `page`
6564
7066
  # @return [Fixnum]
6565
- attr_accessor :type
7067
+ attr_accessor :page
6566
7068
 
6567
7069
  def initialize(**args)
6568
7070
  update!(**args)
@@ -6570,15 +7072,17 @@ module Google
6570
7072
 
6571
7073
  # Update properties of this object
6572
7074
  def update!(**args)
6573
- @cols = args[:cols] if args.key?(:cols)
6574
- @data = args[:data] if args.key?(:data)
6575
- @rows = args[:rows] if args.key?(:rows)
6576
- @type = args[:type] if args.key?(:type)
7075
+ @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
7076
+ @confidence = args[:confidence] if args.key?(:confidence)
7077
+ @layout_id = args[:layout_id] if args.key?(:layout_id)
7078
+ @layout_type = args[:layout_type] if args.key?(:layout_type)
7079
+ @page = args[:page] if args.key?(:page)
6577
7080
  end
6578
7081
  end
6579
7082
 
6580
- # A collection of lines that a human would perceive as a paragraph.
6581
- class GoogleCloudDocumentaiV1beta1DocumentPageParagraph
7083
+ # A block has a set of lines (collected into paragraphs) that have a common line-
7084
+ # spacing and orientation.
7085
+ class GoogleCloudDocumentaiV1beta1DocumentPageBlock
6582
7086
  include Google::Apis::Core::Hashable
6583
7087
 
6584
7088
  # A list of detected languages together with confidence.
@@ -6609,14 +7113,14 @@ module Google
6609
7113
  end
6610
7114
  end
6611
7115
 
6612
- # A detected symbol.
6613
- class GoogleCloudDocumentaiV1beta1DocumentPageSymbol
7116
+ # A detected barcode.
7117
+ class GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode
6614
7118
  include Google::Apis::Core::Hashable
6615
7119
 
6616
- # A list of detected languages together with confidence.
6617
- # Corresponds to the JSON property `detectedLanguages`
6618
- # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage>]
6619
- attr_accessor :detected_languages
7120
+ # Encodes the detailed information of a barcode.
7121
+ # Corresponds to the JSON property `barcode`
7122
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1Barcode]
7123
+ attr_accessor :barcode
6620
7124
 
6621
7125
  # Visual element describing a layout unit on a page.
6622
7126
  # Corresponds to the JSON property `layout`
@@ -6629,40 +7133,25 @@ module Google
6629
7133
 
6630
7134
  # Update properties of this object
6631
7135
  def update!(**args)
6632
- @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
7136
+ @barcode = args[:barcode] if args.key?(:barcode)
6633
7137
  @layout = args[:layout] if args.key?(:layout)
6634
7138
  end
6635
7139
  end
6636
7140
 
6637
- # A table representation similar to HTML table structure.
6638
- class GoogleCloudDocumentaiV1beta1DocumentPageTable
7141
+ # Detected language for a structural component.
7142
+ class GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage
6639
7143
  include Google::Apis::Core::Hashable
6640
7144
 
6641
- # Body rows of the table.
6642
- # Corresponds to the JSON property `bodyRows`
6643
- # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow>]
6644
- attr_accessor :body_rows
6645
-
6646
- # A list of detected languages together with confidence.
6647
- # Corresponds to the JSON property `detectedLanguages`
6648
- # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage>]
6649
- attr_accessor :detected_languages
6650
-
6651
- # Header rows of the table.
6652
- # Corresponds to the JSON property `headerRows`
6653
- # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow>]
6654
- attr_accessor :header_rows
6655
-
6656
- # Visual element describing a layout unit on a page.
6657
- # Corresponds to the JSON property `layout`
6658
- # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageLayout]
6659
- attr_accessor :layout
7145
+ # Confidence of detected language. Range `[0, 1]`.
7146
+ # Corresponds to the JSON property `confidence`
7147
+ # @return [Float]
7148
+ attr_accessor :confidence
6660
7149
 
6661
- # Structure to identify provenance relationships between annotations in
6662
- # different revisions.
6663
- # Corresponds to the JSON property `provenance`
6664
- # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentProvenance]
6665
- attr_accessor :provenance
7150
+ # The [BCP-47 language code](https://www.unicode.org/reports/tr35/#
7151
+ # Unicode_locale_identifier), such as `en-US` or `sr-Latn`.
7152
+ # Corresponds to the JSON property `languageCode`
7153
+ # @return [String]
7154
+ attr_accessor :language_code
6666
7155
 
6667
7156
  def initialize(**args)
6668
7157
  update!(**args)
@@ -6670,37 +7159,135 @@ module Google
6670
7159
 
6671
7160
  # Update properties of this object
6672
7161
  def update!(**args)
6673
- @body_rows = args[:body_rows] if args.key?(:body_rows)
6674
- @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
6675
- @header_rows = args[:header_rows] if args.key?(:header_rows)
6676
- @layout = args[:layout] if args.key?(:layout)
6677
- @provenance = args[:provenance] if args.key?(:provenance)
7162
+ @confidence = args[:confidence] if args.key?(:confidence)
7163
+ @language_code = args[:language_code] if args.key?(:language_code)
6678
7164
  end
6679
7165
  end
6680
7166
 
6681
- # A cell representation inside the table.
6682
- class GoogleCloudDocumentaiV1beta1DocumentPageTableTableCell
7167
+ # Dimension for the page.
7168
+ class GoogleCloudDocumentaiV1beta1DocumentPageDimension
6683
7169
  include Google::Apis::Core::Hashable
6684
7170
 
6685
- # How many columns this cell spans.
6686
- # Corresponds to the JSON property `colSpan`
6687
- # @return [Fixnum]
6688
- attr_accessor :col_span
7171
+ # Page height.
7172
+ # Corresponds to the JSON property `height`
7173
+ # @return [Float]
7174
+ attr_accessor :height
6689
7175
 
6690
- # A list of detected languages together with confidence.
6691
- # Corresponds to the JSON property `detectedLanguages`
6692
- # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage>]
6693
- attr_accessor :detected_languages
7176
+ # Dimension unit.
7177
+ # Corresponds to the JSON property `unit`
7178
+ # @return [String]
7179
+ attr_accessor :unit
7180
+
7181
+ # Page width.
7182
+ # Corresponds to the JSON property `width`
7183
+ # @return [Float]
7184
+ attr_accessor :width
7185
+
7186
+ def initialize(**args)
7187
+ update!(**args)
7188
+ end
7189
+
7190
+ # Update properties of this object
7191
+ def update!(**args)
7192
+ @height = args[:height] if args.key?(:height)
7193
+ @unit = args[:unit] if args.key?(:unit)
7194
+ @width = args[:width] if args.key?(:width)
7195
+ end
7196
+ end
7197
+
7198
+ # A form field detected on the page.
7199
+ class GoogleCloudDocumentaiV1beta1DocumentPageFormField
7200
+ include Google::Apis::Core::Hashable
7201
+
7202
+ # Created for Labeling UI to export key text. If corrections were made to the
7203
+ # text identified by the `field_name.text_anchor`, this field will contain the
7204
+ # correction.
7205
+ # Corresponds to the JSON property `correctedKeyText`
7206
+ # @return [String]
7207
+ attr_accessor :corrected_key_text
7208
+
7209
+ # Created for Labeling UI to export value text. If corrections were made to the
7210
+ # text identified by the `field_value.text_anchor`, this field will contain the
7211
+ # correction.
7212
+ # Corresponds to the JSON property `correctedValueText`
7213
+ # @return [String]
7214
+ attr_accessor :corrected_value_text
6694
7215
 
6695
7216
  # Visual element describing a layout unit on a page.
6696
- # Corresponds to the JSON property `layout`
7217
+ # Corresponds to the JSON property `fieldName`
6697
7218
  # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageLayout]
6698
- attr_accessor :layout
7219
+ attr_accessor :field_name
6699
7220
 
6700
- # How many rows this cell spans.
6701
- # Corresponds to the JSON property `rowSpan`
7221
+ # Visual element describing a layout unit on a page.
7222
+ # Corresponds to the JSON property `fieldValue`
7223
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageLayout]
7224
+ attr_accessor :field_value
7225
+
7226
+ # A list of detected languages for name together with confidence.
7227
+ # Corresponds to the JSON property `nameDetectedLanguages`
7228
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage>]
7229
+ attr_accessor :name_detected_languages
7230
+
7231
+ # Structure to identify provenance relationships between annotations in
7232
+ # different revisions.
7233
+ # Corresponds to the JSON property `provenance`
7234
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentProvenance]
7235
+ attr_accessor :provenance
7236
+
7237
+ # A list of detected languages for value together with confidence.
7238
+ # Corresponds to the JSON property `valueDetectedLanguages`
7239
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage>]
7240
+ attr_accessor :value_detected_languages
7241
+
7242
+ # If the value is non-textual, this field represents the type. Current valid
7243
+ # values are: - blank (this indicates the `field_value` is normal text) - `
7244
+ # unfilled_checkbox` - `filled_checkbox`
7245
+ # Corresponds to the JSON property `valueType`
7246
+ # @return [String]
7247
+ attr_accessor :value_type
7248
+
7249
+ def initialize(**args)
7250
+ update!(**args)
7251
+ end
7252
+
7253
+ # Update properties of this object
7254
+ def update!(**args)
7255
+ @corrected_key_text = args[:corrected_key_text] if args.key?(:corrected_key_text)
7256
+ @corrected_value_text = args[:corrected_value_text] if args.key?(:corrected_value_text)
7257
+ @field_name = args[:field_name] if args.key?(:field_name)
7258
+ @field_value = args[:field_value] if args.key?(:field_value)
7259
+ @name_detected_languages = args[:name_detected_languages] if args.key?(:name_detected_languages)
7260
+ @provenance = args[:provenance] if args.key?(:provenance)
7261
+ @value_detected_languages = args[:value_detected_languages] if args.key?(:value_detected_languages)
7262
+ @value_type = args[:value_type] if args.key?(:value_type)
7263
+ end
7264
+ end
7265
+
7266
+ # Rendered image contents for this page.
7267
+ class GoogleCloudDocumentaiV1beta1DocumentPageImage
7268
+ include Google::Apis::Core::Hashable
7269
+
7270
+ # Raw byte content of the image.
7271
+ # Corresponds to the JSON property `content`
7272
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
7273
+ # @return [String]
7274
+ attr_accessor :content
7275
+
7276
+ # Height of the image in pixels.
7277
+ # Corresponds to the JSON property `height`
6702
7278
  # @return [Fixnum]
6703
- attr_accessor :row_span
7279
+ attr_accessor :height
7280
+
7281
+ # Encoding [media type (MIME type)](https://www.iana.org/assignments/media-types/
7282
+ # media-types.xhtml) for the image.
7283
+ # Corresponds to the JSON property `mimeType`
7284
+ # @return [String]
7285
+ attr_accessor :mime_type
7286
+
7287
+ # Width of the image in pixels.
7288
+ # Corresponds to the JSON property `width`
7289
+ # @return [Fixnum]
7290
+ attr_accessor :width
6704
7291
 
6705
7292
  def initialize(**args)
6706
7293
  update!(**args)
@@ -6708,21 +7295,26 @@ module Google
6708
7295
 
6709
7296
  # Update properties of this object
6710
7297
  def update!(**args)
6711
- @col_span = args[:col_span] if args.key?(:col_span)
6712
- @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
6713
- @layout = args[:layout] if args.key?(:layout)
6714
- @row_span = args[:row_span] if args.key?(:row_span)
7298
+ @content = args[:content] if args.key?(:content)
7299
+ @height = args[:height] if args.key?(:height)
7300
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
7301
+ @width = args[:width] if args.key?(:width)
6715
7302
  end
6716
7303
  end
6717
7304
 
6718
- # A row of table cells.
6719
- class GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow
7305
+ # Image quality scores for the page image.
7306
+ class GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores
6720
7307
  include Google::Apis::Core::Hashable
6721
7308
 
6722
- # Cells that make up this row.
6723
- # Corresponds to the JSON property `cells`
6724
- # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageTableTableCell>]
6725
- attr_accessor :cells
7309
+ # A list of detected defects.
7310
+ # Corresponds to the JSON property `detectedDefects`
7311
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect>]
7312
+ attr_accessor :detected_defects
7313
+
7314
+ # The overall quality score. Range `[0, 1]` where `1` is perfect quality.
7315
+ # Corresponds to the JSON property `qualityScore`
7316
+ # @return [Float]
7317
+ attr_accessor :quality_score
6726
7318
 
6727
7319
  def initialize(**args)
6728
7320
  update!(**args)
@@ -6730,18 +7322,83 @@ module Google
6730
7322
 
6731
7323
  # Update properties of this object
6732
7324
  def update!(**args)
6733
- @cells = args[:cells] if args.key?(:cells)
7325
+ @detected_defects = args[:detected_defects] if args.key?(:detected_defects)
7326
+ @quality_score = args[:quality_score] if args.key?(:quality_score)
6734
7327
  end
6735
7328
  end
6736
7329
 
6737
- # A detected token.
6738
- class GoogleCloudDocumentaiV1beta1DocumentPageToken
7330
+ # Image Quality Defects
7331
+ class GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect
6739
7332
  include Google::Apis::Core::Hashable
6740
7333
 
6741
- # Detected break at the end of a Token.
6742
- # Corresponds to the JSON property `detectedBreak`
6743
- # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageTokenDetectedBreak]
6744
- attr_accessor :detected_break
7334
+ # Confidence of detected defect. Range `[0, 1]` where `1` indicates strong
7335
+ # confidence that the defect exists.
7336
+ # Corresponds to the JSON property `confidence`
7337
+ # @return [Float]
7338
+ attr_accessor :confidence
7339
+
7340
+ # Name of the defect type. Supported values are: - `quality/defect_blurry` - `
7341
+ # quality/defect_noisy` - `quality/defect_dark` - `quality/defect_faint` - `
7342
+ # quality/defect_text_too_small` - `quality/defect_document_cutoff` - `quality/
7343
+ # defect_text_cutoff` - `quality/defect_glare`
7344
+ # Corresponds to the JSON property `type`
7345
+ # @return [String]
7346
+ attr_accessor :type
7347
+
7348
+ def initialize(**args)
7349
+ update!(**args)
7350
+ end
7351
+
7352
+ # Update properties of this object
7353
+ def update!(**args)
7354
+ @confidence = args[:confidence] if args.key?(:confidence)
7355
+ @type = args[:type] if args.key?(:type)
7356
+ end
7357
+ end
7358
+
7359
+ # Visual element describing a layout unit on a page.
7360
+ class GoogleCloudDocumentaiV1beta1DocumentPageLayout
7361
+ include Google::Apis::Core::Hashable
7362
+
7363
+ # A bounding polygon for the detected image annotation.
7364
+ # Corresponds to the JSON property `boundingPoly`
7365
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1BoundingPoly]
7366
+ attr_accessor :bounding_poly
7367
+
7368
+ # Confidence of the current Layout within context of the object this layout is
7369
+ # for. e.g. confidence can be for a single token, a table, a visual element, etc.
7370
+ # depending on context. Range `[0, 1]`.
7371
+ # Corresponds to the JSON property `confidence`
7372
+ # @return [Float]
7373
+ attr_accessor :confidence
7374
+
7375
+ # Detected orientation for the Layout.
7376
+ # Corresponds to the JSON property `orientation`
7377
+ # @return [String]
7378
+ attr_accessor :orientation
7379
+
7380
+ # Text reference indexing into the Document.text.
7381
+ # Corresponds to the JSON property `textAnchor`
7382
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentTextAnchor]
7383
+ attr_accessor :text_anchor
7384
+
7385
+ def initialize(**args)
7386
+ update!(**args)
7387
+ end
7388
+
7389
+ # Update properties of this object
7390
+ def update!(**args)
7391
+ @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
7392
+ @confidence = args[:confidence] if args.key?(:confidence)
7393
+ @orientation = args[:orientation] if args.key?(:orientation)
7394
+ @text_anchor = args[:text_anchor] if args.key?(:text_anchor)
7395
+ end
7396
+ end
7397
+
7398
+ # A collection of tokens that a human would perceive as a line. Does not cross
7399
+ # column boundaries, can be horizontal, vertical, etc.
7400
+ class GoogleCloudDocumentaiV1beta1DocumentPageLine
7401
+ include Google::Apis::Core::Hashable
6745
7402
 
6746
7403
  # A list of detected languages together with confidence.
6747
7404
  # Corresponds to the JSON property `detectedLanguages`
@@ -6759,41 +7416,277 @@ module Google
6759
7416
  # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentProvenance]
6760
7417
  attr_accessor :provenance
6761
7418
 
6762
- # Font and other text style attributes.
6763
- # Corresponds to the JSON property `styleInfo`
6764
- # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageTokenStyleInfo]
6765
- attr_accessor :style_info
6766
-
6767
7419
  def initialize(**args)
6768
7420
  update!(**args)
6769
7421
  end
6770
7422
 
6771
7423
  # Update properties of this object
6772
7424
  def update!(**args)
6773
- @detected_break = args[:detected_break] if args.key?(:detected_break)
6774
7425
  @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
6775
7426
  @layout = args[:layout] if args.key?(:layout)
6776
7427
  @provenance = args[:provenance] if args.key?(:provenance)
6777
- @style_info = args[:style_info] if args.key?(:style_info)
6778
7428
  end
6779
7429
  end
6780
7430
 
6781
- # Detected break at the end of a Token.
6782
- class GoogleCloudDocumentaiV1beta1DocumentPageTokenDetectedBreak
7431
+ # Representation for transformation matrix, intended to be compatible and used
7432
+ # with OpenCV format for image manipulation.
7433
+ class GoogleCloudDocumentaiV1beta1DocumentPageMatrix
6783
7434
  include Google::Apis::Core::Hashable
6784
7435
 
6785
- # Detected break type.
6786
- # Corresponds to the JSON property `type`
7436
+ # Number of columns in the matrix.
7437
+ # Corresponds to the JSON property `cols`
7438
+ # @return [Fixnum]
7439
+ attr_accessor :cols
7440
+
7441
+ # The matrix data.
7442
+ # Corresponds to the JSON property `data`
7443
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
6787
7444
  # @return [String]
6788
- attr_accessor :type
7445
+ attr_accessor :data
6789
7446
 
6790
- def initialize(**args)
6791
- update!(**args)
6792
- end
7447
+ # Number of rows in the matrix.
7448
+ # Corresponds to the JSON property `rows`
7449
+ # @return [Fixnum]
7450
+ attr_accessor :rows
6793
7451
 
6794
- # Update properties of this object
6795
- def update!(**args)
6796
- @type = args[:type] if args.key?(:type)
7452
+ # This encodes information about what data type the matrix uses. For example, 0 (
7453
+ # CV_8U) is an unsigned 8-bit image. For the full list of OpenCV primitive data
7454
+ # types, please refer to https://docs.opencv.org/4.3.0/d1/d1b/
7455
+ # group__core__hal__interface.html
7456
+ # Corresponds to the JSON property `type`
7457
+ # @return [Fixnum]
7458
+ attr_accessor :type
7459
+
7460
+ def initialize(**args)
7461
+ update!(**args)
7462
+ end
7463
+
7464
+ # Update properties of this object
7465
+ def update!(**args)
7466
+ @cols = args[:cols] if args.key?(:cols)
7467
+ @data = args[:data] if args.key?(:data)
7468
+ @rows = args[:rows] if args.key?(:rows)
7469
+ @type = args[:type] if args.key?(:type)
7470
+ end
7471
+ end
7472
+
7473
+ # A collection of lines that a human would perceive as a paragraph.
7474
+ class GoogleCloudDocumentaiV1beta1DocumentPageParagraph
7475
+ include Google::Apis::Core::Hashable
7476
+
7477
+ # A list of detected languages together with confidence.
7478
+ # Corresponds to the JSON property `detectedLanguages`
7479
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage>]
7480
+ attr_accessor :detected_languages
7481
+
7482
+ # Visual element describing a layout unit on a page.
7483
+ # Corresponds to the JSON property `layout`
7484
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageLayout]
7485
+ attr_accessor :layout
7486
+
7487
+ # Structure to identify provenance relationships between annotations in
7488
+ # different revisions.
7489
+ # Corresponds to the JSON property `provenance`
7490
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentProvenance]
7491
+ attr_accessor :provenance
7492
+
7493
+ def initialize(**args)
7494
+ update!(**args)
7495
+ end
7496
+
7497
+ # Update properties of this object
7498
+ def update!(**args)
7499
+ @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
7500
+ @layout = args[:layout] if args.key?(:layout)
7501
+ @provenance = args[:provenance] if args.key?(:provenance)
7502
+ end
7503
+ end
7504
+
7505
+ # A detected symbol.
7506
+ class GoogleCloudDocumentaiV1beta1DocumentPageSymbol
7507
+ include Google::Apis::Core::Hashable
7508
+
7509
+ # A list of detected languages together with confidence.
7510
+ # Corresponds to the JSON property `detectedLanguages`
7511
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage>]
7512
+ attr_accessor :detected_languages
7513
+
7514
+ # Visual element describing a layout unit on a page.
7515
+ # Corresponds to the JSON property `layout`
7516
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageLayout]
7517
+ attr_accessor :layout
7518
+
7519
+ def initialize(**args)
7520
+ update!(**args)
7521
+ end
7522
+
7523
+ # Update properties of this object
7524
+ def update!(**args)
7525
+ @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
7526
+ @layout = args[:layout] if args.key?(:layout)
7527
+ end
7528
+ end
7529
+
7530
+ # A table representation similar to HTML table structure.
7531
+ class GoogleCloudDocumentaiV1beta1DocumentPageTable
7532
+ include Google::Apis::Core::Hashable
7533
+
7534
+ # Body rows of the table.
7535
+ # Corresponds to the JSON property `bodyRows`
7536
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow>]
7537
+ attr_accessor :body_rows
7538
+
7539
+ # A list of detected languages together with confidence.
7540
+ # Corresponds to the JSON property `detectedLanguages`
7541
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage>]
7542
+ attr_accessor :detected_languages
7543
+
7544
+ # Header rows of the table.
7545
+ # Corresponds to the JSON property `headerRows`
7546
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow>]
7547
+ attr_accessor :header_rows
7548
+
7549
+ # Visual element describing a layout unit on a page.
7550
+ # Corresponds to the JSON property `layout`
7551
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageLayout]
7552
+ attr_accessor :layout
7553
+
7554
+ # Structure to identify provenance relationships between annotations in
7555
+ # different revisions.
7556
+ # Corresponds to the JSON property `provenance`
7557
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentProvenance]
7558
+ attr_accessor :provenance
7559
+
7560
+ def initialize(**args)
7561
+ update!(**args)
7562
+ end
7563
+
7564
+ # Update properties of this object
7565
+ def update!(**args)
7566
+ @body_rows = args[:body_rows] if args.key?(:body_rows)
7567
+ @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
7568
+ @header_rows = args[:header_rows] if args.key?(:header_rows)
7569
+ @layout = args[:layout] if args.key?(:layout)
7570
+ @provenance = args[:provenance] if args.key?(:provenance)
7571
+ end
7572
+ end
7573
+
7574
+ # A cell representation inside the table.
7575
+ class GoogleCloudDocumentaiV1beta1DocumentPageTableTableCell
7576
+ include Google::Apis::Core::Hashable
7577
+
7578
+ # How many columns this cell spans.
7579
+ # Corresponds to the JSON property `colSpan`
7580
+ # @return [Fixnum]
7581
+ attr_accessor :col_span
7582
+
7583
+ # A list of detected languages together with confidence.
7584
+ # Corresponds to the JSON property `detectedLanguages`
7585
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage>]
7586
+ attr_accessor :detected_languages
7587
+
7588
+ # Visual element describing a layout unit on a page.
7589
+ # Corresponds to the JSON property `layout`
7590
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageLayout]
7591
+ attr_accessor :layout
7592
+
7593
+ # How many rows this cell spans.
7594
+ # Corresponds to the JSON property `rowSpan`
7595
+ # @return [Fixnum]
7596
+ attr_accessor :row_span
7597
+
7598
+ def initialize(**args)
7599
+ update!(**args)
7600
+ end
7601
+
7602
+ # Update properties of this object
7603
+ def update!(**args)
7604
+ @col_span = args[:col_span] if args.key?(:col_span)
7605
+ @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
7606
+ @layout = args[:layout] if args.key?(:layout)
7607
+ @row_span = args[:row_span] if args.key?(:row_span)
7608
+ end
7609
+ end
7610
+
7611
+ # A row of table cells.
7612
+ class GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow
7613
+ include Google::Apis::Core::Hashable
7614
+
7615
+ # Cells that make up this row.
7616
+ # Corresponds to the JSON property `cells`
7617
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageTableTableCell>]
7618
+ attr_accessor :cells
7619
+
7620
+ def initialize(**args)
7621
+ update!(**args)
7622
+ end
7623
+
7624
+ # Update properties of this object
7625
+ def update!(**args)
7626
+ @cells = args[:cells] if args.key?(:cells)
7627
+ end
7628
+ end
7629
+
7630
+ # A detected token.
7631
+ class GoogleCloudDocumentaiV1beta1DocumentPageToken
7632
+ include Google::Apis::Core::Hashable
7633
+
7634
+ # Detected break at the end of a Token.
7635
+ # Corresponds to the JSON property `detectedBreak`
7636
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageTokenDetectedBreak]
7637
+ attr_accessor :detected_break
7638
+
7639
+ # A list of detected languages together with confidence.
7640
+ # Corresponds to the JSON property `detectedLanguages`
7641
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage>]
7642
+ attr_accessor :detected_languages
7643
+
7644
+ # Visual element describing a layout unit on a page.
7645
+ # Corresponds to the JSON property `layout`
7646
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageLayout]
7647
+ attr_accessor :layout
7648
+
7649
+ # Structure to identify provenance relationships between annotations in
7650
+ # different revisions.
7651
+ # Corresponds to the JSON property `provenance`
7652
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentProvenance]
7653
+ attr_accessor :provenance
7654
+
7655
+ # Font and other text style attributes.
7656
+ # Corresponds to the JSON property `styleInfo`
7657
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageTokenStyleInfo]
7658
+ attr_accessor :style_info
7659
+
7660
+ def initialize(**args)
7661
+ update!(**args)
7662
+ end
7663
+
7664
+ # Update properties of this object
7665
+ def update!(**args)
7666
+ @detected_break = args[:detected_break] if args.key?(:detected_break)
7667
+ @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
7668
+ @layout = args[:layout] if args.key?(:layout)
7669
+ @provenance = args[:provenance] if args.key?(:provenance)
7670
+ @style_info = args[:style_info] if args.key?(:style_info)
7671
+ end
7672
+ end
7673
+
7674
+ # Detected break at the end of a Token.
7675
+ class GoogleCloudDocumentaiV1beta1DocumentPageTokenDetectedBreak
7676
+ include Google::Apis::Core::Hashable
7677
+
7678
+ # Detected break type.
7679
+ # Corresponds to the JSON property `type`
7680
+ # @return [String]
7681
+ attr_accessor :type
7682
+
7683
+ def initialize(**args)
7684
+ update!(**args)
7685
+ end
7686
+
7687
+ # Update properties of this object
7688
+ def update!(**args)
7689
+ @type = args[:type] if args.key?(:type)
6797
7690
  end
6798
7691
  end
6799
7692
 
@@ -7340,22 +8233,413 @@ module Google
7340
8233
  # @return [String]
7341
8234
  attr_accessor :font_weight
7342
8235
 
7343
- # Text reference indexing into the Document.text.
7344
- # Corresponds to the JSON property `textAnchor`
7345
- # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentTextAnchor]
7346
- attr_accessor :text_anchor
8236
+ # Text reference indexing into the Document.text.
8237
+ # Corresponds to the JSON property `textAnchor`
8238
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentTextAnchor]
8239
+ attr_accessor :text_anchor
8240
+
8241
+ # [Text decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp)
8242
+ # . Follows CSS standard.
8243
+ # Corresponds to the JSON property `textDecoration`
8244
+ # @return [String]
8245
+ attr_accessor :text_decoration
8246
+
8247
+ # [Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp).
8248
+ # Possible values are `normal`, `italic`, and `oblique`.
8249
+ # Corresponds to the JSON property `textStyle`
8250
+ # @return [String]
8251
+ attr_accessor :text_style
8252
+
8253
+ def initialize(**args)
8254
+ update!(**args)
8255
+ end
8256
+
8257
+ # Update properties of this object
8258
+ def update!(**args)
8259
+ @background_color = args[:background_color] if args.key?(:background_color)
8260
+ @color = args[:color] if args.key?(:color)
8261
+ @font_family = args[:font_family] if args.key?(:font_family)
8262
+ @font_size = args[:font_size] if args.key?(:font_size)
8263
+ @font_weight = args[:font_weight] if args.key?(:font_weight)
8264
+ @text_anchor = args[:text_anchor] if args.key?(:text_anchor)
8265
+ @text_decoration = args[:text_decoration] if args.key?(:text_decoration)
8266
+ @text_style = args[:text_style] if args.key?(:text_style)
8267
+ end
8268
+ end
8269
+
8270
+ # Font size with unit.
8271
+ class GoogleCloudDocumentaiV1beta1DocumentStyleFontSize
8272
+ include Google::Apis::Core::Hashable
8273
+
8274
+ # Font size for the text.
8275
+ # Corresponds to the JSON property `size`
8276
+ # @return [Float]
8277
+ attr_accessor :size
8278
+
8279
+ # Unit for the font size. Follows CSS naming (such as `in`, `px`, and `pt`).
8280
+ # Corresponds to the JSON property `unit`
8281
+ # @return [String]
8282
+ attr_accessor :unit
8283
+
8284
+ def initialize(**args)
8285
+ update!(**args)
8286
+ end
8287
+
8288
+ # Update properties of this object
8289
+ def update!(**args)
8290
+ @size = args[:size] if args.key?(:size)
8291
+ @unit = args[:unit] if args.key?(:unit)
8292
+ end
8293
+ end
8294
+
8295
+ # Text reference indexing into the Document.text.
8296
+ class GoogleCloudDocumentaiV1beta1DocumentTextAnchor
8297
+ include Google::Apis::Core::Hashable
8298
+
8299
+ # Contains the content of the text span so that users do not have to look it up
8300
+ # in the text_segments. It is always populated for formFields.
8301
+ # Corresponds to the JSON property `content`
8302
+ # @return [String]
8303
+ attr_accessor :content
8304
+
8305
+ # The text segments from the Document.text.
8306
+ # Corresponds to the JSON property `textSegments`
8307
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment>]
8308
+ attr_accessor :text_segments
8309
+
8310
+ def initialize(**args)
8311
+ update!(**args)
8312
+ end
8313
+
8314
+ # Update properties of this object
8315
+ def update!(**args)
8316
+ @content = args[:content] if args.key?(:content)
8317
+ @text_segments = args[:text_segments] if args.key?(:text_segments)
8318
+ end
8319
+ end
8320
+
8321
+ # A text segment in the Document.text. The indices may be out of bounds which
8322
+ # indicate that the text extends into another document shard for large sharded
8323
+ # documents. See ShardInfo.text_offset
8324
+ class GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment
8325
+ include Google::Apis::Core::Hashable
8326
+
8327
+ # TextSegment half open end UTF-8 char index in the Document.text.
8328
+ # Corresponds to the JSON property `endIndex`
8329
+ # @return [Fixnum]
8330
+ attr_accessor :end_index
8331
+
8332
+ # TextSegment start UTF-8 char index in the Document.text.
8333
+ # Corresponds to the JSON property `startIndex`
8334
+ # @return [Fixnum]
8335
+ attr_accessor :start_index
8336
+
8337
+ def initialize(**args)
8338
+ update!(**args)
8339
+ end
8340
+
8341
+ # Update properties of this object
8342
+ def update!(**args)
8343
+ @end_index = args[:end_index] if args.key?(:end_index)
8344
+ @start_index = args[:start_index] if args.key?(:start_index)
8345
+ end
8346
+ end
8347
+
8348
+ # This message is used for text changes aka. OCR corrections.
8349
+ class GoogleCloudDocumentaiV1beta1DocumentTextChange
8350
+ include Google::Apis::Core::Hashable
8351
+
8352
+ # The text that replaces the text identified in the `text_anchor`.
8353
+ # Corresponds to the JSON property `changedText`
8354
+ # @return [String]
8355
+ attr_accessor :changed_text
8356
+
8357
+ # The history of this annotation.
8358
+ # Corresponds to the JSON property `provenance`
8359
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentProvenance>]
8360
+ attr_accessor :provenance
8361
+
8362
+ # Text reference indexing into the Document.text.
8363
+ # Corresponds to the JSON property `textAnchor`
8364
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentTextAnchor]
8365
+ attr_accessor :text_anchor
8366
+
8367
+ def initialize(**args)
8368
+ update!(**args)
8369
+ end
8370
+
8371
+ # Update properties of this object
8372
+ def update!(**args)
8373
+ @changed_text = args[:changed_text] if args.key?(:changed_text)
8374
+ @provenance = args[:provenance] if args.key?(:provenance)
8375
+ @text_anchor = args[:text_anchor] if args.key?(:text_anchor)
8376
+ end
8377
+ end
8378
+
8379
+ # The Google Cloud Storage location where the output file will be written to.
8380
+ class GoogleCloudDocumentaiV1beta1GcsDestination
8381
+ include Google::Apis::Core::Hashable
8382
+
8383
+ #
8384
+ # Corresponds to the JSON property `uri`
8385
+ # @return [String]
8386
+ attr_accessor :uri
8387
+
8388
+ def initialize(**args)
8389
+ update!(**args)
8390
+ end
8391
+
8392
+ # Update properties of this object
8393
+ def update!(**args)
8394
+ @uri = args[:uri] if args.key?(:uri)
8395
+ end
8396
+ end
8397
+
8398
+ # The Google Cloud Storage location where the input file will be read from.
8399
+ class GoogleCloudDocumentaiV1beta1GcsSource
8400
+ include Google::Apis::Core::Hashable
8401
+
8402
+ #
8403
+ # Corresponds to the JSON property `uri`
8404
+ # @return [String]
8405
+ attr_accessor :uri
8406
+
8407
+ def initialize(**args)
8408
+ update!(**args)
8409
+ end
8410
+
8411
+ # Update properties of this object
8412
+ def update!(**args)
8413
+ @uri = args[:uri] if args.key?(:uri)
8414
+ end
8415
+ end
8416
+
8417
+ # The desired input location and metadata.
8418
+ class GoogleCloudDocumentaiV1beta1InputConfig
8419
+ include Google::Apis::Core::Hashable
8420
+
8421
+ # The Google Cloud Storage location where the input file will be read from.
8422
+ # Corresponds to the JSON property `gcsSource`
8423
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1GcsSource]
8424
+ attr_accessor :gcs_source
8425
+
8426
+ # Required. Mimetype of the input. Current supported mimetypes are application/
8427
+ # pdf, image/tiff, and image/gif. In addition, application/json type is
8428
+ # supported for requests with ProcessDocumentRequest.automl_params field set.
8429
+ # The JSON file needs to be in Document format.
8430
+ # Corresponds to the JSON property `mimeType`
8431
+ # @return [String]
8432
+ attr_accessor :mime_type
8433
+
8434
+ def initialize(**args)
8435
+ update!(**args)
8436
+ end
8437
+
8438
+ # Update properties of this object
8439
+ def update!(**args)
8440
+ @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
8441
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
8442
+ end
8443
+ end
8444
+
8445
+ # A vertex represents a 2D point in the image. NOTE: the normalized vertex
8446
+ # coordinates are relative to the original image and range from 0 to 1.
8447
+ class GoogleCloudDocumentaiV1beta1NormalizedVertex
8448
+ include Google::Apis::Core::Hashable
8449
+
8450
+ # X coordinate.
8451
+ # Corresponds to the JSON property `x`
8452
+ # @return [Float]
8453
+ attr_accessor :x
8454
+
8455
+ # Y coordinate (starts from the top of the image).
8456
+ # Corresponds to the JSON property `y`
8457
+ # @return [Float]
8458
+ attr_accessor :y
8459
+
8460
+ def initialize(**args)
8461
+ update!(**args)
8462
+ end
8463
+
8464
+ # Update properties of this object
8465
+ def update!(**args)
8466
+ @x = args[:x] if args.key?(:x)
8467
+ @y = args[:y] if args.key?(:y)
8468
+ end
8469
+ end
8470
+
8471
+ # Contains metadata for the BatchProcessDocuments operation.
8472
+ class GoogleCloudDocumentaiV1beta1OperationMetadata
8473
+ include Google::Apis::Core::Hashable
8474
+
8475
+ # The creation time of the operation.
8476
+ # Corresponds to the JSON property `createTime`
8477
+ # @return [String]
8478
+ attr_accessor :create_time
8479
+
8480
+ # The state of the current batch processing.
8481
+ # Corresponds to the JSON property `state`
8482
+ # @return [String]
8483
+ attr_accessor :state
8484
+
8485
+ # A message providing more details about the current state of processing.
8486
+ # Corresponds to the JSON property `stateMessage`
8487
+ # @return [String]
8488
+ attr_accessor :state_message
8489
+
8490
+ # The last update time of the operation.
8491
+ # Corresponds to the JSON property `updateTime`
8492
+ # @return [String]
8493
+ attr_accessor :update_time
8494
+
8495
+ def initialize(**args)
8496
+ update!(**args)
8497
+ end
8498
+
8499
+ # Update properties of this object
8500
+ def update!(**args)
8501
+ @create_time = args[:create_time] if args.key?(:create_time)
8502
+ @state = args[:state] if args.key?(:state)
8503
+ @state_message = args[:state_message] if args.key?(:state_message)
8504
+ @update_time = args[:update_time] if args.key?(:update_time)
8505
+ end
8506
+ end
8507
+
8508
+ # The desired output location and metadata.
8509
+ class GoogleCloudDocumentaiV1beta1OutputConfig
8510
+ include Google::Apis::Core::Hashable
8511
+
8512
+ # The Google Cloud Storage location where the output file will be written to.
8513
+ # Corresponds to the JSON property `gcsDestination`
8514
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1GcsDestination]
8515
+ attr_accessor :gcs_destination
8516
+
8517
+ # The max number of pages to include into each output Document shard JSON on
8518
+ # Google Cloud Storage. The valid range is [1, 100]. If not specified, the
8519
+ # default value is 20. For example, for one pdf file with 100 pages, 100 parsed
8520
+ # pages will be produced. If `pages_per_shard` = 20, then 5 Document shard JSON
8521
+ # files each containing 20 parsed pages will be written under the prefix
8522
+ # OutputConfig.gcs_destination.uri and suffix pages-x-to-y.json where x and y
8523
+ # are 1-indexed page numbers. Example GCS outputs with 157 pages and
8524
+ # pages_per_shard = 50: pages-001-to-050.json pages-051-to-100.json pages-101-to-
8525
+ # 150.json pages-151-to-157.json
8526
+ # Corresponds to the JSON property `pagesPerShard`
8527
+ # @return [Fixnum]
8528
+ attr_accessor :pages_per_shard
8529
+
8530
+ def initialize(**args)
8531
+ update!(**args)
8532
+ end
8533
+
8534
+ # Update properties of this object
8535
+ def update!(**args)
8536
+ @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
8537
+ @pages_per_shard = args[:pages_per_shard] if args.key?(:pages_per_shard)
8538
+ end
8539
+ end
8540
+
8541
+ # Response to a single document processing request.
8542
+ class GoogleCloudDocumentaiV1beta1ProcessDocumentResponse
8543
+ include Google::Apis::Core::Hashable
8544
+
8545
+ # The desired input location and metadata.
8546
+ # Corresponds to the JSON property `inputConfig`
8547
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1InputConfig]
8548
+ attr_accessor :input_config
8549
+
8550
+ # The desired output location and metadata.
8551
+ # Corresponds to the JSON property `outputConfig`
8552
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1OutputConfig]
8553
+ attr_accessor :output_config
8554
+
8555
+ def initialize(**args)
8556
+ update!(**args)
8557
+ end
8558
+
8559
+ # Update properties of this object
8560
+ def update!(**args)
8561
+ @input_config = args[:input_config] if args.key?(:input_config)
8562
+ @output_config = args[:output_config] if args.key?(:output_config)
8563
+ end
8564
+ end
8565
+
8566
+ # A vertex represents a 2D point in the image. NOTE: the vertex coordinates are
8567
+ # in the same scale as the original image.
8568
+ class GoogleCloudDocumentaiV1beta1Vertex
8569
+ include Google::Apis::Core::Hashable
8570
+
8571
+ # X coordinate.
8572
+ # Corresponds to the JSON property `x`
8573
+ # @return [Fixnum]
8574
+ attr_accessor :x
8575
+
8576
+ # Y coordinate (starts from the top of the image).
8577
+ # Corresponds to the JSON property `y`
8578
+ # @return [Fixnum]
8579
+ attr_accessor :y
8580
+
8581
+ def initialize(**args)
8582
+ update!(**args)
8583
+ end
8584
+
8585
+ # Update properties of this object
8586
+ def update!(**args)
8587
+ @x = args[:x] if args.key?(:x)
8588
+ @y = args[:y] if args.key?(:y)
8589
+ end
8590
+ end
8591
+
8592
+ # Encodes the detailed information of a barcode.
8593
+ class GoogleCloudDocumentaiV1beta2Barcode
8594
+ include Google::Apis::Core::Hashable
8595
+
8596
+ # Format of a barcode. The supported formats are: - `CODE_128`: Code 128 type. -
8597
+ # `CODE_39`: Code 39 type. - `CODE_93`: Code 93 type. - `CODABAR`: Codabar type.
8598
+ # - `DATA_MATRIX`: 2D Data Matrix type. - `ITF`: ITF type. - `EAN_13`: EAN-13
8599
+ # type. - `EAN_8`: EAN-8 type. - `QR_CODE`: 2D QR code type. - `UPC_A`: UPC-A
8600
+ # type. - `UPC_E`: UPC-E type. - `PDF417`: PDF417 type. - `AZTEC`: 2D Aztec code
8601
+ # type. - `DATABAR`: GS1 DataBar code type.
8602
+ # Corresponds to the JSON property `format`
8603
+ # @return [String]
8604
+ attr_accessor :format
8605
+
8606
+ # Raw value encoded in the barcode. For example: `'MEBKM:TITLE:Google;URL:https:/
8607
+ # /www.google.com;;'`.
8608
+ # Corresponds to the JSON property `rawValue`
8609
+ # @return [String]
8610
+ attr_accessor :raw_value
8611
+
8612
+ # Value format describes the format of the value that a barcode encodes. The
8613
+ # supported formats are: - `CONTACT_INFO`: Contact information. - `EMAIL`: Email
8614
+ # address. - `ISBN`: ISBN identifier. - `PHONE`: Phone number. - `PRODUCT`:
8615
+ # Product. - `SMS`: SMS message. - `TEXT`: Text string. - `URL`: URL address. - `
8616
+ # WIFI`: Wifi information. - `GEO`: Geo-localization. - `CALENDAR_EVENT`:
8617
+ # Calendar event. - `DRIVER_LICENSE`: Driver's license.
8618
+ # Corresponds to the JSON property `valueFormat`
8619
+ # @return [String]
8620
+ attr_accessor :value_format
8621
+
8622
+ def initialize(**args)
8623
+ update!(**args)
8624
+ end
7347
8625
 
7348
- # [Text decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp)
7349
- # . Follows CSS standard.
7350
- # Corresponds to the JSON property `textDecoration`
7351
- # @return [String]
7352
- attr_accessor :text_decoration
8626
+ # Update properties of this object
8627
+ def update!(**args)
8628
+ @format = args[:format] if args.key?(:format)
8629
+ @raw_value = args[:raw_value] if args.key?(:raw_value)
8630
+ @value_format = args[:value_format] if args.key?(:value_format)
8631
+ end
8632
+ end
7353
8633
 
7354
- # [Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp).
7355
- # Possible values are `normal`, `italic`, and `oblique`.
7356
- # Corresponds to the JSON property `textStyle`
7357
- # @return [String]
7358
- attr_accessor :text_style
8634
+ # Response to an batch document processing request. This is returned in the LRO
8635
+ # Operation after the operation is complete.
8636
+ class GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse
8637
+ include Google::Apis::Core::Hashable
8638
+
8639
+ # Responses for each individual document.
8640
+ # Corresponds to the JSON property `responses`
8641
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2ProcessDocumentResponse>]
8642
+ attr_accessor :responses
7359
8643
 
7360
8644
  def initialize(**args)
7361
8645
  update!(**args)
@@ -7363,30 +8647,23 @@ module Google
7363
8647
 
7364
8648
  # Update properties of this object
7365
8649
  def update!(**args)
7366
- @background_color = args[:background_color] if args.key?(:background_color)
7367
- @color = args[:color] if args.key?(:color)
7368
- @font_family = args[:font_family] if args.key?(:font_family)
7369
- @font_size = args[:font_size] if args.key?(:font_size)
7370
- @font_weight = args[:font_weight] if args.key?(:font_weight)
7371
- @text_anchor = args[:text_anchor] if args.key?(:text_anchor)
7372
- @text_decoration = args[:text_decoration] if args.key?(:text_decoration)
7373
- @text_style = args[:text_style] if args.key?(:text_style)
8650
+ @responses = args[:responses] if args.key?(:responses)
7374
8651
  end
7375
8652
  end
7376
8653
 
7377
- # Font size with unit.
7378
- class GoogleCloudDocumentaiV1beta1DocumentStyleFontSize
8654
+ # A bounding polygon for the detected image annotation.
8655
+ class GoogleCloudDocumentaiV1beta2BoundingPoly
7379
8656
  include Google::Apis::Core::Hashable
7380
8657
 
7381
- # Font size for the text.
7382
- # Corresponds to the JSON property `size`
7383
- # @return [Float]
7384
- attr_accessor :size
8658
+ # The bounding polygon normalized vertices.
8659
+ # Corresponds to the JSON property `normalizedVertices`
8660
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2NormalizedVertex>]
8661
+ attr_accessor :normalized_vertices
7385
8662
 
7386
- # Unit for the font size. Follows CSS naming (such as `in`, `px`, and `pt`).
7387
- # Corresponds to the JSON property `unit`
7388
- # @return [String]
7389
- attr_accessor :unit
8663
+ # The bounding polygon vertices.
8664
+ # Corresponds to the JSON property `vertices`
8665
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2Vertex>]
8666
+ attr_accessor :vertices
7390
8667
 
7391
8668
  def initialize(**args)
7392
8669
  update!(**args)
@@ -7394,25 +8671,109 @@ module Google
7394
8671
 
7395
8672
  # Update properties of this object
7396
8673
  def update!(**args)
7397
- @size = args[:size] if args.key?(:size)
7398
- @unit = args[:unit] if args.key?(:unit)
8674
+ @normalized_vertices = args[:normalized_vertices] if args.key?(:normalized_vertices)
8675
+ @vertices = args[:vertices] if args.key?(:vertices)
7399
8676
  end
7400
8677
  end
7401
8678
 
7402
- # Text reference indexing into the Document.text.
7403
- class GoogleCloudDocumentaiV1beta1DocumentTextAnchor
8679
+ # Document represents the canonical document resource in Document AI. It is an
8680
+ # interchange format that provides insights into documents and allows for
8681
+ # collaboration between users and Document AI to iterate and optimize for
8682
+ # quality.
8683
+ class GoogleCloudDocumentaiV1beta2Document
7404
8684
  include Google::Apis::Core::Hashable
7405
8685
 
7406
- # Contains the content of the text span so that users do not have to look it up
7407
- # in the text_segments. It is always populated for formFields.
8686
+ # Represents the chunks that the document is divided into.
8687
+ # Corresponds to the JSON property `chunkedDocument`
8688
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentChunkedDocument]
8689
+ attr_accessor :chunked_document
8690
+
8691
+ # Optional. Inline document content, represented as a stream of bytes. Note: As
8692
+ # with all `bytes` fields, protobuffers use a pure binary representation,
8693
+ # whereas JSON representations use base64.
7408
8694
  # Corresponds to the JSON property `content`
8695
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
7409
8696
  # @return [String]
7410
8697
  attr_accessor :content
7411
8698
 
7412
- # The text segments from the Document.text.
7413
- # Corresponds to the JSON property `textSegments`
7414
- # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment>]
7415
- attr_accessor :text_segments
8699
+ # Represents the parsed layout of a document as a collection of blocks that the
8700
+ # document is divided into.
8701
+ # Corresponds to the JSON property `documentLayout`
8702
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentDocumentLayout]
8703
+ attr_accessor :document_layout
8704
+
8705
+ # A list of entities detected on Document.text. For document shards, entities in
8706
+ # this list may cross shard boundaries.
8707
+ # Corresponds to the JSON property `entities`
8708
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentEntity>]
8709
+ attr_accessor :entities
8710
+
8711
+ # Placeholder. Relationship among Document.entities.
8712
+ # Corresponds to the JSON property `entityRelations`
8713
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentEntityRelation>]
8714
+ attr_accessor :entity_relations
8715
+
8716
+ # The `Status` type defines a logical error model that is suitable for different
8717
+ # programming environments, including REST APIs and RPC APIs. It is used by [
8718
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
8719
+ # data: error code, error message, and error details. You can find out more
8720
+ # about this error model and how to work with it in the [API Design Guide](https:
8721
+ # //cloud.google.com/apis/design/errors).
8722
+ # Corresponds to the JSON property `error`
8723
+ # @return [Google::Apis::DocumentaiV1::GoogleRpcStatus]
8724
+ attr_accessor :error
8725
+
8726
+ # Labels for this document.
8727
+ # Corresponds to the JSON property `labels`
8728
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentLabel>]
8729
+ attr_accessor :labels
8730
+
8731
+ # An IANA published [media type (MIME type)](https://www.iana.org/assignments/
8732
+ # media-types/media-types.xhtml).
8733
+ # Corresponds to the JSON property `mimeType`
8734
+ # @return [String]
8735
+ attr_accessor :mime_type
8736
+
8737
+ # Visual page layout for the Document.
8738
+ # Corresponds to the JSON property `pages`
8739
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPage>]
8740
+ attr_accessor :pages
8741
+
8742
+ # Placeholder. Revision history of this document.
8743
+ # Corresponds to the JSON property `revisions`
8744
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentRevision>]
8745
+ attr_accessor :revisions
8746
+
8747
+ # For a large document, sharding may be performed to produce several document
8748
+ # shards. Each document shard contains this field to detail which shard it is.
8749
+ # Corresponds to the JSON property `shardInfo`
8750
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentShardInfo]
8751
+ attr_accessor :shard_info
8752
+
8753
+ # Optional. UTF-8 encoded text in reading order from the document.
8754
+ # Corresponds to the JSON property `text`
8755
+ # @return [String]
8756
+ attr_accessor :text
8757
+
8758
+ # Placeholder. A list of text corrections made to Document.text. This is usually
8759
+ # used for annotating corrections to OCR mistakes. Text changes for a given
8760
+ # revision may not overlap with each other.
8761
+ # Corresponds to the JSON property `textChanges`
8762
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentTextChange>]
8763
+ attr_accessor :text_changes
8764
+
8765
+ # Styles for the Document.text.
8766
+ # Corresponds to the JSON property `textStyles`
8767
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentStyle>]
8768
+ attr_accessor :text_styles
8769
+
8770
+ # Optional. Currently supports Google Cloud Storage URI of the form `gs://
8771
+ # bucket_name/object_name`. Object versioning is not supported. For more
8772
+ # information, refer to [Google Cloud Storage Request URIs](https://cloud.google.
8773
+ # com/storage/docs/reference-uris).
8774
+ # Corresponds to the JSON property `uri`
8775
+ # @return [String]
8776
+ attr_accessor :uri
7416
8777
 
7417
8778
  def initialize(**args)
7418
8779
  update!(**args)
@@ -7420,26 +8781,32 @@ module Google
7420
8781
 
7421
8782
  # Update properties of this object
7422
8783
  def update!(**args)
8784
+ @chunked_document = args[:chunked_document] if args.key?(:chunked_document)
7423
8785
  @content = args[:content] if args.key?(:content)
7424
- @text_segments = args[:text_segments] if args.key?(:text_segments)
8786
+ @document_layout = args[:document_layout] if args.key?(:document_layout)
8787
+ @entities = args[:entities] if args.key?(:entities)
8788
+ @entity_relations = args[:entity_relations] if args.key?(:entity_relations)
8789
+ @error = args[:error] if args.key?(:error)
8790
+ @labels = args[:labels] if args.key?(:labels)
8791
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
8792
+ @pages = args[:pages] if args.key?(:pages)
8793
+ @revisions = args[:revisions] if args.key?(:revisions)
8794
+ @shard_info = args[:shard_info] if args.key?(:shard_info)
8795
+ @text = args[:text] if args.key?(:text)
8796
+ @text_changes = args[:text_changes] if args.key?(:text_changes)
8797
+ @text_styles = args[:text_styles] if args.key?(:text_styles)
8798
+ @uri = args[:uri] if args.key?(:uri)
7425
8799
  end
7426
8800
  end
7427
8801
 
7428
- # A text segment in the Document.text. The indices may be out of bounds which
7429
- # indicate that the text extends into another document shard for large sharded
7430
- # documents. See ShardInfo.text_offset
7431
- class GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment
8802
+ # Represents the chunks that the document is divided into.
8803
+ class GoogleCloudDocumentaiV1beta2DocumentChunkedDocument
7432
8804
  include Google::Apis::Core::Hashable
7433
8805
 
7434
- # TextSegment half open end UTF-8 char index in the Document.text.
7435
- # Corresponds to the JSON property `endIndex`
7436
- # @return [Fixnum]
7437
- attr_accessor :end_index
7438
-
7439
- # TextSegment start UTF-8 char index in the Document.text.
7440
- # Corresponds to the JSON property `startIndex`
7441
- # @return [Fixnum]
7442
- attr_accessor :start_index
8806
+ # List of chunks.
8807
+ # Corresponds to the JSON property `chunks`
8808
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunk>]
8809
+ attr_accessor :chunks
7443
8810
 
7444
8811
  def initialize(**args)
7445
8812
  update!(**args)
@@ -7447,29 +8814,43 @@ module Google
7447
8814
 
7448
8815
  # Update properties of this object
7449
8816
  def update!(**args)
7450
- @end_index = args[:end_index] if args.key?(:end_index)
7451
- @start_index = args[:start_index] if args.key?(:start_index)
8817
+ @chunks = args[:chunks] if args.key?(:chunks)
7452
8818
  end
7453
8819
  end
7454
8820
 
7455
- # This message is used for text changes aka. OCR corrections.
7456
- class GoogleCloudDocumentaiV1beta1DocumentTextChange
8821
+ # Represents a chunk.
8822
+ class GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunk
7457
8823
  include Google::Apis::Core::Hashable
7458
8824
 
7459
- # The text that replaces the text identified in the `text_anchor`.
7460
- # Corresponds to the JSON property `changedText`
8825
+ # ID of the chunk.
8826
+ # Corresponds to the JSON property `chunkId`
7461
8827
  # @return [String]
7462
- attr_accessor :changed_text
8828
+ attr_accessor :chunk_id
7463
8829
 
7464
- # The history of this annotation.
7465
- # Corresponds to the JSON property `provenance`
7466
- # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentProvenance>]
7467
- attr_accessor :provenance
8830
+ # Text content of the chunk.
8831
+ # Corresponds to the JSON property `content`
8832
+ # @return [String]
8833
+ attr_accessor :content
7468
8834
 
7469
- # Text reference indexing into the Document.text.
7470
- # Corresponds to the JSON property `textAnchor`
7471
- # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentTextAnchor]
7472
- attr_accessor :text_anchor
8835
+ # Page footers associated with the chunk.
8836
+ # Corresponds to the JSON property `pageFooters`
8837
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageFooter>]
8838
+ attr_accessor :page_footers
8839
+
8840
+ # Page headers associated with the chunk.
8841
+ # Corresponds to the JSON property `pageHeaders`
8842
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageHeader>]
8843
+ attr_accessor :page_headers
8844
+
8845
+ # Represents where the chunk starts and ends in the document.
8846
+ # Corresponds to the JSON property `pageSpan`
8847
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageSpan]
8848
+ attr_accessor :page_span
8849
+
8850
+ # Unused.
8851
+ # Corresponds to the JSON property `sourceBlockIds`
8852
+ # @return [Array<String>]
8853
+ attr_accessor :source_block_ids
7473
8854
 
7474
8855
  def initialize(**args)
7475
8856
  update!(**args)
@@ -7477,20 +8858,28 @@ module Google
7477
8858
 
7478
8859
  # Update properties of this object
7479
8860
  def update!(**args)
7480
- @changed_text = args[:changed_text] if args.key?(:changed_text)
7481
- @provenance = args[:provenance] if args.key?(:provenance)
7482
- @text_anchor = args[:text_anchor] if args.key?(:text_anchor)
8861
+ @chunk_id = args[:chunk_id] if args.key?(:chunk_id)
8862
+ @content = args[:content] if args.key?(:content)
8863
+ @page_footers = args[:page_footers] if args.key?(:page_footers)
8864
+ @page_headers = args[:page_headers] if args.key?(:page_headers)
8865
+ @page_span = args[:page_span] if args.key?(:page_span)
8866
+ @source_block_ids = args[:source_block_ids] if args.key?(:source_block_ids)
7483
8867
  end
7484
8868
  end
7485
8869
 
7486
- # The Google Cloud Storage location where the output file will be written to.
7487
- class GoogleCloudDocumentaiV1beta1GcsDestination
8870
+ # Represents the page footer associated with the chunk.
8871
+ class GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageFooter
7488
8872
  include Google::Apis::Core::Hashable
7489
8873
 
7490
- #
7491
- # Corresponds to the JSON property `uri`
8874
+ # Represents where the chunk starts and ends in the document.
8875
+ # Corresponds to the JSON property `pageSpan`
8876
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageSpan]
8877
+ attr_accessor :page_span
8878
+
8879
+ # Footer in text format.
8880
+ # Corresponds to the JSON property `text`
7492
8881
  # @return [String]
7493
- attr_accessor :uri
8882
+ attr_accessor :text
7494
8883
 
7495
8884
  def initialize(**args)
7496
8885
  update!(**args)
@@ -7498,18 +8887,24 @@ module Google
7498
8887
 
7499
8888
  # Update properties of this object
7500
8889
  def update!(**args)
7501
- @uri = args[:uri] if args.key?(:uri)
8890
+ @page_span = args[:page_span] if args.key?(:page_span)
8891
+ @text = args[:text] if args.key?(:text)
7502
8892
  end
7503
8893
  end
7504
8894
 
7505
- # The Google Cloud Storage location where the input file will be read from.
7506
- class GoogleCloudDocumentaiV1beta1GcsSource
8895
+ # Represents the page header associated with the chunk.
8896
+ class GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageHeader
7507
8897
  include Google::Apis::Core::Hashable
7508
8898
 
7509
- #
7510
- # Corresponds to the JSON property `uri`
8899
+ # Represents where the chunk starts and ends in the document.
8900
+ # Corresponds to the JSON property `pageSpan`
8901
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageSpan]
8902
+ attr_accessor :page_span
8903
+
8904
+ # Header in text format.
8905
+ # Corresponds to the JSON property `text`
7511
8906
  # @return [String]
7512
- attr_accessor :uri
8907
+ attr_accessor :text
7513
8908
 
7514
8909
  def initialize(**args)
7515
8910
  update!(**args)
@@ -7517,26 +8912,24 @@ module Google
7517
8912
 
7518
8913
  # Update properties of this object
7519
8914
  def update!(**args)
7520
- @uri = args[:uri] if args.key?(:uri)
8915
+ @page_span = args[:page_span] if args.key?(:page_span)
8916
+ @text = args[:text] if args.key?(:text)
7521
8917
  end
7522
8918
  end
7523
8919
 
7524
- # The desired input location and metadata.
7525
- class GoogleCloudDocumentaiV1beta1InputConfig
8920
+ # Represents where the chunk starts and ends in the document.
8921
+ class GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageSpan
7526
8922
  include Google::Apis::Core::Hashable
7527
8923
 
7528
- # The Google Cloud Storage location where the input file will be read from.
7529
- # Corresponds to the JSON property `gcsSource`
7530
- # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1GcsSource]
7531
- attr_accessor :gcs_source
8924
+ # Page where chunk ends in the document.
8925
+ # Corresponds to the JSON property `pageEnd`
8926
+ # @return [Fixnum]
8927
+ attr_accessor :page_end
7532
8928
 
7533
- # Required. Mimetype of the input. Current supported mimetypes are application/
7534
- # pdf, image/tiff, and image/gif. In addition, application/json type is
7535
- # supported for requests with ProcessDocumentRequest.automl_params field set.
7536
- # The JSON file needs to be in Document format.
7537
- # Corresponds to the JSON property `mimeType`
7538
- # @return [String]
7539
- attr_accessor :mime_type
8929
+ # Page where chunk starts in the document.
8930
+ # Corresponds to the JSON property `pageStart`
8931
+ # @return [Fixnum]
8932
+ attr_accessor :page_start
7540
8933
 
7541
8934
  def initialize(**args)
7542
8935
  update!(**args)
@@ -7544,25 +8937,20 @@ module Google
7544
8937
 
7545
8938
  # Update properties of this object
7546
8939
  def update!(**args)
7547
- @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
7548
- @mime_type = args[:mime_type] if args.key?(:mime_type)
8940
+ @page_end = args[:page_end] if args.key?(:page_end)
8941
+ @page_start = args[:page_start] if args.key?(:page_start)
7549
8942
  end
7550
8943
  end
7551
8944
 
7552
- # A vertex represents a 2D point in the image. NOTE: the normalized vertex
7553
- # coordinates are relative to the original image and range from 0 to 1.
7554
- class GoogleCloudDocumentaiV1beta1NormalizedVertex
7555
- include Google::Apis::Core::Hashable
7556
-
7557
- # X coordinate.
7558
- # Corresponds to the JSON property `x`
7559
- # @return [Float]
7560
- attr_accessor :x
8945
+ # Represents the parsed layout of a document as a collection of blocks that the
8946
+ # document is divided into.
8947
+ class GoogleCloudDocumentaiV1beta2DocumentDocumentLayout
8948
+ include Google::Apis::Core::Hashable
7561
8949
 
7562
- # Y coordinate (starts from the top of the image).
7563
- # Corresponds to the JSON property `y`
7564
- # @return [Float]
7565
- attr_accessor :y
8950
+ # List of blocks in the document.
8951
+ # Corresponds to the JSON property `blocks`
8952
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlock>]
8953
+ attr_accessor :blocks
7566
8954
 
7567
8955
  def initialize(**args)
7568
8956
  update!(**args)
@@ -7570,34 +8958,39 @@ module Google
7570
8958
 
7571
8959
  # Update properties of this object
7572
8960
  def update!(**args)
7573
- @x = args[:x] if args.key?(:x)
7574
- @y = args[:y] if args.key?(:y)
8961
+ @blocks = args[:blocks] if args.key?(:blocks)
7575
8962
  end
7576
8963
  end
7577
8964
 
7578
- # Contains metadata for the BatchProcessDocuments operation.
7579
- class GoogleCloudDocumentaiV1beta1OperationMetadata
8965
+ # Represents a block. A block could be one of the various types (text, table,
8966
+ # list) supported.
8967
+ class GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlock
7580
8968
  include Google::Apis::Core::Hashable
7581
8969
 
7582
- # The creation time of the operation.
7583
- # Corresponds to the JSON property `createTime`
8970
+ # ID of the block.
8971
+ # Corresponds to the JSON property `blockId`
7584
8972
  # @return [String]
7585
- attr_accessor :create_time
8973
+ attr_accessor :block_id
7586
8974
 
7587
- # The state of the current batch processing.
7588
- # Corresponds to the JSON property `state`
7589
- # @return [String]
7590
- attr_accessor :state
8975
+ # Represents a list type block.
8976
+ # Corresponds to the JSON property `listBlock`
8977
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock]
8978
+ attr_accessor :list_block
7591
8979
 
7592
- # A message providing more details about the current state of processing.
7593
- # Corresponds to the JSON property `stateMessage`
7594
- # @return [String]
7595
- attr_accessor :state_message
8980
+ # Represents where the block starts and ends in the document.
8981
+ # Corresponds to the JSON property `pageSpan`
8982
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan]
8983
+ attr_accessor :page_span
7596
8984
 
7597
- # The last update time of the operation.
7598
- # Corresponds to the JSON property `updateTime`
7599
- # @return [String]
7600
- attr_accessor :update_time
8985
+ # Represents a table type block.
8986
+ # Corresponds to the JSON property `tableBlock`
8987
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock]
8988
+ attr_accessor :table_block
8989
+
8990
+ # Represents a text type block.
8991
+ # Corresponds to the JSON property `textBlock`
8992
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock]
8993
+ attr_accessor :text_block
7601
8994
 
7602
8995
  def initialize(**args)
7603
8996
  update!(**args)
@@ -7605,34 +8998,28 @@ module Google
7605
8998
 
7606
8999
  # Update properties of this object
7607
9000
  def update!(**args)
7608
- @create_time = args[:create_time] if args.key?(:create_time)
7609
- @state = args[:state] if args.key?(:state)
7610
- @state_message = args[:state_message] if args.key?(:state_message)
7611
- @update_time = args[:update_time] if args.key?(:update_time)
9001
+ @block_id = args[:block_id] if args.key?(:block_id)
9002
+ @list_block = args[:list_block] if args.key?(:list_block)
9003
+ @page_span = args[:page_span] if args.key?(:page_span)
9004
+ @table_block = args[:table_block] if args.key?(:table_block)
9005
+ @text_block = args[:text_block] if args.key?(:text_block)
7612
9006
  end
7613
9007
  end
7614
9008
 
7615
- # The desired output location and metadata.
7616
- class GoogleCloudDocumentaiV1beta1OutputConfig
9009
+ # Represents a list type block.
9010
+ class GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock
7617
9011
  include Google::Apis::Core::Hashable
7618
9012
 
7619
- # The Google Cloud Storage location where the output file will be written to.
7620
- # Corresponds to the JSON property `gcsDestination`
7621
- # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1GcsDestination]
7622
- attr_accessor :gcs_destination
9013
+ # List entries that constitute a list block.
9014
+ # Corresponds to the JSON property `listEntries`
9015
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry>]
9016
+ attr_accessor :list_entries
7623
9017
 
7624
- # The max number of pages to include into each output Document shard JSON on
7625
- # Google Cloud Storage. The valid range is [1, 100]. If not specified, the
7626
- # default value is 20. For example, for one pdf file with 100 pages, 100 parsed
7627
- # pages will be produced. If `pages_per_shard` = 20, then 5 Document shard JSON
7628
- # files each containing 20 parsed pages will be written under the prefix
7629
- # OutputConfig.gcs_destination.uri and suffix pages-x-to-y.json where x and y
7630
- # are 1-indexed page numbers. Example GCS outputs with 157 pages and
7631
- # pages_per_shard = 50: pages-001-to-050.json pages-051-to-100.json pages-101-to-
7632
- # 150.json pages-151-to-157.json
7633
- # Corresponds to the JSON property `pagesPerShard`
7634
- # @return [Fixnum]
7635
- attr_accessor :pages_per_shard
9018
+ # Type of the list_entries (if exist). Available options are `ordered` and `
9019
+ # unordered`.
9020
+ # Corresponds to the JSON property `type`
9021
+ # @return [String]
9022
+ attr_accessor :type
7636
9023
 
7637
9024
  def initialize(**args)
7638
9025
  update!(**args)
@@ -7640,24 +9027,20 @@ module Google
7640
9027
 
7641
9028
  # Update properties of this object
7642
9029
  def update!(**args)
7643
- @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
7644
- @pages_per_shard = args[:pages_per_shard] if args.key?(:pages_per_shard)
9030
+ @list_entries = args[:list_entries] if args.key?(:list_entries)
9031
+ @type = args[:type] if args.key?(:type)
7645
9032
  end
7646
9033
  end
7647
9034
 
7648
- # Response to a single document processing request.
7649
- class GoogleCloudDocumentaiV1beta1ProcessDocumentResponse
9035
+ # Represents an entry in the list.
9036
+ class GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry
7650
9037
  include Google::Apis::Core::Hashable
7651
9038
 
7652
- # The desired input location and metadata.
7653
- # Corresponds to the JSON property `inputConfig`
7654
- # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1InputConfig]
7655
- attr_accessor :input_config
7656
-
7657
- # The desired output location and metadata.
7658
- # Corresponds to the JSON property `outputConfig`
7659
- # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1OutputConfig]
7660
- attr_accessor :output_config
9039
+ # A list entry is a list of blocks. Repeated blocks support further hierarchies
9040
+ # and nested blocks.
9041
+ # Corresponds to the JSON property `blocks`
9042
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlock>]
9043
+ attr_accessor :blocks
7661
9044
 
7662
9045
  def initialize(**args)
7663
9046
  update!(**args)
@@ -7665,25 +9048,23 @@ module Google
7665
9048
 
7666
9049
  # Update properties of this object
7667
9050
  def update!(**args)
7668
- @input_config = args[:input_config] if args.key?(:input_config)
7669
- @output_config = args[:output_config] if args.key?(:output_config)
9051
+ @blocks = args[:blocks] if args.key?(:blocks)
7670
9052
  end
7671
9053
  end
7672
9054
 
7673
- # A vertex represents a 2D point in the image. NOTE: the vertex coordinates are
7674
- # in the same scale as the original image.
7675
- class GoogleCloudDocumentaiV1beta1Vertex
9055
+ # Represents where the block starts and ends in the document.
9056
+ class GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan
7676
9057
  include Google::Apis::Core::Hashable
7677
9058
 
7678
- # X coordinate.
7679
- # Corresponds to the JSON property `x`
9059
+ # Page where block ends in the document.
9060
+ # Corresponds to the JSON property `pageEnd`
7680
9061
  # @return [Fixnum]
7681
- attr_accessor :x
9062
+ attr_accessor :page_end
7682
9063
 
7683
- # Y coordinate (starts from the top of the image).
7684
- # Corresponds to the JSON property `y`
9064
+ # Page where block starts in the document.
9065
+ # Corresponds to the JSON property `pageStart`
7685
9066
  # @return [Fixnum]
7686
- attr_accessor :y
9067
+ attr_accessor :page_start
7687
9068
 
7688
9069
  def initialize(**args)
7689
9070
  update!(**args)
@@ -7691,40 +9072,29 @@ module Google
7691
9072
 
7692
9073
  # Update properties of this object
7693
9074
  def update!(**args)
7694
- @x = args[:x] if args.key?(:x)
7695
- @y = args[:y] if args.key?(:y)
9075
+ @page_end = args[:page_end] if args.key?(:page_end)
9076
+ @page_start = args[:page_start] if args.key?(:page_start)
7696
9077
  end
7697
9078
  end
7698
9079
 
7699
- # Encodes the detailed information of a barcode.
7700
- class GoogleCloudDocumentaiV1beta2Barcode
9080
+ # Represents a table type block.
9081
+ class GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock
7701
9082
  include Google::Apis::Core::Hashable
7702
9083
 
7703
- # Format of a barcode. The supported formats are: - `CODE_128`: Code 128 type. -
7704
- # `CODE_39`: Code 39 type. - `CODE_93`: Code 93 type. - `CODABAR`: Codabar type.
7705
- # - `DATA_MATRIX`: 2D Data Matrix type. - `ITF`: ITF type. - `EAN_13`: EAN-13
7706
- # type. - `EAN_8`: EAN-8 type. - `QR_CODE`: 2D QR code type. - `UPC_A`: UPC-A
7707
- # type. - `UPC_E`: UPC-E type. - `PDF417`: PDF417 type. - `AZTEC`: 2D Aztec code
7708
- # type. - `DATABAR`: GS1 DataBar code type.
7709
- # Corresponds to the JSON property `format`
7710
- # @return [String]
7711
- attr_accessor :format
9084
+ # Body rows containing main table content.
9085
+ # Corresponds to the JSON property `bodyRows`
9086
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow>]
9087
+ attr_accessor :body_rows
7712
9088
 
7713
- # Raw value encoded in the barcode. For example: `'MEBKM:TITLE:Google;URL:https:/
7714
- # /www.google.com;;'`.
7715
- # Corresponds to the JSON property `rawValue`
9089
+ # Table caption/title.
9090
+ # Corresponds to the JSON property `caption`
7716
9091
  # @return [String]
7717
- attr_accessor :raw_value
9092
+ attr_accessor :caption
7718
9093
 
7719
- # Value format describes the format of the value that a barcode encodes. The
7720
- # supported formats are: - `CONTACT_INFO`: Contact information. - `EMAIL`: Email
7721
- # address. - `ISBN`: ISBN identifier. - `PHONE`: Phone number. - `PRODUCT`:
7722
- # Product. - `SMS`: SMS message. - `TEXT`: Text string. - `URL`: URL address. - `
7723
- # WIFI`: Wifi information. - `GEO`: Geo-localization. - `CALENDAR_EVENT`:
7724
- # Calendar event. - `DRIVER_LICENSE`: Driver's license.
7725
- # Corresponds to the JSON property `valueFormat`
7726
- # @return [String]
7727
- attr_accessor :value_format
9094
+ # Header rows at the top of the table.
9095
+ # Corresponds to the JSON property `headerRows`
9096
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow>]
9097
+ attr_accessor :header_rows
7728
9098
 
7729
9099
  def initialize(**args)
7730
9100
  update!(**args)
@@ -7732,21 +9102,31 @@ module Google
7732
9102
 
7733
9103
  # Update properties of this object
7734
9104
  def update!(**args)
7735
- @format = args[:format] if args.key?(:format)
7736
- @raw_value = args[:raw_value] if args.key?(:raw_value)
7737
- @value_format = args[:value_format] if args.key?(:value_format)
9105
+ @body_rows = args[:body_rows] if args.key?(:body_rows)
9106
+ @caption = args[:caption] if args.key?(:caption)
9107
+ @header_rows = args[:header_rows] if args.key?(:header_rows)
7738
9108
  end
7739
9109
  end
7740
9110
 
7741
- # Response to an batch document processing request. This is returned in the LRO
7742
- # Operation after the operation is complete.
7743
- class GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse
9111
+ # Represents a cell in a table row.
9112
+ class GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell
7744
9113
  include Google::Apis::Core::Hashable
7745
9114
 
7746
- # Responses for each individual document.
7747
- # Corresponds to the JSON property `responses`
7748
- # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2ProcessDocumentResponse>]
7749
- attr_accessor :responses
9115
+ # A table cell is a list of blocks. Repeated blocks support further hierarchies
9116
+ # and nested blocks.
9117
+ # Corresponds to the JSON property `blocks`
9118
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlock>]
9119
+ attr_accessor :blocks
9120
+
9121
+ # How many columns this cell spans.
9122
+ # Corresponds to the JSON property `colSpan`
9123
+ # @return [Fixnum]
9124
+ attr_accessor :col_span
9125
+
9126
+ # How many rows this cell spans.
9127
+ # Corresponds to the JSON property `rowSpan`
9128
+ # @return [Fixnum]
9129
+ attr_accessor :row_span
7750
9130
 
7751
9131
  def initialize(**args)
7752
9132
  update!(**args)
@@ -7754,23 +9134,20 @@ module Google
7754
9134
 
7755
9135
  # Update properties of this object
7756
9136
  def update!(**args)
7757
- @responses = args[:responses] if args.key?(:responses)
9137
+ @blocks = args[:blocks] if args.key?(:blocks)
9138
+ @col_span = args[:col_span] if args.key?(:col_span)
9139
+ @row_span = args[:row_span] if args.key?(:row_span)
7758
9140
  end
7759
9141
  end
7760
9142
 
7761
- # A bounding polygon for the detected image annotation.
7762
- class GoogleCloudDocumentaiV1beta2BoundingPoly
9143
+ # Represents a row in a table.
9144
+ class GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow
7763
9145
  include Google::Apis::Core::Hashable
7764
9146
 
7765
- # The bounding polygon normalized vertices.
7766
- # Corresponds to the JSON property `normalizedVertices`
7767
- # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2NormalizedVertex>]
7768
- attr_accessor :normalized_vertices
7769
-
7770
- # The bounding polygon vertices.
7771
- # Corresponds to the JSON property `vertices`
7772
- # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2Vertex>]
7773
- attr_accessor :vertices
9147
+ # A table row is a list of table cells.
9148
+ # Corresponds to the JSON property `cells`
9149
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell>]
9150
+ attr_accessor :cells
7774
9151
 
7775
9152
  def initialize(**args)
7776
9153
  update!(**args)
@@ -7778,98 +9155,31 @@ module Google
7778
9155
 
7779
9156
  # Update properties of this object
7780
9157
  def update!(**args)
7781
- @normalized_vertices = args[:normalized_vertices] if args.key?(:normalized_vertices)
7782
- @vertices = args[:vertices] if args.key?(:vertices)
9158
+ @cells = args[:cells] if args.key?(:cells)
7783
9159
  end
7784
9160
  end
7785
9161
 
7786
- # Document represents the canonical document resource in Document AI. It is an
7787
- # interchange format that provides insights into documents and allows for
7788
- # collaboration between users and Document AI to iterate and optimize for
7789
- # quality.
7790
- class GoogleCloudDocumentaiV1beta2Document
9162
+ # Represents a text type block.
9163
+ class GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock
7791
9164
  include Google::Apis::Core::Hashable
7792
9165
 
7793
- # Optional. Inline document content, represented as a stream of bytes. Note: As
7794
- # with all `bytes` fields, protobuffers use a pure binary representation,
7795
- # whereas JSON representations use base64.
7796
- # Corresponds to the JSON property `content`
7797
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
7798
- # @return [String]
7799
- attr_accessor :content
7800
-
7801
- # A list of entities detected on Document.text. For document shards, entities in
7802
- # this list may cross shard boundaries.
7803
- # Corresponds to the JSON property `entities`
7804
- # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentEntity>]
7805
- attr_accessor :entities
7806
-
7807
- # Placeholder. Relationship among Document.entities.
7808
- # Corresponds to the JSON property `entityRelations`
7809
- # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentEntityRelation>]
7810
- attr_accessor :entity_relations
7811
-
7812
- # The `Status` type defines a logical error model that is suitable for different
7813
- # programming environments, including REST APIs and RPC APIs. It is used by [
7814
- # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
7815
- # data: error code, error message, and error details. You can find out more
7816
- # about this error model and how to work with it in the [API Design Guide](https:
7817
- # //cloud.google.com/apis/design/errors).
7818
- # Corresponds to the JSON property `error`
7819
- # @return [Google::Apis::DocumentaiV1::GoogleRpcStatus]
7820
- attr_accessor :error
7821
-
7822
- # Labels for this document.
7823
- # Corresponds to the JSON property `labels`
7824
- # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentLabel>]
7825
- attr_accessor :labels
7826
-
7827
- # An IANA published [media type (MIME type)](https://www.iana.org/assignments/
7828
- # media-types/media-types.xhtml).
7829
- # Corresponds to the JSON property `mimeType`
7830
- # @return [String]
7831
- attr_accessor :mime_type
7832
-
7833
- # Visual page layout for the Document.
7834
- # Corresponds to the JSON property `pages`
7835
- # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPage>]
7836
- attr_accessor :pages
7837
-
7838
- # Placeholder. Revision history of this document.
7839
- # Corresponds to the JSON property `revisions`
7840
- # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentRevision>]
7841
- attr_accessor :revisions
7842
-
7843
- # For a large document, sharding may be performed to produce several document
7844
- # shards. Each document shard contains this field to detail which shard it is.
7845
- # Corresponds to the JSON property `shardInfo`
7846
- # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentShardInfo]
7847
- attr_accessor :shard_info
9166
+ # A text block could further have child blocks. Repeated blocks support further
9167
+ # hierarchies and nested blocks.
9168
+ # Corresponds to the JSON property `blocks`
9169
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlock>]
9170
+ attr_accessor :blocks
7848
9171
 
7849
- # Optional. UTF-8 encoded text in reading order from the document.
9172
+ # Text content stored in the block.
7850
9173
  # Corresponds to the JSON property `text`
7851
9174
  # @return [String]
7852
9175
  attr_accessor :text
7853
9176
 
7854
- # Placeholder. A list of text corrections made to Document.text. This is usually
7855
- # used for annotating corrections to OCR mistakes. Text changes for a given
7856
- # revision may not overlap with each other.
7857
- # Corresponds to the JSON property `textChanges`
7858
- # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentTextChange>]
7859
- attr_accessor :text_changes
7860
-
7861
- # Styles for the Document.text.
7862
- # Corresponds to the JSON property `textStyles`
7863
- # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentStyle>]
7864
- attr_accessor :text_styles
7865
-
7866
- # Optional. Currently supports Google Cloud Storage URI of the form `gs://
7867
- # bucket_name/object_name`. Object versioning is not supported. For more
7868
- # information, refer to [Google Cloud Storage Request URIs](https://cloud.google.
7869
- # com/storage/docs/reference-uris).
7870
- # Corresponds to the JSON property `uri`
9177
+ # Type of the text in the block. Available options are: `paragraph`, `subtitle`,
9178
+ # `heading-1`, `heading-2`, `heading-3`, `heading-4`, `heading-5`, `header`, `
9179
+ # footer`.
9180
+ # Corresponds to the JSON property `type`
7871
9181
  # @return [String]
7872
- attr_accessor :uri
9182
+ attr_accessor :type
7873
9183
 
7874
9184
  def initialize(**args)
7875
9185
  update!(**args)
@@ -7877,19 +9187,9 @@ module Google
7877
9187
 
7878
9188
  # Update properties of this object
7879
9189
  def update!(**args)
7880
- @content = args[:content] if args.key?(:content)
7881
- @entities = args[:entities] if args.key?(:entities)
7882
- @entity_relations = args[:entity_relations] if args.key?(:entity_relations)
7883
- @error = args[:error] if args.key?(:error)
7884
- @labels = args[:labels] if args.key?(:labels)
7885
- @mime_type = args[:mime_type] if args.key?(:mime_type)
7886
- @pages = args[:pages] if args.key?(:pages)
7887
- @revisions = args[:revisions] if args.key?(:revisions)
7888
- @shard_info = args[:shard_info] if args.key?(:shard_info)
9190
+ @blocks = args[:blocks] if args.key?(:blocks)
7889
9191
  @text = args[:text] if args.key?(:text)
7890
- @text_changes = args[:text_changes] if args.key?(:text_changes)
7891
- @text_styles = args[:text_styles] if args.key?(:text_styles)
7892
- @uri = args[:uri] if args.key?(:uri)
9192
+ @type = args[:type] if args.key?(:type)
7893
9193
  end
7894
9194
  end
7895
9195
 
@@ -10110,6 +11410,18 @@ module Google
10110
11410
  # @return [String]
10111
11411
  attr_accessor :name
10112
11412
 
11413
+ # Output only. Reserved for future use.
11414
+ # Corresponds to the JSON property `satisfiesPzi`
11415
+ # @return [Boolean]
11416
+ attr_accessor :satisfies_pzi
11417
+ alias_method :satisfies_pzi?, :satisfies_pzi
11418
+
11419
+ # Output only. Reserved for future use.
11420
+ # Corresponds to the JSON property `satisfiesPzs`
11421
+ # @return [Boolean]
11422
+ attr_accessor :satisfies_pzs
11423
+ alias_method :satisfies_pzs?, :satisfies_pzs
11424
+
10113
11425
  # Configuration specific to spanner-based indexing.
10114
11426
  # Corresponds to the JSON property `spannerIndexingConfig`
10115
11427
  # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig]
@@ -10134,6 +11446,8 @@ module Google
10134
11446
  @document_warehouse_config = args[:document_warehouse_config] if args.key?(:document_warehouse_config)
10135
11447
  @gcs_managed_config = args[:gcs_managed_config] if args.key?(:gcs_managed_config)
10136
11448
  @name = args[:name] if args.key?(:name)
11449
+ @satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi)
11450
+ @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
10137
11451
  @spanner_indexing_config = args[:spanner_indexing_config] if args.key?(:spanner_indexing_config)
10138
11452
  @state = args[:state] if args.key?(:state)
10139
11453
  @unmanaged_dataset_config = args[:unmanaged_dataset_config] if args.key?(:unmanaged_dataset_config)