google-apis-documentai_v1beta2 0.1.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 498f628957dbb456e810763a9623bc3a174c0ad93fbac5583dce1a691cd8b581
4
- data.tar.gz: 984f0f3c1dc4340c83d67f21219356c58d56cdb0946ce68e0815381b7ca9555f
3
+ metadata.gz: 0a6867f3d5e5f32a1fa933ec0bac6ce6698b2e3447cca0c7e585e5f8a2e40aff
4
+ data.tar.gz: 4d8ef32531afab339eb91c30984b86e7e9a7d2462228cb83d05771d31ba2e02b
5
5
  SHA512:
6
- metadata.gz: 6ac5a72b381d5de35168fc7a85ea44fdabb17f5bff3ff99f23fd4c3adcec2c3132357f270aaf5bb14833eb6de52ceaed610d2972f1ec438a29baf14ae1617445
7
- data.tar.gz: 9d810dd62687a26d2174c1169cf23f009f7606a231ca88b273bd7660852596f337d23b32b9043b0e317ec5dc963b6eee9f0a235b6ff97fb733c6e65d047d7c67
6
+ metadata.gz: 694b342cf80e1d162c0a5b2b5a9c10342c77391303091ea5668f15566d790d92d45a92219eaff18dbf23ca617f537e050144c9d64338c0de2ed7f130c42a370b
7
+ data.tar.gz: b71e60079085a90ed4310410d06bc6b73c28f7f58e55aba579cf15751a9863619b32076f21318937da031483736f0f810c83f2b66f28b12b77aa3aae59735b24
data/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Release history for google-apis-documentai_v1beta2
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::DocumentaiV1beta2::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::DocumentaiV1beta2::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::DocumentaiV1beta2::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::DocumentaiV1beta2::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::DocumentaiV1beta2::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::DocumentaiV1beta2::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::DocumentaiV1beta2::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::DocumentaiV1beta2::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::DocumentaiV1beta2::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::DocumentaiV1beta2::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::DocumentaiV1beta2::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::DocumentaiV1beta2::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::DocumentaiV1beta2::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::DocumentaiV1beta2::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::DocumentaiV1beta2::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::DocumentaiV1beta2::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::DocumentaiV1beta2::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::DocumentaiV1beta2::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::DocumentaiV1beta2::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
@@ -2447,9 +2430,9 @@ module Google
2447
2430
  class GoogleCloudDocumentaiV1beta2Document
2448
2431
  include Google::Apis::Core::Hashable
2449
2432
 
2450
- # Inline document content, represented as a stream of bytes. Note: As with all `
2451
- # bytes` fields, protobuffers use a pure binary representation, whereas JSON
2452
- # representations use base64.
2433
+ # Optional. Inline document content, represented as a stream of bytes. Note: As
2434
+ # with all `bytes` fields, protobuffers use a pure binary representation,
2435
+ # whereas JSON representations use base64.
2453
2436
  # Corresponds to the JSON property `content`
2454
2437
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
2455
2438
  # @return [String]
@@ -2504,7 +2487,7 @@ module Google
2504
2487
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentShardInfo]
2505
2488
  attr_accessor :shard_info
2506
2489
 
2507
- # UTF-8 encoded text in reading order from the document.
2490
+ # Optional. UTF-8 encoded text in reading order from the document.
2508
2491
  # Corresponds to the JSON property `text`
2509
2492
  # @return [String]
2510
2493
  attr_accessor :text
@@ -2521,16 +2504,10 @@ module Google
2521
2504
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentStyle>]
2522
2505
  attr_accessor :text_styles
2523
2506
 
2524
- # A list of translations on Document.text. For document shards, translations in
2525
- # this list may cross shard boundaries.
2526
- # Corresponds to the JSON property `translations`
2527
- # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentTranslation>]
2528
- attr_accessor :translations
2529
-
2530
- # Currently supports Google Cloud Storage URI of the form `gs://bucket_name/
2531
- # object_name`. Object versioning is not supported. See [Google Cloud Storage
2532
- # Request URIs](https://cloud.google.com/storage/docs/reference-uris) for more
2533
- # info.
2507
+ # Optional. Currently supports Google Cloud Storage URI of the form `gs://
2508
+ # bucket_name/object_name`. Object versioning is not supported. See [Google
2509
+ # Cloud Storage Request URIs](https://cloud.google.com/storage/docs/reference-
2510
+ # uris) for more info.
2534
2511
  # Corresponds to the JSON property `uri`
2535
2512
  # @return [String]
2536
2513
  attr_accessor :uri
@@ -2553,7 +2530,6 @@ module Google
2553
2530
  @text = args[:text] if args.key?(:text)
2554
2531
  @text_changes = args[:text_changes] if args.key?(:text_changes)
2555
2532
  @text_styles = args[:text_styles] if args.key?(:text_styles)
2556
- @translations = args[:translations] if args.key?(:translations)
2557
2533
  @uri = args[:uri] if args.key?(:uri)
2558
2534
  end
2559
2535
  end
@@ -2574,12 +2550,12 @@ module Google
2574
2550
  # @return [String]
2575
2551
  attr_accessor :id
2576
2552
 
2577
- # Deprecated. Use `id` field instead.
2553
+ # Optional. Deprecated. Use `id` field instead.
2578
2554
  # Corresponds to the JSON property `mentionId`
2579
2555
  # @return [String]
2580
2556
  attr_accessor :mention_id
2581
2557
 
2582
- # Text value in the document e.g. `1600 Amphitheatre Pkwy`.
2558
+ # Optional. Text value in the document e.g. `1600 Amphitheatre Pkwy`.
2583
2559
  # Corresponds to the JSON property `mentionText`
2584
2560
  # @return [String]
2585
2561
  attr_accessor :mention_text
@@ -2662,6 +2638,12 @@ module Google
2662
2638
  # @return [Google::Apis::DocumentaiV1beta2::GoogleTypePostalAddress]
2663
2639
  attr_accessor :address_value
2664
2640
 
2641
+ # Boolean value. Can be used for entities with binary values, or for checkboxes.
2642
+ # Corresponds to the JSON property `booleanValue`
2643
+ # @return [Boolean]
2644
+ attr_accessor :boolean_value
2645
+ alias_method :boolean_value?, :boolean_value
2646
+
2665
2647
  # Represents a whole or partial calendar date, such as a birthday. The time of
2666
2648
  # day and time zone are either specified elsewhere or are insignificant. The
2667
2649
  # date is relative to the Gregorian Calendar. This can represent one of the
@@ -2714,6 +2696,7 @@ module Google
2714
2696
  # Update properties of this object
2715
2697
  def update!(**args)
2716
2698
  @address_value = args[:address_value] if args.key?(:address_value)
2699
+ @boolean_value = args[:boolean_value] if args.key?(:boolean_value)
2717
2700
  @date_value = args[:date_value] if args.key?(:date_value)
2718
2701
  @datetime_value = args[:datetime_value] if args.key?(:datetime_value)
2719
2702
  @money_value = args[:money_value] if args.key?(:money_value)
@@ -3877,44 +3860,6 @@ module Google
3877
3860
  end
3878
3861
  end
3879
3862
 
3880
- # A translation of the text segment.
3881
- class GoogleCloudDocumentaiV1beta2DocumentTranslation
3882
- include Google::Apis::Core::Hashable
3883
-
3884
- # The BCP-47 language code, such as "en-US" or "sr-Latn". For more information,
3885
- # see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
3886
- # Corresponds to the JSON property `languageCode`
3887
- # @return [String]
3888
- attr_accessor :language_code
3889
-
3890
- # The history of this annotation.
3891
- # Corresponds to the JSON property `provenance`
3892
- # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentProvenance>]
3893
- attr_accessor :provenance
3894
-
3895
- # Text reference indexing into the Document.text.
3896
- # Corresponds to the JSON property `textAnchor`
3897
- # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentTextAnchor]
3898
- attr_accessor :text_anchor
3899
-
3900
- # Text translated into the target language.
3901
- # Corresponds to the JSON property `translatedText`
3902
- # @return [String]
3903
- attr_accessor :translated_text
3904
-
3905
- def initialize(**args)
3906
- update!(**args)
3907
- end
3908
-
3909
- # Update properties of this object
3910
- def update!(**args)
3911
- @language_code = args[:language_code] if args.key?(:language_code)
3912
- @provenance = args[:provenance] if args.key?(:provenance)
3913
- @text_anchor = args[:text_anchor] if args.key?(:text_anchor)
3914
- @translated_text = args[:translated_text] if args.key?(:translated_text)
3915
- end
3916
- end
3917
-
3918
3863
  # Parameters to control entity extraction behavior.
3919
3864
  class GoogleCloudDocumentaiV1beta2EntityExtractionParams
3920
3865
  include Google::Apis::Core::Hashable
@@ -4447,6 +4392,11 @@ module Google
4447
4392
  # @return [String]
4448
4393
  attr_accessor :human_review_operation
4449
4394
 
4395
+ # The status of human review on a processed document.
4396
+ # Corresponds to the JSON property `humanReviewStatus`
4397
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3HumanReviewStatus]
4398
+ attr_accessor :human_review_status
4399
+
4450
4400
  # The source of the document, same as the [input_gcs_source] field in the
4451
4401
  # request when the batch process started. The batch process is started by take
4452
4402
  # snapshot of that document, since a user can move or change that document
@@ -4478,6 +4428,7 @@ module Google
4478
4428
  # Update properties of this object
4479
4429
  def update!(**args)
4480
4430
  @human_review_operation = args[:human_review_operation] if args.key?(:human_review_operation)
4431
+ @human_review_status = args[:human_review_status] if args.key?(:human_review_status)
4481
4432
  @input_gcs_source = args[:input_gcs_source] if args.key?(:input_gcs_source)
4482
4433
  @output_gcs_destination = args[:output_gcs_destination] if args.key?(:output_gcs_destination)
4483
4434
  @status = args[:status] if args.key?(:status)
@@ -4534,6 +4485,40 @@ module Google
4534
4485
  end
4535
4486
  end
4536
4487
 
4488
+ # The status of human review on a processed document.
4489
+ class GoogleCloudDocumentaiV1beta3HumanReviewStatus
4490
+ include Google::Apis::Core::Hashable
4491
+
4492
+ # The name of the operation triggered by the processed document. This field is
4493
+ # populated only when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has the same
4494
+ # response type and metadata as the long running operation returned by [
4495
+ # ReviewDocument] method.
4496
+ # Corresponds to the JSON property `humanReviewOperation`
4497
+ # @return [String]
4498
+ attr_accessor :human_review_operation
4499
+
4500
+ # The state of human review on the processing request.
4501
+ # Corresponds to the JSON property `state`
4502
+ # @return [String]
4503
+ attr_accessor :state
4504
+
4505
+ # A message providing more details about the human review state.
4506
+ # Corresponds to the JSON property `stateMessage`
4507
+ # @return [String]
4508
+ attr_accessor :state_message
4509
+
4510
+ def initialize(**args)
4511
+ update!(**args)
4512
+ end
4513
+
4514
+ # Update properties of this object
4515
+ def update!(**args)
4516
+ @human_review_operation = args[:human_review_operation] if args.key?(:human_review_operation)
4517
+ @state = args[:state] if args.key?(:state)
4518
+ @state_message = args[:state_message] if args.key?(:state_message)
4519
+ end
4520
+ end
4521
+
4537
4522
  # The long running operation metadata for review document method.
4538
4523
  class GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata
4539
4524
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DocumentaiV1beta2
18
18
  # Version of the google-apis-documentai_v1beta2 gem
19
- GEM_VERSION = "0.1.0"
19
+ GEM_VERSION = "0.6.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.1"
22
+ GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20201231"
25
+ REVISION = "20210308"
26
26
  end
27
27
  end
28
28
  end
@@ -88,19 +88,31 @@ module Google
88
88
  include Google::Apis::Core::JsonObjectSupport
89
89
  end
90
90
 
91
- class GoogleCloudDocumentaiUiv1beta3ProcessorVersion
91
+ class GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionMetadata
92
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
93
 
94
94
  include Google::Apis::Core::JsonObjectSupport
95
95
  end
96
96
 
97
- class GoogleCloudDocumentaiUiv1beta3Schema
97
+ class GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionResponse
98
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
99
 
100
100
  include Google::Apis::Core::JsonObjectSupport
101
101
  end
102
102
 
103
- class GoogleCloudDocumentaiUiv1beta3SchemaEntityType
103
+ class GoogleCloudDocumentaiUiv1beta3SampleDatasetMetadata
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionResponse
104
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
117
 
106
118
  include Google::Apis::Core::JsonObjectSupport
@@ -112,6 +124,12 @@ module Google
112
124
  include Google::Apis::Core::JsonObjectSupport
113
125
  end
114
126
 
127
+ class GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
115
133
  class GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionResponse
116
134
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
135
 
@@ -166,6 +184,12 @@ module Google
166
184
  include Google::Apis::Core::JsonObjectSupport
167
185
  end
168
186
 
187
+ class GoogleCloudDocumentaiV1HumanReviewStatus
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
169
193
  class GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata
170
194
  class Representation < Google::Apis::Core::JsonRepresentation; end
171
195
 
@@ -382,12 +406,6 @@ module Google
382
406
  include Google::Apis::Core::JsonObjectSupport
383
407
  end
384
408
 
385
- class GoogleCloudDocumentaiV1beta1DocumentTranslation
386
- class Representation < Google::Apis::Core::JsonRepresentation; end
387
-
388
- include Google::Apis::Core::JsonObjectSupport
389
- end
390
-
391
409
  class GoogleCloudDocumentaiV1beta1GcsDestination
392
410
  class Representation < Google::Apis::Core::JsonRepresentation; end
393
411
 
@@ -658,12 +676,6 @@ module Google
658
676
  include Google::Apis::Core::JsonObjectSupport
659
677
  end
660
678
 
661
- class GoogleCloudDocumentaiV1beta2DocumentTranslation
662
- class Representation < Google::Apis::Core::JsonRepresentation; end
663
-
664
- include Google::Apis::Core::JsonObjectSupport
665
- end
666
-
667
679
  class GoogleCloudDocumentaiV1beta2EntityExtractionParams
668
680
  class Representation < Google::Apis::Core::JsonRepresentation; end
669
681
 
@@ -778,6 +790,12 @@ module Google
778
790
  include Google::Apis::Core::JsonObjectSupport
779
791
  end
780
792
 
793
+ class GoogleCloudDocumentaiV1beta3HumanReviewStatus
794
+ class Representation < Google::Apis::Core::JsonRepresentation; end
795
+
796
+ include Google::Apis::Core::JsonObjectSupport
797
+ end
798
+
781
799
  class GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata
782
800
  class Representation < Google::Apis::Core::JsonRepresentation; end
783
801
 
@@ -928,38 +946,40 @@ module Google
928
946
  end
929
947
  end
930
948
 
931
- class GoogleCloudDocumentaiUiv1beta3ProcessorVersion
949
+ class GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionMetadata
932
950
  # @private
933
951
  class Representation < Google::Apis::Core::JsonRepresentation
934
- property :create_time, as: 'createTime'
935
- property :display_name, as: 'displayName'
936
- property :name, as: 'name'
937
- property :schema, as: 'schema', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3Schema, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3Schema::Representation
952
+ property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata::Representation
938
953
 
939
- property :state, as: 'state'
940
954
  end
941
955
  end
942
956
 
943
- class GoogleCloudDocumentaiUiv1beta3Schema
957
+ class GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionResponse
944
958
  # @private
945
959
  class Representation < Google::Apis::Core::JsonRepresentation
946
- property :description, as: 'description'
947
- property :display_name, as: 'displayName'
948
- collection :entity_types, as: 'entityTypes', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3SchemaEntityType, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3SchemaEntityType::Representation
960
+ property :evaluation, as: 'evaluation'
961
+ end
962
+ end
963
+
964
+ class GoogleCloudDocumentaiUiv1beta3SampleDatasetMetadata
965
+ # @private
966
+ class Representation < Google::Apis::Core::JsonRepresentation
967
+ property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata::Representation
949
968
 
950
969
  end
951
970
  end
952
971
 
953
- class GoogleCloudDocumentaiUiv1beta3SchemaEntityType
972
+ class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata
954
973
  # @private
955
974
  class Representation < Google::Apis::Core::JsonRepresentation
956
- property :base_type, as: 'baseType'
957
- property :description, as: 'description'
958
- property :occurrence_type, as: 'occurrenceType'
959
- collection :properties, as: 'properties', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3SchemaEntityType, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3SchemaEntityType::Representation
975
+ property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata::Representation
960
976
 
961
- property :source, as: 'source'
962
- property :type, as: 'type'
977
+ end
978
+ end
979
+
980
+ class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionResponse
981
+ # @private
982
+ class Representation < Google::Apis::Core::JsonRepresentation
963
983
  end
964
984
  end
965
985
 
@@ -968,17 +988,30 @@ module Google
968
988
  class Representation < Google::Apis::Core::JsonRepresentation
969
989
  property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata::Representation
970
990
 
991
+ property :test_dataset_validation, as: 'testDatasetValidation', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation::Representation
992
+
993
+ property :training_dataset_validation, as: 'trainingDatasetValidation', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation::Representation
994
+
971
995
  end
972
996
  end
973
997
 
974
- class GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionResponse
998
+ class GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation
975
999
  # @private
976
1000
  class Representation < Google::Apis::Core::JsonRepresentation
977
- property :processor_version, as: 'processorVersion', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3ProcessorVersion, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3ProcessorVersion::Representation
1001
+ collection :dataset_errors, as: 'datasetErrors', class: Google::Apis::DocumentaiV1beta2::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1beta2::GoogleRpcStatus::Representation
1002
+
1003
+ collection :document_errors, as: 'documentErrors', class: Google::Apis::DocumentaiV1beta2::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1beta2::GoogleRpcStatus::Representation
978
1004
 
979
1005
  end
980
1006
  end
981
1007
 
1008
+ class GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionResponse
1009
+ # @private
1010
+ class Representation < Google::Apis::Core::JsonRepresentation
1011
+ property :processor_version, as: 'processorVersion'
1012
+ end
1013
+ end
1014
+
982
1015
  class GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionMetadata
983
1016
  # @private
984
1017
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1024,7 +1057,8 @@ module Google
1024
1057
  class GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus
1025
1058
  # @private
1026
1059
  class Representation < Google::Apis::Core::JsonRepresentation
1027
- property :human_review_operation, as: 'humanReviewOperation'
1060
+ property :human_review_status, as: 'humanReviewStatus', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1HumanReviewStatus, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1HumanReviewStatus::Representation
1061
+
1028
1062
  property :input_gcs_source, as: 'inputGcsSource'
1029
1063
  property :output_gcs_destination, as: 'outputGcsDestination'
1030
1064
  property :status, as: 'status', class: Google::Apis::DocumentaiV1beta2::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1beta2::GoogleRpcStatus::Representation
@@ -1048,6 +1082,15 @@ module Google
1048
1082
  end
1049
1083
  end
1050
1084
 
1085
+ class GoogleCloudDocumentaiV1HumanReviewStatus
1086
+ # @private
1087
+ class Representation < Google::Apis::Core::JsonRepresentation
1088
+ property :human_review_operation, as: 'humanReviewOperation'
1089
+ property :state, as: 'state'
1090
+ property :state_message, as: 'stateMessage'
1091
+ end
1092
+ end
1093
+
1051
1094
  class GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata
1052
1095
  # @private
1053
1096
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1103,8 +1146,6 @@ module Google
1103
1146
 
1104
1147
  collection :text_styles, as: 'textStyles', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentStyle, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentStyle::Representation
1105
1148
 
1106
- collection :translations, as: 'translations', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentTranslation, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentTranslation::Representation
1107
-
1108
1149
  property :uri, as: 'uri'
1109
1150
  end
1110
1151
  end
@@ -1136,6 +1177,7 @@ module Google
1136
1177
  class Representation < Google::Apis::Core::JsonRepresentation
1137
1178
  property :address_value, as: 'addressValue', class: Google::Apis::DocumentaiV1beta2::GoogleTypePostalAddress, decorator: Google::Apis::DocumentaiV1beta2::GoogleTypePostalAddress::Representation
1138
1179
 
1180
+ property :boolean_value, as: 'booleanValue'
1139
1181
  property :date_value, as: 'dateValue', class: Google::Apis::DocumentaiV1beta2::GoogleTypeDate, decorator: Google::Apis::DocumentaiV1beta2::GoogleTypeDate::Representation
1140
1182
 
1141
1183
  property :datetime_value, as: 'datetimeValue', class: Google::Apis::DocumentaiV1beta2::GoogleTypeDateTime, decorator: Google::Apis::DocumentaiV1beta2::GoogleTypeDateTime::Representation
@@ -1473,18 +1515,6 @@ module Google
1473
1515
  end
1474
1516
  end
1475
1517
 
1476
- class GoogleCloudDocumentaiV1beta1DocumentTranslation
1477
- # @private
1478
- class Representation < Google::Apis::Core::JsonRepresentation
1479
- property :language_code, as: 'languageCode'
1480
- collection :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentProvenance::Representation
1481
-
1482
- property :text_anchor, as: 'textAnchor', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentTextAnchor, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentTextAnchor::Representation
1483
-
1484
- property :translated_text, as: 'translatedText'
1485
- end
1486
- end
1487
-
1488
1518
  class GoogleCloudDocumentaiV1beta1GcsDestination
1489
1519
  # @private
1490
1520
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1610,8 +1640,6 @@ module Google
1610
1640
 
1611
1641
  collection :text_styles, as: 'textStyles', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentStyle, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentStyle::Representation
1612
1642
 
1613
- collection :translations, as: 'translations', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentTranslation, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentTranslation::Representation
1614
-
1615
1643
  property :uri, as: 'uri'
1616
1644
  end
1617
1645
  end
@@ -1643,6 +1671,7 @@ module Google
1643
1671
  class Representation < Google::Apis::Core::JsonRepresentation
1644
1672
  property :address_value, as: 'addressValue', class: Google::Apis::DocumentaiV1beta2::GoogleTypePostalAddress, decorator: Google::Apis::DocumentaiV1beta2::GoogleTypePostalAddress::Representation
1645
1673
 
1674
+ property :boolean_value, as: 'booleanValue'
1646
1675
  property :date_value, as: 'dateValue', class: Google::Apis::DocumentaiV1beta2::GoogleTypeDate, decorator: Google::Apis::DocumentaiV1beta2::GoogleTypeDate::Representation
1647
1676
 
1648
1677
  property :datetime_value, as: 'datetimeValue', class: Google::Apis::DocumentaiV1beta2::GoogleTypeDateTime, decorator: Google::Apis::DocumentaiV1beta2::GoogleTypeDateTime::Representation
@@ -1989,18 +2018,6 @@ module Google
1989
2018
  end
1990
2019
  end
1991
2020
 
1992
- class GoogleCloudDocumentaiV1beta2DocumentTranslation
1993
- # @private
1994
- class Representation < Google::Apis::Core::JsonRepresentation
1995
- property :language_code, as: 'languageCode'
1996
- collection :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentProvenance::Representation
1997
-
1998
- property :text_anchor, as: 'textAnchor', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentTextAnchor, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentTextAnchor::Representation
1999
-
2000
- property :translated_text, as: 'translatedText'
2001
- end
2002
- end
2003
-
2004
2021
  class GoogleCloudDocumentaiV1beta2EntityExtractionParams
2005
2022
  # @private
2006
2023
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2161,6 +2178,8 @@ module Google
2161
2178
  # @private
2162
2179
  class Representation < Google::Apis::Core::JsonRepresentation
2163
2180
  property :human_review_operation, as: 'humanReviewOperation'
2181
+ property :human_review_status, as: 'humanReviewStatus', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3HumanReviewStatus, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3HumanReviewStatus::Representation
2182
+
2164
2183
  property :input_gcs_source, as: 'inputGcsSource'
2165
2184
  property :output_gcs_destination, as: 'outputGcsDestination'
2166
2185
  property :status, as: 'status', class: Google::Apis::DocumentaiV1beta2::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1beta2::GoogleRpcStatus::Representation
@@ -2184,6 +2203,15 @@ module Google
2184
2203
  end
2185
2204
  end
2186
2205
 
2206
+ class GoogleCloudDocumentaiV1beta3HumanReviewStatus
2207
+ # @private
2208
+ class Representation < Google::Apis::Core::JsonRepresentation
2209
+ property :human_review_operation, as: 'humanReviewOperation'
2210
+ property :state, as: 'state'
2211
+ property :state_message, as: 'stateMessage'
2212
+ end
2213
+ end
2214
+
2187
2215
  class GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata
2188
2216
  # @private
2189
2217
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-documentai_v1beta2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-08 00:00:00.000000000 Z
11
+ date: 2021-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-documentai_v1beta2/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta2/v0.1.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta2/v0.6.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-documentai_v1beta2
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -62,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
62
62
  requirements:
63
63
  - - ">="
64
64
  - !ruby/object:Gem::Version
65
- version: '2.4'
65
+ version: '2.5'
66
66
  required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.1.4
72
+ rubygems_version: 3.2.13
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Cloud Document AI API V1beta2