google-apis-documentai_v1beta3 0.1.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d732f134d760f46cf704df59bd073d93c73c401eb4d6148b092f581aab9d188f
4
- data.tar.gz: ef0f01e6e3ccb6925414e5ff90520ccb3529a98630bb884e258d94173156aefa
3
+ metadata.gz: 5991972d74d9567b87ac2a60a2b51eba46c2e3944fb3c1854cde9c745b77c1e4
4
+ data.tar.gz: 2a00766961cdf9998d7bcdb79eae5f376422f0a5207abcbb02b04129fe8b62ca
5
5
  SHA512:
6
- metadata.gz: ffe18d676e0a45ccffb502e4fe957d4c3b88792d3080baed00ac1309b6263d1c2014a1d6d11653dd6226167d8495ff2bca80041c53557cb66271ff62991f96a3
7
- data.tar.gz: 6350dcede72de51037530ed8465c94b600ff27dcc77a7ce04d3c86c264248fe835e1b0eb1dcd6f77df0f1dc590146353107a212a5e3a3475ec98981f02cdd617
6
+ metadata.gz: 4022e2a723fc9659dd61c48414d92633a2184af7ffdaef561d9f6821fd4eb709b6997f6fadc5a8b7b18af86a0f42572d63c0f64fc4cd06153b4488b31cd1db92
7
+ data.tar.gz: 1707b1a4947e1f9c50611bc1bae3168050df8ab7ccfb96d183f1e1690dc17dd4f0bd35fc58b25d8d5e31b9ca21532a83b41481469e77c3b5785f127b1dee656a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Release history for google-apis-documentai_v1beta3
2
2
 
3
+ ### v0.6.0 (2021-03-09)
4
+
5
+ * Regenerated from discovery document revision 20210308
6
+ * Regenerated using generator version 0.2.0
7
+
8
+ ### v0.5.0 (2021-03-04)
9
+
10
+ * Regenerated from discovery document revision 20210226
11
+
12
+ ### v0.4.0 (2021-02-24)
13
+
14
+ * Regenerated from discovery document revision 20210222
15
+
16
+ ### v0.3.0 (2021-02-12)
17
+
18
+ * Regenerated from discovery document revision 20210211
19
+
20
+ ### v0.2.0 (2021-02-03)
21
+
22
+ * Regenerated from discovery document revision 20210201
23
+ * Regenerated using generator version 0.1.2
24
+
3
25
  ### v0.1.0 (2021-01-07)
4
26
 
5
27
  * Regenerated from discovery document revision 20201231
@@ -233,40 +233,33 @@ module Google
233
233
  end
234
234
  end
235
235
 
236
- # A processor version is an implementation of a processor. Each processor can
237
- # have multiple versions, pre-trained by Google internally or up-trained by the
238
- # customer. At a time, a processor can only have one default version version. So
239
- # the processor's behavior (when processing documents) is defined by a default
240
- # version.
241
- class GoogleCloudDocumentaiUiv1beta3ProcessorVersion
236
+ # Metadata of the EvaluateProcessorVersion method.
237
+ class GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionMetadata
242
238
  include Google::Apis::Core::Hashable
243
239
 
244
- # The time the processor version was created.
245
- # Corresponds to the JSON property `createTime`
246
- # @return [String]
247
- attr_accessor :create_time
240
+ # The common metadata for long running operations.
241
+ # Corresponds to the JSON property `commonMetadata`
242
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata]
243
+ attr_accessor :common_metadata
248
244
 
249
- # The display name of the processor version.
250
- # Corresponds to the JSON property `displayName`
251
- # @return [String]
252
- attr_accessor :display_name
245
+ def initialize(**args)
246
+ update!(**args)
247
+ end
253
248
 
254
- # The resource name of the processor version. Format: projects/`project`/
255
- # locations/`location`/processors/`processor`/processorVersions/`
256
- # processor_version`
257
- # Corresponds to the JSON property `name`
258
- # @return [String]
259
- attr_accessor :name
249
+ # Update properties of this object
250
+ def update!(**args)
251
+ @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
252
+ end
253
+ end
260
254
 
261
- # The schema defines the output of the processed document by a processor.
262
- # Corresponds to the JSON property `schema`
263
- # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3Schema]
264
- attr_accessor :schema
255
+ # Metadata of the EvaluateProcessorVersion method.
256
+ class GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionResponse
257
+ include Google::Apis::Core::Hashable
265
258
 
266
- # The state of the processor version.
267
- # Corresponds to the JSON property `state`
259
+ # The resource name of the created evaluation.
260
+ # Corresponds to the JSON property `evaluation`
268
261
  # @return [String]
269
- attr_accessor :state
262
+ attr_accessor :evaluation
270
263
 
271
264
  def initialize(**args)
272
265
  update!(**args)
@@ -274,32 +267,18 @@ module Google
274
267
 
275
268
  # Update properties of this object
276
269
  def update!(**args)
277
- @create_time = args[:create_time] if args.key?(:create_time)
278
- @display_name = args[:display_name] if args.key?(:display_name)
279
- @name = args[:name] if args.key?(:name)
280
- @schema = args[:schema] if args.key?(:schema)
281
- @state = args[:state] if args.key?(:state)
270
+ @evaluation = args[:evaluation] if args.key?(:evaluation)
282
271
  end
283
272
  end
284
273
 
285
- # The schema defines the output of the processed document by a processor.
286
- class GoogleCloudDocumentaiUiv1beta3Schema
274
+ # The long running operation metadata for SampleDataset.
275
+ class GoogleCloudDocumentaiUiv1beta3SampleDatasetMetadata
287
276
  include Google::Apis::Core::Hashable
288
277
 
289
- # Description of the schema.
290
- # Corresponds to the JSON property `description`
291
- # @return [String]
292
- attr_accessor :description
293
-
294
- # Display name to show to users.
295
- # Corresponds to the JSON property `displayName`
296
- # @return [String]
297
- attr_accessor :display_name
298
-
299
- # Entity types of the schema.
300
- # Corresponds to the JSON property `entityTypes`
301
- # @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3SchemaEntityType>]
302
- attr_accessor :entity_types
278
+ # The common metadata for long running operations.
279
+ # Corresponds to the JSON property `commonMetadata`
280
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata]
281
+ attr_accessor :common_metadata
303
282
 
304
283
  def initialize(**args)
305
284
  update!(**args)
@@ -307,54 +286,32 @@ module Google
307
286
 
308
287
  # Update properties of this object
309
288
  def update!(**args)
310
- @description = args[:description] if args.key?(:description)
311
- @display_name = args[:display_name] if args.key?(:display_name)
312
- @entity_types = args[:entity_types] if args.key?(:entity_types)
289
+ @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
313
290
  end
314
291
  end
315
292
 
316
- # EntityType is the wrapper of a label of the corresponding model with detailed
317
- # attributes and limitations for entity-based processors. Multiple types can
318
- # also compose a dependency tree to represent nested types.
319
- class GoogleCloudDocumentaiUiv1beta3SchemaEntityType
293
+ # The long running operation metadata for set default processor version method.
294
+ class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata
320
295
  include Google::Apis::Core::Hashable
321
296
 
322
- # Type of the entity. It can be either a value type (such as "text", "numeric", "
323
- # date" and "address"), or an object type which may contain nested entities (
324
- # such as "document" and "table").
325
- # Corresponds to the JSON property `baseType`
326
- # @return [String]
327
- attr_accessor :base_type
328
-
329
- # Description of the entity type.
330
- # Corresponds to the JSON property `description`
331
- # @return [String]
332
- attr_accessor :description
333
-
334
- # Occurrence type limits the number of times an entity type appears in the
335
- # document.
336
- # Corresponds to the JSON property `occurrenceType`
337
- # @return [String]
338
- attr_accessor :occurrence_type
297
+ # The common metadata for long running operations.
298
+ # Corresponds to the JSON property `commonMetadata`
299
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata]
300
+ attr_accessor :common_metadata
339
301
 
340
- # Describing the nested structure of an entity. An EntityType may consist of
341
- # several other EntityTypes. For example, in a document there can be an
342
- # EntityType 'ID', which consists of EntityType 'name' and 'address', with
343
- # corresponding attributes, such as TEXT for both types and ONCE for occurrence
344
- # types.
345
- # Corresponds to the JSON property `properties`
346
- # @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3SchemaEntityType>]
347
- attr_accessor :properties
302
+ def initialize(**args)
303
+ update!(**args)
304
+ end
348
305
 
349
- # Source of this entity type.
350
- # Corresponds to the JSON property `source`
351
- # @return [String]
352
- attr_accessor :source
306
+ # Update properties of this object
307
+ def update!(**args)
308
+ @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
309
+ end
310
+ end
353
311
 
354
- # Name of the type. It must be unique within the set of same level types.
355
- # Corresponds to the JSON property `type`
356
- # @return [String]
357
- attr_accessor :type
312
+ # Response message for set default processor version method.
313
+ class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionResponse
314
+ include Google::Apis::Core::Hashable
358
315
 
359
316
  def initialize(**args)
360
317
  update!(**args)
@@ -362,12 +319,6 @@ module Google
362
319
 
363
320
  # Update properties of this object
364
321
  def update!(**args)
365
- @base_type = args[:base_type] if args.key?(:base_type)
366
- @description = args[:description] if args.key?(:description)
367
- @occurrence_type = args[:occurrence_type] if args.key?(:occurrence_type)
368
- @properties = args[:properties] if args.key?(:properties)
369
- @source = args[:source] if args.key?(:source)
370
- @type = args[:type] if args.key?(:type)
371
322
  end
372
323
  end
373
324
 
@@ -380,6 +331,18 @@ module Google
380
331
  # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata]
381
332
  attr_accessor :common_metadata
382
333
 
334
+ # The dataset validation information. This includes any and all errors with
335
+ # documents and the dataset.
336
+ # Corresponds to the JSON property `testDatasetValidation`
337
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation]
338
+ attr_accessor :test_dataset_validation
339
+
340
+ # The dataset validation information. This includes any and all errors with
341
+ # documents and the dataset.
342
+ # Corresponds to the JSON property `trainingDatasetValidation`
343
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation]
344
+ attr_accessor :training_dataset_validation
345
+
383
346
  def initialize(**args)
384
347
  update!(**args)
385
348
  end
@@ -387,6 +350,37 @@ module Google
387
350
  # Update properties of this object
388
351
  def update!(**args)
389
352
  @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
353
+ @test_dataset_validation = args[:test_dataset_validation] if args.key?(:test_dataset_validation)
354
+ @training_dataset_validation = args[:training_dataset_validation] if args.key?(:training_dataset_validation)
355
+ end
356
+ end
357
+
358
+ # The dataset validation information. This includes any and all errors with
359
+ # documents and the dataset.
360
+ class GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation
361
+ include Google::Apis::Core::Hashable
362
+
363
+ # Error information for the dataset as a whole. A maximum of 10 dataset errors
364
+ # will be returned. A single dataset error is terminal for training.
365
+ # Corresponds to the JSON property `datasetErrors`
366
+ # @return [Array<Google::Apis::DocumentaiV1beta3::GoogleRpcStatus>]
367
+ attr_accessor :dataset_errors
368
+
369
+ # Error information pertaining to specific documents. A maximum of 10 document
370
+ # errors will be returned. Any document with errors will not be used throughout
371
+ # training.
372
+ # Corresponds to the JSON property `documentErrors`
373
+ # @return [Array<Google::Apis::DocumentaiV1beta3::GoogleRpcStatus>]
374
+ attr_accessor :document_errors
375
+
376
+ def initialize(**args)
377
+ update!(**args)
378
+ end
379
+
380
+ # Update properties of this object
381
+ def update!(**args)
382
+ @dataset_errors = args[:dataset_errors] if args.key?(:dataset_errors)
383
+ @document_errors = args[:document_errors] if args.key?(:document_errors)
390
384
  end
391
385
  end
392
386
 
@@ -394,13 +388,9 @@ module Google
394
388
  class GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionResponse
395
389
  include Google::Apis::Core::Hashable
396
390
 
397
- # A processor version is an implementation of a processor. Each processor can
398
- # have multiple versions, pre-trained by Google internally or up-trained by the
399
- # customer. At a time, a processor can only have one default version version. So
400
- # the processor's behavior (when processing documents) is defined by a default
401
- # version.
391
+ # The resource name of the processor version produced by training.
402
392
  # Corresponds to the JSON property `processorVersion`
403
- # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3ProcessorVersion]
393
+ # @return [String]
404
394
  attr_accessor :processor_version
405
395
 
406
396
  def initialize(**args)
@@ -532,13 +522,10 @@ module Google
532
522
  class GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus
533
523
  include Google::Apis::Core::Hashable
534
524
 
535
- # The name of the operation triggered by the processed document. If the human
536
- # review process is not triggered, this field will be empty. It has the same
537
- # response type and metadata as the long running operation returned by
538
- # ReviewDocument method.
539
- # Corresponds to the JSON property `humanReviewOperation`
540
- # @return [String]
541
- attr_accessor :human_review_operation
525
+ # The status of human review on a processed document.
526
+ # Corresponds to the JSON property `humanReviewStatus`
527
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1HumanReviewStatus]
528
+ attr_accessor :human_review_status
542
529
 
543
530
  # The source of the document, same as the [input_gcs_source] field in the
544
531
  # request when the batch process started. The batch process is started by take
@@ -570,7 +557,7 @@ module Google
570
557
 
571
558
  # Update properties of this object
572
559
  def update!(**args)
573
- @human_review_operation = args[:human_review_operation] if args.key?(:human_review_operation)
560
+ @human_review_status = args[:human_review_status] if args.key?(:human_review_status)
574
561
  @input_gcs_source = args[:input_gcs_source] if args.key?(:input_gcs_source)
575
562
  @output_gcs_destination = args[:output_gcs_destination] if args.key?(:output_gcs_destination)
576
563
  @status = args[:status] if args.key?(:status)
@@ -627,6 +614,40 @@ module Google
627
614
  end
628
615
  end
629
616
 
617
+ # The status of human review on a processed document.
618
+ class GoogleCloudDocumentaiV1HumanReviewStatus
619
+ include Google::Apis::Core::Hashable
620
+
621
+ # The name of the operation triggered by the processed document. This field is
622
+ # populated only when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has the same
623
+ # response type and metadata as the long running operation returned by [
624
+ # ReviewDocument] method.
625
+ # Corresponds to the JSON property `humanReviewOperation`
626
+ # @return [String]
627
+ attr_accessor :human_review_operation
628
+
629
+ # The state of human review on the processing request.
630
+ # Corresponds to the JSON property `state`
631
+ # @return [String]
632
+ attr_accessor :state
633
+
634
+ # A message providing more details about the human review state.
635
+ # Corresponds to the JSON property `stateMessage`
636
+ # @return [String]
637
+ attr_accessor :state_message
638
+
639
+ def initialize(**args)
640
+ update!(**args)
641
+ end
642
+
643
+ # Update properties of this object
644
+ def update!(**args)
645
+ @human_review_operation = args[:human_review_operation] if args.key?(:human_review_operation)
646
+ @state = args[:state] if args.key?(:state)
647
+ @state_message = args[:state_message] if args.key?(:state_message)
648
+ end
649
+ end
650
+
630
651
  # The long running operation metadata for review document method.
631
652
  class GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata
632
653
  include Google::Apis::Core::Hashable
@@ -717,9 +738,9 @@ module Google
717
738
  class GoogleCloudDocumentaiV1beta1Document
718
739
  include Google::Apis::Core::Hashable
719
740
 
720
- # Inline document content, represented as a stream of bytes. Note: As with all `
721
- # bytes` fields, protobuffers use a pure binary representation, whereas JSON
722
- # representations use base64.
741
+ # Optional. Inline document content, represented as a stream of bytes. Note: As
742
+ # with all `bytes` fields, protobuffers use a pure binary representation,
743
+ # whereas JSON representations use base64.
723
744
  # Corresponds to the JSON property `content`
724
745
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
725
746
  # @return [String]
@@ -769,7 +790,7 @@ module Google
769
790
  # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentShardInfo]
770
791
  attr_accessor :shard_info
771
792
 
772
- # UTF-8 encoded text in reading order from the document.
793
+ # Optional. UTF-8 encoded text in reading order from the document.
773
794
  # Corresponds to the JSON property `text`
774
795
  # @return [String]
775
796
  attr_accessor :text
@@ -786,16 +807,10 @@ module Google
786
807
  # @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentStyle>]
787
808
  attr_accessor :text_styles
788
809
 
789
- # A list of translations on Document.text. For document shards, translations in
790
- # this list may cross shard boundaries.
791
- # Corresponds to the JSON property `translations`
792
- # @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentTranslation>]
793
- attr_accessor :translations
794
-
795
- # Currently supports Google Cloud Storage URI of the form `gs://bucket_name/
796
- # object_name`. Object versioning is not supported. See [Google Cloud Storage
797
- # Request URIs](https://cloud.google.com/storage/docs/reference-uris) for more
798
- # info.
810
+ # Optional. Currently supports Google Cloud Storage URI of the form `gs://
811
+ # bucket_name/object_name`. Object versioning is not supported. See [Google
812
+ # Cloud Storage Request URIs](https://cloud.google.com/storage/docs/reference-
813
+ # uris) for more info.
799
814
  # Corresponds to the JSON property `uri`
800
815
  # @return [String]
801
816
  attr_accessor :uri
@@ -817,7 +832,6 @@ module Google
817
832
  @text = args[:text] if args.key?(:text)
818
833
  @text_changes = args[:text_changes] if args.key?(:text_changes)
819
834
  @text_styles = args[:text_styles] if args.key?(:text_styles)
820
- @translations = args[:translations] if args.key?(:translations)
821
835
  @uri = args[:uri] if args.key?(:uri)
822
836
  end
823
837
  end
@@ -838,12 +852,12 @@ module Google
838
852
  # @return [String]
839
853
  attr_accessor :id
840
854
 
841
- # Deprecated. Use `id` field instead.
855
+ # Optional. Deprecated. Use `id` field instead.
842
856
  # Corresponds to the JSON property `mentionId`
843
857
  # @return [String]
844
858
  attr_accessor :mention_id
845
859
 
846
- # Text value in the document e.g. `1600 Amphitheatre Pkwy`.
860
+ # Optional. Text value in the document e.g. `1600 Amphitheatre Pkwy`.
847
861
  # Corresponds to the JSON property `mentionText`
848
862
  # @return [String]
849
863
  attr_accessor :mention_text
@@ -926,6 +940,12 @@ module Google
926
940
  # @return [Google::Apis::DocumentaiV1beta3::GoogleTypePostalAddress]
927
941
  attr_accessor :address_value
928
942
 
943
+ # Boolean value. Can be used for entities with binary values, or for checkboxes.
944
+ # Corresponds to the JSON property `booleanValue`
945
+ # @return [Boolean]
946
+ attr_accessor :boolean_value
947
+ alias_method :boolean_value?, :boolean_value
948
+
929
949
  # Represents a whole or partial calendar date, such as a birthday. The time of
930
950
  # day and time zone are either specified elsewhere or are insignificant. The
931
951
  # date is relative to the Gregorian Calendar. This can represent one of the
@@ -978,6 +998,7 @@ module Google
978
998
  # Update properties of this object
979
999
  def update!(**args)
980
1000
  @address_value = args[:address_value] if args.key?(:address_value)
1001
+ @boolean_value = args[:boolean_value] if args.key?(:boolean_value)
981
1002
  @date_value = args[:date_value] if args.key?(:date_value)
982
1003
  @datetime_value = args[:datetime_value] if args.key?(:datetime_value)
983
1004
  @money_value = args[:money_value] if args.key?(:money_value)
@@ -2104,44 +2125,6 @@ module Google
2104
2125
  end
2105
2126
  end
2106
2127
 
2107
- # A translation of the text segment.
2108
- class GoogleCloudDocumentaiV1beta1DocumentTranslation
2109
- include Google::Apis::Core::Hashable
2110
-
2111
- # The BCP-47 language code, such as "en-US" or "sr-Latn". For more information,
2112
- # see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
2113
- # Corresponds to the JSON property `languageCode`
2114
- # @return [String]
2115
- attr_accessor :language_code
2116
-
2117
- # The history of this annotation.
2118
- # Corresponds to the JSON property `provenance`
2119
- # @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentProvenance>]
2120
- attr_accessor :provenance
2121
-
2122
- # Text reference indexing into the Document.text.
2123
- # Corresponds to the JSON property `textAnchor`
2124
- # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentTextAnchor]
2125
- attr_accessor :text_anchor
2126
-
2127
- # Text translated into the target language.
2128
- # Corresponds to the JSON property `translatedText`
2129
- # @return [String]
2130
- attr_accessor :translated_text
2131
-
2132
- def initialize(**args)
2133
- update!(**args)
2134
- end
2135
-
2136
- # Update properties of this object
2137
- def update!(**args)
2138
- @language_code = args[:language_code] if args.key?(:language_code)
2139
- @provenance = args[:provenance] if args.key?(:provenance)
2140
- @text_anchor = args[:text_anchor] if args.key?(:text_anchor)
2141
- @translated_text = args[:translated_text] if args.key?(:translated_text)
2142
- end
2143
- end
2144
-
2145
2128
  # The Google Cloud Storage location where the output file will be written to.
2146
2129
  class GoogleCloudDocumentaiV1beta1GcsDestination
2147
2130
  include Google::Apis::Core::Hashable
@@ -2407,9 +2390,9 @@ module Google
2407
2390
  class GoogleCloudDocumentaiV1beta2Document
2408
2391
  include Google::Apis::Core::Hashable
2409
2392
 
2410
- # Inline document content, represented as a stream of bytes. Note: As with all `
2411
- # bytes` fields, protobuffers use a pure binary representation, whereas JSON
2412
- # representations use base64.
2393
+ # Optional. Inline document content, represented as a stream of bytes. Note: As
2394
+ # with all `bytes` fields, protobuffers use a pure binary representation,
2395
+ # whereas JSON representations use base64.
2413
2396
  # Corresponds to the JSON property `content`
2414
2397
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
2415
2398
  # @return [String]
@@ -2464,7 +2447,7 @@ module Google
2464
2447
  # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentShardInfo]
2465
2448
  attr_accessor :shard_info
2466
2449
 
2467
- # UTF-8 encoded text in reading order from the document.
2450
+ # Optional. UTF-8 encoded text in reading order from the document.
2468
2451
  # Corresponds to the JSON property `text`
2469
2452
  # @return [String]
2470
2453
  attr_accessor :text
@@ -2481,16 +2464,10 @@ module Google
2481
2464
  # @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentStyle>]
2482
2465
  attr_accessor :text_styles
2483
2466
 
2484
- # A list of translations on Document.text. For document shards, translations in
2485
- # this list may cross shard boundaries.
2486
- # Corresponds to the JSON property `translations`
2487
- # @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentTranslation>]
2488
- attr_accessor :translations
2489
-
2490
- # Currently supports Google Cloud Storage URI of the form `gs://bucket_name/
2491
- # object_name`. Object versioning is not supported. See [Google Cloud Storage
2492
- # Request URIs](https://cloud.google.com/storage/docs/reference-uris) for more
2493
- # info.
2467
+ # Optional. Currently supports Google Cloud Storage URI of the form `gs://
2468
+ # bucket_name/object_name`. Object versioning is not supported. See [Google
2469
+ # Cloud Storage Request URIs](https://cloud.google.com/storage/docs/reference-
2470
+ # uris) for more info.
2494
2471
  # Corresponds to the JSON property `uri`
2495
2472
  # @return [String]
2496
2473
  attr_accessor :uri
@@ -2513,7 +2490,6 @@ module Google
2513
2490
  @text = args[:text] if args.key?(:text)
2514
2491
  @text_changes = args[:text_changes] if args.key?(:text_changes)
2515
2492
  @text_styles = args[:text_styles] if args.key?(:text_styles)
2516
- @translations = args[:translations] if args.key?(:translations)
2517
2493
  @uri = args[:uri] if args.key?(:uri)
2518
2494
  end
2519
2495
  end
@@ -2534,12 +2510,12 @@ module Google
2534
2510
  # @return [String]
2535
2511
  attr_accessor :id
2536
2512
 
2537
- # Deprecated. Use `id` field instead.
2513
+ # Optional. Deprecated. Use `id` field instead.
2538
2514
  # Corresponds to the JSON property `mentionId`
2539
2515
  # @return [String]
2540
2516
  attr_accessor :mention_id
2541
2517
 
2542
- # Text value in the document e.g. `1600 Amphitheatre Pkwy`.
2518
+ # Optional. Text value in the document e.g. `1600 Amphitheatre Pkwy`.
2543
2519
  # Corresponds to the JSON property `mentionText`
2544
2520
  # @return [String]
2545
2521
  attr_accessor :mention_text
@@ -2622,6 +2598,12 @@ module Google
2622
2598
  # @return [Google::Apis::DocumentaiV1beta3::GoogleTypePostalAddress]
2623
2599
  attr_accessor :address_value
2624
2600
 
2601
+ # Boolean value. Can be used for entities with binary values, or for checkboxes.
2602
+ # Corresponds to the JSON property `booleanValue`
2603
+ # @return [Boolean]
2604
+ attr_accessor :boolean_value
2605
+ alias_method :boolean_value?, :boolean_value
2606
+
2625
2607
  # Represents a whole or partial calendar date, such as a birthday. The time of
2626
2608
  # day and time zone are either specified elsewhere or are insignificant. The
2627
2609
  # date is relative to the Gregorian Calendar. This can represent one of the
@@ -2674,6 +2656,7 @@ module Google
2674
2656
  # Update properties of this object
2675
2657
  def update!(**args)
2676
2658
  @address_value = args[:address_value] if args.key?(:address_value)
2659
+ @boolean_value = args[:boolean_value] if args.key?(:boolean_value)
2677
2660
  @date_value = args[:date_value] if args.key?(:date_value)
2678
2661
  @datetime_value = args[:datetime_value] if args.key?(:datetime_value)
2679
2662
  @money_value = args[:money_value] if args.key?(:money_value)
@@ -3837,44 +3820,6 @@ module Google
3837
3820
  end
3838
3821
  end
3839
3822
 
3840
- # A translation of the text segment.
3841
- class GoogleCloudDocumentaiV1beta2DocumentTranslation
3842
- include Google::Apis::Core::Hashable
3843
-
3844
- # The BCP-47 language code, such as "en-US" or "sr-Latn". For more information,
3845
- # see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
3846
- # Corresponds to the JSON property `languageCode`
3847
- # @return [String]
3848
- attr_accessor :language_code
3849
-
3850
- # The history of this annotation.
3851
- # Corresponds to the JSON property `provenance`
3852
- # @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentProvenance>]
3853
- attr_accessor :provenance
3854
-
3855
- # Text reference indexing into the Document.text.
3856
- # Corresponds to the JSON property `textAnchor`
3857
- # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentTextAnchor]
3858
- attr_accessor :text_anchor
3859
-
3860
- # Text translated into the target language.
3861
- # Corresponds to the JSON property `translatedText`
3862
- # @return [String]
3863
- attr_accessor :translated_text
3864
-
3865
- def initialize(**args)
3866
- update!(**args)
3867
- end
3868
-
3869
- # Update properties of this object
3870
- def update!(**args)
3871
- @language_code = args[:language_code] if args.key?(:language_code)
3872
- @provenance = args[:provenance] if args.key?(:provenance)
3873
- @text_anchor = args[:text_anchor] if args.key?(:text_anchor)
3874
- @translated_text = args[:translated_text] if args.key?(:translated_text)
3875
- end
3876
- end
3877
-
3878
3823
  # The Google Cloud Storage location where the output file will be written to.
3879
3824
  class GoogleCloudDocumentaiV1beta2GcsDestination
3880
3825
  include Google::Apis::Core::Hashable
@@ -4098,6 +4043,31 @@ module Google
4098
4043
  end
4099
4044
  end
4100
4045
 
4046
+ # The common config to specify a set of documents used as input.
4047
+ class GoogleCloudDocumentaiV1beta3BatchDocumentsInputConfig
4048
+ include Google::Apis::Core::Hashable
4049
+
4050
+ # Specifies a set of documents on Cloud Storage.
4051
+ # Corresponds to the JSON property `gcsDocuments`
4052
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3GcsDocuments]
4053
+ attr_accessor :gcs_documents
4054
+
4055
+ # Specifies all documents on Cloud Storage with a common prefix.
4056
+ # Corresponds to the JSON property `gcsPrefix`
4057
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3GcsPrefix]
4058
+ attr_accessor :gcs_prefix
4059
+
4060
+ def initialize(**args)
4061
+ update!(**args)
4062
+ end
4063
+
4064
+ # Update properties of this object
4065
+ def update!(**args)
4066
+ @gcs_documents = args[:gcs_documents] if args.key?(:gcs_documents)
4067
+ @gcs_prefix = args[:gcs_prefix] if args.key?(:gcs_prefix)
4068
+ end
4069
+ end
4070
+
4101
4071
  # The long running operation metadata for batch process method.
4102
4072
  class GoogleCloudDocumentaiV1beta3BatchProcessMetadata
4103
4073
  include Google::Apis::Core::Hashable
@@ -4154,6 +4124,11 @@ module Google
4154
4124
  # @return [String]
4155
4125
  attr_accessor :human_review_operation
4156
4126
 
4127
+ # The status of human review on a processed document.
4128
+ # Corresponds to the JSON property `humanReviewStatus`
4129
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3HumanReviewStatus]
4130
+ attr_accessor :human_review_status
4131
+
4157
4132
  # The source of the document, same as the [input_gcs_source] field in the
4158
4133
  # request when the batch process started. The batch process is started by take
4159
4134
  # snapshot of that document, since a user can move or change that document
@@ -4185,6 +4160,7 @@ module Google
4185
4160
  # Update properties of this object
4186
4161
  def update!(**args)
4187
4162
  @human_review_operation = args[:human_review_operation] if args.key?(:human_review_operation)
4163
+ @human_review_status = args[:human_review_status] if args.key?(:human_review_status)
4188
4164
  @input_gcs_source = args[:input_gcs_source] if args.key?(:input_gcs_source)
4189
4165
  @output_gcs_destination = args[:output_gcs_destination] if args.key?(:output_gcs_destination)
4190
4166
  @status = args[:status] if args.key?(:status)
@@ -4195,24 +4171,45 @@ module Google
4195
4171
  class GoogleCloudDocumentaiV1beta3BatchProcessRequest
4196
4172
  include Google::Apis::Core::Hashable
4197
4173
 
4174
+ # Config that controls the output of documents. All documents will be written as
4175
+ # a JSON file.
4176
+ # Corresponds to the JSON property `documentOutputConfig`
4177
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentOutputConfig]
4178
+ attr_accessor :document_output_config
4179
+
4198
4180
  # The input config for each single document in the batch process.
4199
4181
  # Corresponds to the JSON property `inputConfigs`
4200
4182
  # @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchInputConfig>]
4201
4183
  attr_accessor :input_configs
4202
4184
 
4185
+ # The common config to specify a set of documents used as input.
4186
+ # Corresponds to the JSON property `inputDocuments`
4187
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3BatchDocumentsInputConfig]
4188
+ attr_accessor :input_documents
4189
+
4203
4190
  # The message for output config in batch process.
4204
4191
  # Corresponds to the JSON property `outputConfig`
4205
4192
  # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchOutputConfig]
4206
4193
  attr_accessor :output_config
4207
4194
 
4195
+ # Whether Human Review feature should be skipped for this request. Default to
4196
+ # false.
4197
+ # Corresponds to the JSON property `skipHumanReview`
4198
+ # @return [Boolean]
4199
+ attr_accessor :skip_human_review
4200
+ alias_method :skip_human_review?, :skip_human_review
4201
+
4208
4202
  def initialize(**args)
4209
4203
  update!(**args)
4210
4204
  end
4211
4205
 
4212
4206
  # Update properties of this object
4213
4207
  def update!(**args)
4208
+ @document_output_config = args[:document_output_config] if args.key?(:document_output_config)
4214
4209
  @input_configs = args[:input_configs] if args.key?(:input_configs)
4210
+ @input_documents = args[:input_documents] if args.key?(:input_documents)
4215
4211
  @output_config = args[:output_config] if args.key?(:output_config)
4212
+ @skip_human_review = args[:skip_human_review] if args.key?(:skip_human_review)
4216
4213
  end
4217
4214
  end
4218
4215
 
@@ -4344,9 +4341,9 @@ module Google
4344
4341
  class GoogleCloudDocumentaiV1beta3Document
4345
4342
  include Google::Apis::Core::Hashable
4346
4343
 
4347
- # Inline document content, represented as a stream of bytes. Note: As with all `
4348
- # bytes` fields, protobuffers use a pure binary representation, whereas JSON
4349
- # representations use base64.
4344
+ # Optional. Inline document content, represented as a stream of bytes. Note: As
4345
+ # with all `bytes` fields, protobuffers use a pure binary representation,
4346
+ # whereas JSON representations use base64.
4350
4347
  # Corresponds to the JSON property `content`
4351
4348
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
4352
4349
  # @return [String]
@@ -4396,7 +4393,7 @@ module Google
4396
4393
  # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentShardInfo]
4397
4394
  attr_accessor :shard_info
4398
4395
 
4399
- # UTF-8 encoded text in reading order from the document.
4396
+ # Optional. UTF-8 encoded text in reading order from the document.
4400
4397
  # Corresponds to the JSON property `text`
4401
4398
  # @return [String]
4402
4399
  attr_accessor :text
@@ -4413,16 +4410,10 @@ module Google
4413
4410
  # @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentStyle>]
4414
4411
  attr_accessor :text_styles
4415
4412
 
4416
- # A list of translations on Document.text. For document shards, translations in
4417
- # this list may cross shard boundaries.
4418
- # Corresponds to the JSON property `translations`
4419
- # @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentTranslation>]
4420
- attr_accessor :translations
4421
-
4422
- # Currently supports Google Cloud Storage URI of the form `gs://bucket_name/
4423
- # object_name`. Object versioning is not supported. See [Google Cloud Storage
4424
- # Request URIs](https://cloud.google.com/storage/docs/reference-uris) for more
4425
- # info.
4413
+ # Optional. Currently supports Google Cloud Storage URI of the form `gs://
4414
+ # bucket_name/object_name`. Object versioning is not supported. See [Google
4415
+ # Cloud Storage Request URIs](https://cloud.google.com/storage/docs/reference-
4416
+ # uris) for more info.
4426
4417
  # Corresponds to the JSON property `uri`
4427
4418
  # @return [String]
4428
4419
  attr_accessor :uri
@@ -4444,7 +4435,6 @@ module Google
4444
4435
  @text = args[:text] if args.key?(:text)
4445
4436
  @text_changes = args[:text_changes] if args.key?(:text_changes)
4446
4437
  @text_styles = args[:text_styles] if args.key?(:text_styles)
4447
- @translations = args[:translations] if args.key?(:translations)
4448
4438
  @uri = args[:uri] if args.key?(:uri)
4449
4439
  end
4450
4440
  end
@@ -4465,12 +4455,12 @@ module Google
4465
4455
  # @return [String]
4466
4456
  attr_accessor :id
4467
4457
 
4468
- # Deprecated. Use `id` field instead.
4458
+ # Optional. Deprecated. Use `id` field instead.
4469
4459
  # Corresponds to the JSON property `mentionId`
4470
4460
  # @return [String]
4471
4461
  attr_accessor :mention_id
4472
4462
 
4473
- # Text value in the document e.g. `1600 Amphitheatre Pkwy`.
4463
+ # Optional. Text value in the document e.g. `1600 Amphitheatre Pkwy`.
4474
4464
  # Corresponds to the JSON property `mentionText`
4475
4465
  # @return [String]
4476
4466
  attr_accessor :mention_text
@@ -4553,6 +4543,12 @@ module Google
4553
4543
  # @return [Google::Apis::DocumentaiV1beta3::GoogleTypePostalAddress]
4554
4544
  attr_accessor :address_value
4555
4545
 
4546
+ # Boolean value. Can be used for entities with binary values, or for checkboxes.
4547
+ # Corresponds to the JSON property `booleanValue`
4548
+ # @return [Boolean]
4549
+ attr_accessor :boolean_value
4550
+ alias_method :boolean_value?, :boolean_value
4551
+
4556
4552
  # Represents a whole or partial calendar date, such as a birthday. The time of
4557
4553
  # day and time zone are either specified elsewhere or are insignificant. The
4558
4554
  # date is relative to the Gregorian Calendar. This can represent one of the
@@ -4605,6 +4601,7 @@ module Google
4605
4601
  # Update properties of this object
4606
4602
  def update!(**args)
4607
4603
  @address_value = args[:address_value] if args.key?(:address_value)
4604
+ @boolean_value = args[:boolean_value] if args.key?(:boolean_value)
4608
4605
  @date_value = args[:date_value] if args.key?(:date_value)
4609
4606
  @datetime_value = args[:datetime_value] if args.key?(:datetime_value)
4610
4607
  @money_value = args[:money_value] if args.key?(:money_value)
@@ -4643,6 +4640,45 @@ module Google
4643
4640
  end
4644
4641
  end
4645
4642
 
4643
+ # Config that controls the output of documents. All documents will be written as
4644
+ # a JSON file.
4645
+ class GoogleCloudDocumentaiV1beta3DocumentOutputConfig
4646
+ include Google::Apis::Core::Hashable
4647
+
4648
+ # The configuration used when outputting documents.
4649
+ # Corresponds to the JSON property `gcsOutputConfig`
4650
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentOutputConfigGcsOutputConfig]
4651
+ attr_accessor :gcs_output_config
4652
+
4653
+ def initialize(**args)
4654
+ update!(**args)
4655
+ end
4656
+
4657
+ # Update properties of this object
4658
+ def update!(**args)
4659
+ @gcs_output_config = args[:gcs_output_config] if args.key?(:gcs_output_config)
4660
+ end
4661
+ end
4662
+
4663
+ # The configuration used when outputting documents.
4664
+ class GoogleCloudDocumentaiV1beta3DocumentOutputConfigGcsOutputConfig
4665
+ include Google::Apis::Core::Hashable
4666
+
4667
+ # The Cloud Storage uri (a directory) of the output.
4668
+ # Corresponds to the JSON property `gcsUri`
4669
+ # @return [String]
4670
+ attr_accessor :gcs_uri
4671
+
4672
+ def initialize(**args)
4673
+ update!(**args)
4674
+ end
4675
+
4676
+ # Update properties of this object
4677
+ def update!(**args)
4678
+ @gcs_uri = args[:gcs_uri] if args.key?(:gcs_uri)
4679
+ end
4680
+ end
4681
+
4646
4682
  # A page in a Document.
4647
4683
  class GoogleCloudDocumentaiV1beta3DocumentPage
4648
4684
  include Google::Apis::Core::Hashable
@@ -5731,30 +5767,58 @@ module Google
5731
5767
  end
5732
5768
  end
5733
5769
 
5734
- # A translation of the text segment.
5735
- class GoogleCloudDocumentaiV1beta3DocumentTranslation
5770
+ # Specifies a document stored on Cloud Storage.
5771
+ class GoogleCloudDocumentaiV1beta3GcsDocument
5736
5772
  include Google::Apis::Core::Hashable
5737
5773
 
5738
- # The BCP-47 language code, such as "en-US" or "sr-Latn". For more information,
5739
- # see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
5740
- # Corresponds to the JSON property `languageCode`
5774
+ # The Cloud Storage object uri.
5775
+ # Corresponds to the JSON property `gcsUri`
5741
5776
  # @return [String]
5742
- attr_accessor :language_code
5777
+ attr_accessor :gcs_uri
5743
5778
 
5744
- # The history of this annotation.
5745
- # Corresponds to the JSON property `provenance`
5746
- # @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentProvenance>]
5747
- attr_accessor :provenance
5779
+ # An IANA MIME type (RFC6838) of the content.
5780
+ # Corresponds to the JSON property `mimeType`
5781
+ # @return [String]
5782
+ attr_accessor :mime_type
5748
5783
 
5749
- # Text reference indexing into the Document.text.
5750
- # Corresponds to the JSON property `textAnchor`
5751
- # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentTextAnchor]
5752
- attr_accessor :text_anchor
5784
+ def initialize(**args)
5785
+ update!(**args)
5786
+ end
5753
5787
 
5754
- # Text translated into the target language.
5755
- # Corresponds to the JSON property `translatedText`
5788
+ # Update properties of this object
5789
+ def update!(**args)
5790
+ @gcs_uri = args[:gcs_uri] if args.key?(:gcs_uri)
5791
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
5792
+ end
5793
+ end
5794
+
5795
+ # Specifies a set of documents on Cloud Storage.
5796
+ class GoogleCloudDocumentaiV1beta3GcsDocuments
5797
+ include Google::Apis::Core::Hashable
5798
+
5799
+ # The list of documents.
5800
+ # Corresponds to the JSON property `documents`
5801
+ # @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3GcsDocument>]
5802
+ attr_accessor :documents
5803
+
5804
+ def initialize(**args)
5805
+ update!(**args)
5806
+ end
5807
+
5808
+ # Update properties of this object
5809
+ def update!(**args)
5810
+ @documents = args[:documents] if args.key?(:documents)
5811
+ end
5812
+ end
5813
+
5814
+ # Specifies all documents on Cloud Storage with a common prefix.
5815
+ class GoogleCloudDocumentaiV1beta3GcsPrefix
5816
+ include Google::Apis::Core::Hashable
5817
+
5818
+ # The URI prefix.
5819
+ # Corresponds to the JSON property `gcsUriPrefix`
5756
5820
  # @return [String]
5757
- attr_accessor :translated_text
5821
+ attr_accessor :gcs_uri_prefix
5758
5822
 
5759
5823
  def initialize(**args)
5760
5824
  update!(**args)
@@ -5762,10 +5826,41 @@ module Google
5762
5826
 
5763
5827
  # Update properties of this object
5764
5828
  def update!(**args)
5765
- @language_code = args[:language_code] if args.key?(:language_code)
5766
- @provenance = args[:provenance] if args.key?(:provenance)
5767
- @text_anchor = args[:text_anchor] if args.key?(:text_anchor)
5768
- @translated_text = args[:translated_text] if args.key?(:translated_text)
5829
+ @gcs_uri_prefix = args[:gcs_uri_prefix] if args.key?(:gcs_uri_prefix)
5830
+ end
5831
+ end
5832
+
5833
+ # The status of human review on a processed document.
5834
+ class GoogleCloudDocumentaiV1beta3HumanReviewStatus
5835
+ include Google::Apis::Core::Hashable
5836
+
5837
+ # The name of the operation triggered by the processed document. This field is
5838
+ # populated only when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has the same
5839
+ # response type and metadata as the long running operation returned by [
5840
+ # ReviewDocument] method.
5841
+ # Corresponds to the JSON property `humanReviewOperation`
5842
+ # @return [String]
5843
+ attr_accessor :human_review_operation
5844
+
5845
+ # The state of human review on the processing request.
5846
+ # Corresponds to the JSON property `state`
5847
+ # @return [String]
5848
+ attr_accessor :state
5849
+
5850
+ # A message providing more details about the human review state.
5851
+ # Corresponds to the JSON property `stateMessage`
5852
+ # @return [String]
5853
+ attr_accessor :state_message
5854
+
5855
+ def initialize(**args)
5856
+ update!(**args)
5857
+ end
5858
+
5859
+ # Update properties of this object
5860
+ def update!(**args)
5861
+ @human_review_operation = args[:human_review_operation] if args.key?(:human_review_operation)
5862
+ @state = args[:state] if args.key?(:state)
5863
+ @state_message = args[:state_message] if args.key?(:state_message)
5769
5864
  end
5770
5865
  end
5771
5866
 
@@ -5807,6 +5902,19 @@ module Google
5807
5902
  # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Document]
5808
5903
  attr_accessor :document
5809
5904
 
5905
+ # Document represents the canonical document resource in Document Understanding
5906
+ # AI. It is an interchange format that provides insights into documents and
5907
+ # allows for collaboration between users and Document Understanding AI to
5908
+ # iterate and optimize for quality.
5909
+ # Corresponds to the JSON property `inlineDocument`
5910
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Document]
5911
+ attr_accessor :inline_document
5912
+
5913
+ # Payload message of raw document content (bytes).
5914
+ # Corresponds to the JSON property `rawDocument`
5915
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3RawDocument]
5916
+ attr_accessor :raw_document
5917
+
5810
5918
  # Whether Human Review feature should be skipped for this request. Default to
5811
5919
  # false.
5812
5920
  # Corresponds to the JSON property `skipHumanReview`
@@ -5821,6 +5929,8 @@ module Google
5821
5929
  # Update properties of this object
5822
5930
  def update!(**args)
5823
5931
  @document = args[:document] if args.key?(:document)
5932
+ @inline_document = args[:inline_document] if args.key?(:inline_document)
5933
+ @raw_document = args[:raw_document] if args.key?(:raw_document)
5824
5934
  @skip_human_review = args[:skip_human_review] if args.key?(:skip_human_review)
5825
5935
  end
5826
5936
  end
@@ -5845,6 +5955,11 @@ module Google
5845
5955
  # @return [String]
5846
5956
  attr_accessor :human_review_operation
5847
5957
 
5958
+ # The status of human review on a processed document.
5959
+ # Corresponds to the JSON property `humanReviewStatus`
5960
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3HumanReviewStatus]
5961
+ attr_accessor :human_review_status
5962
+
5848
5963
  def initialize(**args)
5849
5964
  update!(**args)
5850
5965
  end
@@ -5853,6 +5968,33 @@ module Google
5853
5968
  def update!(**args)
5854
5969
  @document = args[:document] if args.key?(:document)
5855
5970
  @human_review_operation = args[:human_review_operation] if args.key?(:human_review_operation)
5971
+ @human_review_status = args[:human_review_status] if args.key?(:human_review_status)
5972
+ end
5973
+ end
5974
+
5975
+ # Payload message of raw document content (bytes).
5976
+ class GoogleCloudDocumentaiV1beta3RawDocument
5977
+ include Google::Apis::Core::Hashable
5978
+
5979
+ # Inline document content.
5980
+ # Corresponds to the JSON property `content`
5981
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
5982
+ # @return [String]
5983
+ attr_accessor :content
5984
+
5985
+ # An IANA MIME type (RFC6838) indicating the nature and format of the [content].
5986
+ # Corresponds to the JSON property `mimeType`
5987
+ # @return [String]
5988
+ attr_accessor :mime_type
5989
+
5990
+ def initialize(**args)
5991
+ update!(**args)
5992
+ end
5993
+
5994
+ # Update properties of this object
5995
+ def update!(**args)
5996
+ @content = args[:content] if args.key?(:content)
5997
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
5856
5998
  end
5857
5999
  end
5858
6000
 
@@ -5912,6 +6054,14 @@ module Google
5912
6054
  # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Document]
5913
6055
  attr_accessor :document
5914
6056
 
6057
+ # Document represents the canonical document resource in Document Understanding
6058
+ # AI. It is an interchange format that provides insights into documents and
6059
+ # allows for collaboration between users and Document Understanding AI to
6060
+ # iterate and optimize for quality.
6061
+ # Corresponds to the JSON property `inlineDocument`
6062
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Document]
6063
+ attr_accessor :inline_document
6064
+
5915
6065
  def initialize(**args)
5916
6066
  update!(**args)
5917
6067
  end
@@ -5919,6 +6069,7 @@ module Google
5919
6069
  # Update properties of this object
5920
6070
  def update!(**args)
5921
6071
  @document = args[:document] if args.key?(:document)
6072
+ @inline_document = args[:inline_document] if args.key?(:inline_document)
5922
6073
  end
5923
6074
  end
5924
6075