google-apis-documentai_v1beta2 0.2.0 → 0.7.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: 4084420ad4d1c5ba10422242bf34b34657a608e6a48e7be9d2633f72280d9abf
4
- data.tar.gz: 22ea48df89f154961ed358ecc1554c70c0f1f68f42734634fb54323ff9d370aa
3
+ metadata.gz: 41e1abb01271fd1fc8c7319f8e563556468ecdc689d4c039fb7ac7329ea2df5c
4
+ data.tar.gz: 7d3cab6496982015a9711afdebc2fcd4df27a6454af64a2b5b78794c3453eb47
5
5
  SHA512:
6
- metadata.gz: ee046841db5de36868c93cd734025b627c370425002864d45ba7bb8caac17bc87a61786513bc675b1efe8c809435336bc428fb0fcd0b0bb084071ce8a32fcfc4
7
- data.tar.gz: 4dcab13447f2a6f7cc2d26908bd5d88affe26fc627e1b01c57fe8d0e4ba91abaa224dc15bf0dd3fec61dc1c56493d4a246cff26d029ac4127b66966536a6d3c7
6
+ metadata.gz: de5d00cc82d48b257bebac15ab5f11cb66b58bf131718625088f5be6ac2f9699067cb37186a9e6e17f14a2a8ca407dfbecb93815289d6781c4f538877d310f3a
7
+ data.tar.gz: 633c71ad8a9ff82001b49625ce29a912b9395ca2f6fde07bc4fbc2c544d324cdeeda9fd96200ff759213349db7342809cca4adf08441b99cb732695055b427f0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Release history for google-apis-documentai_v1beta2
2
2
 
3
+ ### v0.7.0 (2021-03-24)
4
+
5
+ * Regenerated from discovery document revision 20210320
6
+
7
+ ### v0.6.0 (2021-03-09)
8
+
9
+ * Regenerated from discovery document revision 20210308
10
+ * Regenerated using generator version 0.2.0
11
+
12
+ ### v0.5.0 (2021-03-04)
13
+
14
+ * Regenerated from discovery document revision 20210226
15
+
16
+ ### v0.4.0 (2021-02-24)
17
+
18
+ * Regenerated from discovery document revision 20210222
19
+
20
+ ### v0.3.0 (2021-02-12)
21
+
22
+ * Regenerated from discovery document revision 20210211
23
+
3
24
  ### v0.2.0 (2021-02-03)
4
25
 
5
26
  * Regenerated from discovery document revision 20210201
@@ -256,9 +256,9 @@ module Google
256
256
  class GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionResponse
257
257
  include Google::Apis::Core::Hashable
258
258
 
259
- # An evaluation of a ProcessorVersion's performance.
259
+ # The resource name of the created evaluation.
260
260
  # Corresponds to the JSON property `evaluation`
261
- # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3Evaluation]
261
+ # @return [String]
262
262
  attr_accessor :evaluation
263
263
 
264
264
  def initialize(**args)
@@ -271,88 +271,14 @@ module Google
271
271
  end
272
272
  end
273
273
 
274
- # An evaluation of a ProcessorVersion's performance.
275
- class GoogleCloudDocumentaiUiv1beta3Evaluation
276
- include Google::Apis::Core::Hashable
277
-
278
- # Metrics across multiple confidence levels.
279
- # Corresponds to the JSON property `allEntitiesMetrics`
280
- # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3EvaluationMultiConfidenceMetrics]
281
- attr_accessor :all_entities_metrics
282
-
283
- # The time that the evaluation was created.
284
- # Corresponds to the JSON property `createTime`
285
- # @return [String]
286
- attr_accessor :create_time
287
-
288
- # Metrics across confidence levels, for different entities.
289
- # Corresponds to the JSON property `entityMetrics`
290
- # @return [Hash<String,Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3EvaluationMultiConfidenceMetrics>]
291
- attr_accessor :entity_metrics
292
-
293
- # The resource name of the evaluation. Format: projects/`project`/locations/`
294
- # location`/processors/`processor`/processorVersions/`processor_version`/
295
- # evaluations/`evaluation`
296
- # Corresponds to the JSON property `name`
297
- # @return [String]
298
- attr_accessor :name
299
-
300
- def initialize(**args)
301
- update!(**args)
302
- end
303
-
304
- # Update properties of this object
305
- def update!(**args)
306
- @all_entities_metrics = args[:all_entities_metrics] if args.key?(:all_entities_metrics)
307
- @create_time = args[:create_time] if args.key?(:create_time)
308
- @entity_metrics = args[:entity_metrics] if args.key?(:entity_metrics)
309
- @name = args[:name] if args.key?(:name)
310
- end
311
- end
312
-
313
- # Evaluations metrics, at a specific confidence level.
314
- class GoogleCloudDocumentaiUiv1beta3EvaluationConfidenceLevelMetrics
315
- include Google::Apis::Core::Hashable
316
-
317
- # The confidence level.
318
- # Corresponds to the JSON property `confidenceLevel`
319
- # @return [Float]
320
- attr_accessor :confidence_level
321
-
322
- # Evaluation metrics, either in aggregate or about a specific entity.
323
- # Corresponds to the JSON property `metrics`
324
- # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3EvaluationMetrics]
325
- attr_accessor :metrics
326
-
327
- def initialize(**args)
328
- update!(**args)
329
- end
330
-
331
- # Update properties of this object
332
- def update!(**args)
333
- @confidence_level = args[:confidence_level] if args.key?(:confidence_level)
334
- @metrics = args[:metrics] if args.key?(:metrics)
335
- end
336
- end
337
-
338
- # Evaluation metrics, either in aggregate or about a specific entity.
339
- class GoogleCloudDocumentaiUiv1beta3EvaluationMetrics
274
+ # The long running operation metadata for SampleDataset.
275
+ class GoogleCloudDocumentaiUiv1beta3SampleDatasetMetadata
340
276
  include Google::Apis::Core::Hashable
341
277
 
342
- # The calculated f1 score.
343
- # Corresponds to the JSON property `f1Score`
344
- # @return [Float]
345
- attr_accessor :f1_score
346
-
347
- # The calculated precision.
348
- # Corresponds to the JSON property `precision`
349
- # @return [Float]
350
- attr_accessor :precision
351
-
352
- # The calculated recall.
353
- # Corresponds to the JSON property `recall`
354
- # @return [Float]
355
- attr_accessor :recall
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
356
282
 
357
283
  def initialize(**args)
358
284
  update!(**args)
@@ -360,20 +286,18 @@ module Google
360
286
 
361
287
  # Update properties of this object
362
288
  def update!(**args)
363
- @f1_score = args[:f1_score] if args.key?(:f1_score)
364
- @precision = args[:precision] if args.key?(:precision)
365
- @recall = args[:recall] if args.key?(:recall)
289
+ @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
366
290
  end
367
291
  end
368
292
 
369
- # Metrics across multiple confidence levels.
370
- class GoogleCloudDocumentaiUiv1beta3EvaluationMultiConfidenceMetrics
293
+ # The long running operation metadata for set default processor version method.
294
+ class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata
371
295
  include Google::Apis::Core::Hashable
372
296
 
373
- # Metrics across confidence levels.
374
- # Corresponds to the JSON property `confidenceLevelMetrics`
375
- # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3EvaluationConfidenceLevelMetrics>]
376
- attr_accessor :confidence_level_metrics
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
377
301
 
378
302
  def initialize(**args)
379
303
  update!(**args)
@@ -381,80 +305,43 @@ module Google
381
305
 
382
306
  # Update properties of this object
383
307
  def update!(**args)
384
- @confidence_level_metrics = args[:confidence_level_metrics] if args.key?(:confidence_level_metrics)
308
+ @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
385
309
  end
386
310
  end
387
311
 
388
- # Gives a short summary of an evaluation, and links to the evaluation itself.
389
- class GoogleCloudDocumentaiUiv1beta3EvaluationReference
312
+ # Response message for set default processor version method.
313
+ class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionResponse
390
314
  include Google::Apis::Core::Hashable
391
315
 
392
- # Evaluation metrics, either in aggregate or about a specific entity.
393
- # Corresponds to the JSON property `aggregateMetrics`
394
- # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3EvaluationMetrics]
395
- attr_accessor :aggregate_metrics
396
-
397
- # The resource name of the evaluation.
398
- # Corresponds to the JSON property `evaluation`
399
- # @return [String]
400
- attr_accessor :evaluation
401
-
402
- # The resource name of the Long Running Operation for the evaluation.
403
- # Corresponds to the JSON property `operation`
404
- # @return [String]
405
- attr_accessor :operation
406
-
407
316
  def initialize(**args)
408
317
  update!(**args)
409
318
  end
410
319
 
411
320
  # Update properties of this object
412
321
  def update!(**args)
413
- @aggregate_metrics = args[:aggregate_metrics] if args.key?(:aggregate_metrics)
414
- @evaluation = args[:evaluation] if args.key?(:evaluation)
415
- @operation = args[:operation] if args.key?(:operation)
416
322
  end
417
323
  end
418
324
 
419
- # A processor version is an implementation of a processor. Each processor can
420
- # have multiple versions, pre-trained by Google internally or up-trained by the
421
- # customer. At a time, a processor can only have one default version version. So
422
- # the processor's behavior (when processing documents) is defined by a default
423
- # version.
424
- class GoogleCloudDocumentaiUiv1beta3ProcessorVersion
325
+ # The metadata that represents a processor version being created.
326
+ class GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata
425
327
  include Google::Apis::Core::Hashable
426
328
 
427
- # The time the processor version was created.
428
- # Corresponds to the JSON property `createTime`
429
- # @return [String]
430
- attr_accessor :create_time
431
-
432
- # The display name of the processor version.
433
- # Corresponds to the JSON property `displayName`
434
- # @return [String]
435
- attr_accessor :display_name
436
-
437
- # Gives a short summary of an evaluation, and links to the evaluation itself.
438
- # Corresponds to the JSON property `latestEvaluation`
439
- # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3EvaluationReference]
440
- attr_accessor :latest_evaluation
329
+ # The common metadata for long running operations.
330
+ # Corresponds to the JSON property `commonMetadata`
331
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata]
332
+ attr_accessor :common_metadata
441
333
 
442
- # The resource name of the processor version. Format: projects/`project`/
443
- # locations/`location`/processors/`processor`/processorVersions/`
444
- # processor_version`
445
- # Corresponds to the JSON property `name`
446
- # @return [String]
447
- attr_accessor :name
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
448
339
 
449
- # The schema defines the output of the processed document by a processor.
450
- # Corresponds to the JSON property `schema`
451
- # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3Schema]
452
- attr_accessor :schema
453
-
454
- # The state of the processor version.
455
- # Corresponds to the JSON property `state`
456
- # @return [String]
457
- attr_accessor :state
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
458
345
 
459
346
  def initialize(**args)
460
347
  update!(**args)
@@ -462,33 +349,29 @@ module Google
462
349
 
463
350
  # Update properties of this object
464
351
  def update!(**args)
465
- @create_time = args[:create_time] if args.key?(:create_time)
466
- @display_name = args[:display_name] if args.key?(:display_name)
467
- @latest_evaluation = args[:latest_evaluation] if args.key?(:latest_evaluation)
468
- @name = args[:name] if args.key?(:name)
469
- @schema = args[:schema] if args.key?(:schema)
470
- @state = args[:state] if args.key?(:state)
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)
471
355
  end
472
356
  end
473
357
 
474
- # The schema defines the output of the processed document by a processor.
475
- class GoogleCloudDocumentaiUiv1beta3Schema
358
+ # The dataset validation information. This includes any and all errors with
359
+ # documents and the dataset.
360
+ class GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation
476
361
  include Google::Apis::Core::Hashable
477
362
 
478
- # Description of the schema.
479
- # Corresponds to the JSON property `description`
480
- # @return [String]
481
- attr_accessor :description
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
482
368
 
483
- # Display name to show to users.
484
- # Corresponds to the JSON property `displayName`
485
- # @return [String]
486
- attr_accessor :display_name
487
-
488
- # Entity types of the schema.
489
- # Corresponds to the JSON property `entityTypes`
490
- # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3SchemaEntityType>]
491
- attr_accessor :entity_types
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
492
375
 
493
376
  def initialize(**args)
494
377
  update!(**args)
@@ -496,86 +379,8 @@ module Google
496
379
 
497
380
  # Update properties of this object
498
381
  def update!(**args)
499
- @description = args[:description] if args.key?(:description)
500
- @display_name = args[:display_name] if args.key?(:display_name)
501
- @entity_types = args[:entity_types] if args.key?(:entity_types)
502
- end
503
- end
504
-
505
- # EntityType is the wrapper of a label of the corresponding model with detailed
506
- # attributes and limitations for entity-based processors. Multiple types can
507
- # also compose a dependency tree to represent nested types.
508
- class GoogleCloudDocumentaiUiv1beta3SchemaEntityType
509
- include Google::Apis::Core::Hashable
510
-
511
- # Type of the entity. It can be either a value type (such as "text", "numeric", "
512
- # date" and "address"), or an object type which may contain nested entities (
513
- # such as "document" and "table").
514
- # Corresponds to the JSON property `baseType`
515
- # @return [String]
516
- attr_accessor :base_type
517
-
518
- # Description of the entity type.
519
- # Corresponds to the JSON property `description`
520
- # @return [String]
521
- attr_accessor :description
522
-
523
- # Occurrence type limits the number of times an entity type appears in the
524
- # document.
525
- # Corresponds to the JSON property `occurrenceType`
526
- # @return [String]
527
- attr_accessor :occurrence_type
528
-
529
- # Describing the nested structure of an entity. An EntityType may consist of
530
- # several other EntityTypes. For example, in a document there can be an
531
- # EntityType 'ID', which consists of EntityType 'name' and 'address', with
532
- # corresponding attributes, such as TEXT for both types and ONCE for occurrence
533
- # types.
534
- # Corresponds to the JSON property `properties`
535
- # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3SchemaEntityType>]
536
- attr_accessor :properties
537
-
538
- # Source of this entity type.
539
- # Corresponds to the JSON property `source`
540
- # @return [String]
541
- attr_accessor :source
542
-
543
- # Name of the type. It must be unique within the set of same level types.
544
- # Corresponds to the JSON property `type`
545
- # @return [String]
546
- attr_accessor :type
547
-
548
- def initialize(**args)
549
- update!(**args)
550
- end
551
-
552
- # Update properties of this object
553
- def update!(**args)
554
- @base_type = args[:base_type] if args.key?(:base_type)
555
- @description = args[:description] if args.key?(:description)
556
- @occurrence_type = args[:occurrence_type] if args.key?(:occurrence_type)
557
- @properties = args[:properties] if args.key?(:properties)
558
- @source = args[:source] if args.key?(:source)
559
- @type = args[:type] if args.key?(:type)
560
- end
561
- end
562
-
563
- # The metadata that represents a processor version being created.
564
- class GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata
565
- include Google::Apis::Core::Hashable
566
-
567
- # The common metadata for long running operations.
568
- # Corresponds to the JSON property `commonMetadata`
569
- # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata]
570
- attr_accessor :common_metadata
571
-
572
- def initialize(**args)
573
- update!(**args)
574
- end
575
-
576
- # Update properties of this object
577
- def update!(**args)
578
- @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
382
+ @dataset_errors = args[:dataset_errors] if args.key?(:dataset_errors)
383
+ @document_errors = args[:document_errors] if args.key?(:document_errors)
579
384
  end
580
385
  end
581
386
 
@@ -583,13 +388,9 @@ module Google
583
388
  class GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionResponse
584
389
  include Google::Apis::Core::Hashable
585
390
 
586
- # A processor version is an implementation of a processor. Each processor can
587
- # have multiple versions, pre-trained by Google internally or up-trained by the
588
- # customer. At a time, a processor can only have one default version version. So
589
- # the processor's behavior (when processing documents) is defined by a default
590
- # version.
391
+ # The resource name of the processor version produced by training.
591
392
  # Corresponds to the JSON property `processorVersion`
592
- # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3ProcessorVersion]
393
+ # @return [String]
593
394
  attr_accessor :processor_version
594
395
 
595
396
  def initialize(**args)
@@ -817,9 +618,10 @@ module Google
817
618
  class GoogleCloudDocumentaiV1HumanReviewStatus
818
619
  include Google::Apis::Core::Hashable
819
620
 
820
- # The name of the operation triggered by the processed document. Non-empty only
821
- # when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has the same response type
822
- # and metadata as the long running operation returned by [ReviewDocument] method.
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.
823
625
  # Corresponds to the JSON property `humanReviewOperation`
824
626
  # @return [String]
825
627
  attr_accessor :human_review_operation
@@ -936,9 +738,9 @@ module Google
936
738
  class GoogleCloudDocumentaiV1beta1Document
937
739
  include Google::Apis::Core::Hashable
938
740
 
939
- # Inline document content, represented as a stream of bytes. Note: As with all `
940
- # bytes` fields, protobuffers use a pure binary representation, whereas JSON
941
- # 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.
942
744
  # Corresponds to the JSON property `content`
943
745
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
944
746
  # @return [String]
@@ -988,7 +790,7 @@ module Google
988
790
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentShardInfo]
989
791
  attr_accessor :shard_info
990
792
 
991
- # UTF-8 encoded text in reading order from the document.
793
+ # Optional. UTF-8 encoded text in reading order from the document.
992
794
  # Corresponds to the JSON property `text`
993
795
  # @return [String]
994
796
  attr_accessor :text
@@ -1005,16 +807,10 @@ module Google
1005
807
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentStyle>]
1006
808
  attr_accessor :text_styles
1007
809
 
1008
- # A list of translations on Document.text. For document shards, translations in
1009
- # this list may cross shard boundaries.
1010
- # Corresponds to the JSON property `translations`
1011
- # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentTranslation>]
1012
- attr_accessor :translations
1013
-
1014
- # Currently supports Google Cloud Storage URI of the form `gs://bucket_name/
1015
- # object_name`. Object versioning is not supported. See [Google Cloud Storage
1016
- # Request URIs](https://cloud.google.com/storage/docs/reference-uris) for more
1017
- # 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.
1018
814
  # Corresponds to the JSON property `uri`
1019
815
  # @return [String]
1020
816
  attr_accessor :uri
@@ -1036,7 +832,6 @@ module Google
1036
832
  @text = args[:text] if args.key?(:text)
1037
833
  @text_changes = args[:text_changes] if args.key?(:text_changes)
1038
834
  @text_styles = args[:text_styles] if args.key?(:text_styles)
1039
- @translations = args[:translations] if args.key?(:translations)
1040
835
  @uri = args[:uri] if args.key?(:uri)
1041
836
  end
1042
837
  end
@@ -1057,12 +852,12 @@ module Google
1057
852
  # @return [String]
1058
853
  attr_accessor :id
1059
854
 
1060
- # Deprecated. Use `id` field instead.
855
+ # Optional. Deprecated. Use `id` field instead.
1061
856
  # Corresponds to the JSON property `mentionId`
1062
857
  # @return [String]
1063
858
  attr_accessor :mention_id
1064
859
 
1065
- # Text value in the document e.g. `1600 Amphitheatre Pkwy`.
860
+ # Optional. Text value in the document e.g. `1600 Amphitheatre Pkwy`.
1066
861
  # Corresponds to the JSON property `mentionText`
1067
862
  # @return [String]
1068
863
  attr_accessor :mention_text
@@ -1145,6 +940,12 @@ module Google
1145
940
  # @return [Google::Apis::DocumentaiV1beta2::GoogleTypePostalAddress]
1146
941
  attr_accessor :address_value
1147
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
+
1148
949
  # Represents a whole or partial calendar date, such as a birthday. The time of
1149
950
  # day and time zone are either specified elsewhere or are insignificant. The
1150
951
  # date is relative to the Gregorian Calendar. This can represent one of the
@@ -1197,6 +998,7 @@ module Google
1197
998
  # Update properties of this object
1198
999
  def update!(**args)
1199
1000
  @address_value = args[:address_value] if args.key?(:address_value)
1001
+ @boolean_value = args[:boolean_value] if args.key?(:boolean_value)
1200
1002
  @date_value = args[:date_value] if args.key?(:date_value)
1201
1003
  @datetime_value = args[:datetime_value] if args.key?(:datetime_value)
1202
1004
  @money_value = args[:money_value] if args.key?(:money_value)
@@ -2323,44 +2125,6 @@ module Google
2323
2125
  end
2324
2126
  end
2325
2127
 
2326
- # A translation of the text segment.
2327
- class GoogleCloudDocumentaiV1beta1DocumentTranslation
2328
- include Google::Apis::Core::Hashable
2329
-
2330
- # The BCP-47 language code, such as "en-US" or "sr-Latn". For more information,
2331
- # see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
2332
- # Corresponds to the JSON property `languageCode`
2333
- # @return [String]
2334
- attr_accessor :language_code
2335
-
2336
- # The history of this annotation.
2337
- # Corresponds to the JSON property `provenance`
2338
- # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentProvenance>]
2339
- attr_accessor :provenance
2340
-
2341
- # Text reference indexing into the Document.text.
2342
- # Corresponds to the JSON property `textAnchor`
2343
- # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentTextAnchor]
2344
- attr_accessor :text_anchor
2345
-
2346
- # Text translated into the target language.
2347
- # Corresponds to the JSON property `translatedText`
2348
- # @return [String]
2349
- attr_accessor :translated_text
2350
-
2351
- def initialize(**args)
2352
- update!(**args)
2353
- end
2354
-
2355
- # Update properties of this object
2356
- def update!(**args)
2357
- @language_code = args[:language_code] if args.key?(:language_code)
2358
- @provenance = args[:provenance] if args.key?(:provenance)
2359
- @text_anchor = args[:text_anchor] if args.key?(:text_anchor)
2360
- @translated_text = args[:translated_text] if args.key?(:translated_text)
2361
- end
2362
- end
2363
-
2364
2128
  # The Google Cloud Storage location where the output file will be written to.
2365
2129
  class GoogleCloudDocumentaiV1beta1GcsDestination
2366
2130
  include Google::Apis::Core::Hashable
@@ -2666,9 +2430,9 @@ module Google
2666
2430
  class GoogleCloudDocumentaiV1beta2Document
2667
2431
  include Google::Apis::Core::Hashable
2668
2432
 
2669
- # Inline document content, represented as a stream of bytes. Note: As with all `
2670
- # bytes` fields, protobuffers use a pure binary representation, whereas JSON
2671
- # 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.
2672
2436
  # Corresponds to the JSON property `content`
2673
2437
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
2674
2438
  # @return [String]
@@ -2723,7 +2487,7 @@ module Google
2723
2487
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentShardInfo]
2724
2488
  attr_accessor :shard_info
2725
2489
 
2726
- # UTF-8 encoded text in reading order from the document.
2490
+ # Optional. UTF-8 encoded text in reading order from the document.
2727
2491
  # Corresponds to the JSON property `text`
2728
2492
  # @return [String]
2729
2493
  attr_accessor :text
@@ -2740,16 +2504,10 @@ module Google
2740
2504
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentStyle>]
2741
2505
  attr_accessor :text_styles
2742
2506
 
2743
- # A list of translations on Document.text. For document shards, translations in
2744
- # this list may cross shard boundaries.
2745
- # Corresponds to the JSON property `translations`
2746
- # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentTranslation>]
2747
- attr_accessor :translations
2748
-
2749
- # Currently supports Google Cloud Storage URI of the form `gs://bucket_name/
2750
- # object_name`. Object versioning is not supported. See [Google Cloud Storage
2751
- # Request URIs](https://cloud.google.com/storage/docs/reference-uris) for more
2752
- # 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.
2753
2511
  # Corresponds to the JSON property `uri`
2754
2512
  # @return [String]
2755
2513
  attr_accessor :uri
@@ -2772,7 +2530,6 @@ module Google
2772
2530
  @text = args[:text] if args.key?(:text)
2773
2531
  @text_changes = args[:text_changes] if args.key?(:text_changes)
2774
2532
  @text_styles = args[:text_styles] if args.key?(:text_styles)
2775
- @translations = args[:translations] if args.key?(:translations)
2776
2533
  @uri = args[:uri] if args.key?(:uri)
2777
2534
  end
2778
2535
  end
@@ -2793,12 +2550,12 @@ module Google
2793
2550
  # @return [String]
2794
2551
  attr_accessor :id
2795
2552
 
2796
- # Deprecated. Use `id` field instead.
2553
+ # Optional. Deprecated. Use `id` field instead.
2797
2554
  # Corresponds to the JSON property `mentionId`
2798
2555
  # @return [String]
2799
2556
  attr_accessor :mention_id
2800
2557
 
2801
- # Text value in the document e.g. `1600 Amphitheatre Pkwy`.
2558
+ # Optional. Text value in the document e.g. `1600 Amphitheatre Pkwy`.
2802
2559
  # Corresponds to the JSON property `mentionText`
2803
2560
  # @return [String]
2804
2561
  attr_accessor :mention_text
@@ -2881,6 +2638,12 @@ module Google
2881
2638
  # @return [Google::Apis::DocumentaiV1beta2::GoogleTypePostalAddress]
2882
2639
  attr_accessor :address_value
2883
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
+
2884
2647
  # Represents a whole or partial calendar date, such as a birthday. The time of
2885
2648
  # day and time zone are either specified elsewhere or are insignificant. The
2886
2649
  # date is relative to the Gregorian Calendar. This can represent one of the
@@ -2933,6 +2696,7 @@ module Google
2933
2696
  # Update properties of this object
2934
2697
  def update!(**args)
2935
2698
  @address_value = args[:address_value] if args.key?(:address_value)
2699
+ @boolean_value = args[:boolean_value] if args.key?(:boolean_value)
2936
2700
  @date_value = args[:date_value] if args.key?(:date_value)
2937
2701
  @datetime_value = args[:datetime_value] if args.key?(:datetime_value)
2938
2702
  @money_value = args[:money_value] if args.key?(:money_value)
@@ -4096,44 +3860,6 @@ module Google
4096
3860
  end
4097
3861
  end
4098
3862
 
4099
- # A translation of the text segment.
4100
- class GoogleCloudDocumentaiV1beta2DocumentTranslation
4101
- include Google::Apis::Core::Hashable
4102
-
4103
- # The BCP-47 language code, such as "en-US" or "sr-Latn". For more information,
4104
- # see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
4105
- # Corresponds to the JSON property `languageCode`
4106
- # @return [String]
4107
- attr_accessor :language_code
4108
-
4109
- # The history of this annotation.
4110
- # Corresponds to the JSON property `provenance`
4111
- # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentProvenance>]
4112
- attr_accessor :provenance
4113
-
4114
- # Text reference indexing into the Document.text.
4115
- # Corresponds to the JSON property `textAnchor`
4116
- # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentTextAnchor]
4117
- attr_accessor :text_anchor
4118
-
4119
- # Text translated into the target language.
4120
- # Corresponds to the JSON property `translatedText`
4121
- # @return [String]
4122
- attr_accessor :translated_text
4123
-
4124
- def initialize(**args)
4125
- update!(**args)
4126
- end
4127
-
4128
- # Update properties of this object
4129
- def update!(**args)
4130
- @language_code = args[:language_code] if args.key?(:language_code)
4131
- @provenance = args[:provenance] if args.key?(:provenance)
4132
- @text_anchor = args[:text_anchor] if args.key?(:text_anchor)
4133
- @translated_text = args[:translated_text] if args.key?(:translated_text)
4134
- end
4135
- end
4136
-
4137
3863
  # Parameters to control entity extraction behavior.
4138
3864
  class GoogleCloudDocumentaiV1beta2EntityExtractionParams
4139
3865
  include Google::Apis::Core::Hashable
@@ -4661,7 +4387,7 @@ module Google
4661
4387
  # The name of the operation triggered by the processed document. If the human
4662
4388
  # review process is not triggered, this field will be empty. It has the same
4663
4389
  # response type and metadata as the long running operation returned by
4664
- # ReviewDocument method. .
4390
+ # ReviewDocument method.
4665
4391
  # Corresponds to the JSON property `humanReviewOperation`
4666
4392
  # @return [String]
4667
4393
  attr_accessor :human_review_operation
@@ -4763,9 +4489,10 @@ module Google
4763
4489
  class GoogleCloudDocumentaiV1beta3HumanReviewStatus
4764
4490
  include Google::Apis::Core::Hashable
4765
4491
 
4766
- # The name of the operation triggered by the processed document. Non-empty only
4767
- # when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has the same response type
4768
- # and metadata as the long running operation returned by [ReviewDocument] method.
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.
4769
4496
  # Corresponds to the JSON property `humanReviewOperation`
4770
4497
  # @return [String]
4771
4498
  attr_accessor :human_review_operation
@@ -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.2.0"
19
+ GEM_VERSION = "0.7.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.2"
22
+ GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210201"
25
+ REVISION = "20210320"
26
26
  end
27
27
  end
28
28
  end
@@ -100,55 +100,31 @@ module Google
100
100
  include Google::Apis::Core::JsonObjectSupport
101
101
  end
102
102
 
103
- class GoogleCloudDocumentaiUiv1beta3Evaluation
103
+ class GoogleCloudDocumentaiUiv1beta3SampleDatasetMetadata
104
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
105
 
106
106
  include Google::Apis::Core::JsonObjectSupport
107
107
  end
108
108
 
109
- class GoogleCloudDocumentaiUiv1beta3EvaluationConfidenceLevelMetrics
109
+ class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata
110
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
111
 
112
112
  include Google::Apis::Core::JsonObjectSupport
113
113
  end
114
114
 
115
- class GoogleCloudDocumentaiUiv1beta3EvaluationMetrics
115
+ class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionResponse
116
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
117
 
118
118
  include Google::Apis::Core::JsonObjectSupport
119
119
  end
120
120
 
121
- class GoogleCloudDocumentaiUiv1beta3EvaluationMultiConfidenceMetrics
122
- class Representation < Google::Apis::Core::JsonRepresentation; end
123
-
124
- include Google::Apis::Core::JsonObjectSupport
125
- end
126
-
127
- class GoogleCloudDocumentaiUiv1beta3EvaluationReference
128
- class Representation < Google::Apis::Core::JsonRepresentation; end
129
-
130
- include Google::Apis::Core::JsonObjectSupport
131
- end
132
-
133
- class GoogleCloudDocumentaiUiv1beta3ProcessorVersion
134
- class Representation < Google::Apis::Core::JsonRepresentation; end
135
-
136
- include Google::Apis::Core::JsonObjectSupport
137
- end
138
-
139
- class GoogleCloudDocumentaiUiv1beta3Schema
140
- class Representation < Google::Apis::Core::JsonRepresentation; end
141
-
142
- include Google::Apis::Core::JsonObjectSupport
143
- end
144
-
145
- class GoogleCloudDocumentaiUiv1beta3SchemaEntityType
121
+ class GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata
146
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
123
 
148
124
  include Google::Apis::Core::JsonObjectSupport
149
125
  end
150
126
 
151
- class GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata
127
+ class GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation
152
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
153
129
 
154
130
  include Google::Apis::Core::JsonObjectSupport
@@ -430,12 +406,6 @@ module Google
430
406
  include Google::Apis::Core::JsonObjectSupport
431
407
  end
432
408
 
433
- class GoogleCloudDocumentaiV1beta1DocumentTranslation
434
- class Representation < Google::Apis::Core::JsonRepresentation; end
435
-
436
- include Google::Apis::Core::JsonObjectSupport
437
- end
438
-
439
409
  class GoogleCloudDocumentaiV1beta1GcsDestination
440
410
  class Representation < Google::Apis::Core::JsonRepresentation; end
441
411
 
@@ -706,12 +676,6 @@ module Google
706
676
  include Google::Apis::Core::JsonObjectSupport
707
677
  end
708
678
 
709
- class GoogleCloudDocumentaiV1beta2DocumentTranslation
710
- class Representation < Google::Apis::Core::JsonRepresentation; end
711
-
712
- include Google::Apis::Core::JsonObjectSupport
713
- end
714
-
715
679
  class GoogleCloudDocumentaiV1beta2EntityExtractionParams
716
680
  class Representation < Google::Apis::Core::JsonRepresentation; end
717
681
 
@@ -993,100 +957,50 @@ module Google
993
957
  class GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionResponse
994
958
  # @private
995
959
  class Representation < Google::Apis::Core::JsonRepresentation
996
- property :evaluation, as: 'evaluation', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3Evaluation, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3Evaluation::Representation
997
-
998
- end
999
- end
1000
-
1001
- class GoogleCloudDocumentaiUiv1beta3Evaluation
1002
- # @private
1003
- class Representation < Google::Apis::Core::JsonRepresentation
1004
- property :all_entities_metrics, as: 'allEntitiesMetrics', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3EvaluationMultiConfidenceMetrics, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3EvaluationMultiConfidenceMetrics::Representation
1005
-
1006
- property :create_time, as: 'createTime'
1007
- hash :entity_metrics, as: 'entityMetrics', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3EvaluationMultiConfidenceMetrics, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3EvaluationMultiConfidenceMetrics::Representation
1008
-
1009
- property :name, as: 'name'
960
+ property :evaluation, as: 'evaluation'
1010
961
  end
1011
962
  end
1012
963
 
1013
- class GoogleCloudDocumentaiUiv1beta3EvaluationConfidenceLevelMetrics
964
+ class GoogleCloudDocumentaiUiv1beta3SampleDatasetMetadata
1014
965
  # @private
1015
966
  class Representation < Google::Apis::Core::JsonRepresentation
1016
- property :confidence_level, as: 'confidenceLevel'
1017
- property :metrics, as: 'metrics', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3EvaluationMetrics, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3EvaluationMetrics::Representation
967
+ property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata::Representation
1018
968
 
1019
969
  end
1020
970
  end
1021
971
 
1022
- class GoogleCloudDocumentaiUiv1beta3EvaluationMetrics
972
+ class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata
1023
973
  # @private
1024
974
  class Representation < Google::Apis::Core::JsonRepresentation
1025
- property :f1_score, as: 'f1Score'
1026
- property :precision, as: 'precision'
1027
- property :recall, as: 'recall'
1028
- end
1029
- end
1030
-
1031
- class GoogleCloudDocumentaiUiv1beta3EvaluationMultiConfidenceMetrics
1032
- # @private
1033
- class Representation < Google::Apis::Core::JsonRepresentation
1034
- collection :confidence_level_metrics, as: 'confidenceLevelMetrics', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3EvaluationConfidenceLevelMetrics, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3EvaluationConfidenceLevelMetrics::Representation
975
+ property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata::Representation
1035
976
 
1036
977
  end
1037
978
  end
1038
979
 
1039
- class GoogleCloudDocumentaiUiv1beta3EvaluationReference
980
+ class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionResponse
1040
981
  # @private
1041
982
  class Representation < Google::Apis::Core::JsonRepresentation
1042
- property :aggregate_metrics, as: 'aggregateMetrics', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3EvaluationMetrics, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3EvaluationMetrics::Representation
1043
-
1044
- property :evaluation, as: 'evaluation'
1045
- property :operation, as: 'operation'
1046
983
  end
1047
984
  end
1048
985
 
1049
- class GoogleCloudDocumentaiUiv1beta3ProcessorVersion
986
+ class GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata
1050
987
  # @private
1051
988
  class Representation < Google::Apis::Core::JsonRepresentation
1052
- property :create_time, as: 'createTime'
1053
- property :display_name, as: 'displayName'
1054
- property :latest_evaluation, as: 'latestEvaluation', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3EvaluationReference, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3EvaluationReference::Representation
989
+ property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata::Representation
1055
990
 
1056
- property :name, as: 'name'
1057
- property :schema, as: 'schema', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3Schema, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3Schema::Representation
991
+ property :test_dataset_validation, as: 'testDatasetValidation', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation::Representation
1058
992
 
1059
- property :state, as: 'state'
1060
- end
1061
- end
1062
-
1063
- class GoogleCloudDocumentaiUiv1beta3Schema
1064
- # @private
1065
- class Representation < Google::Apis::Core::JsonRepresentation
1066
- property :description, as: 'description'
1067
- property :display_name, as: 'displayName'
1068
- collection :entity_types, as: 'entityTypes', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3SchemaEntityType, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3SchemaEntityType::Representation
993
+ property :training_dataset_validation, as: 'trainingDatasetValidation', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation::Representation
1069
994
 
1070
995
  end
1071
996
  end
1072
997
 
1073
- class GoogleCloudDocumentaiUiv1beta3SchemaEntityType
998
+ class GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation
1074
999
  # @private
1075
1000
  class Representation < Google::Apis::Core::JsonRepresentation
1076
- property :base_type, as: 'baseType'
1077
- property :description, as: 'description'
1078
- property :occurrence_type, as: 'occurrenceType'
1079
- collection :properties, as: 'properties', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3SchemaEntityType, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3SchemaEntityType::Representation
1001
+ collection :dataset_errors, as: 'datasetErrors', class: Google::Apis::DocumentaiV1beta2::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1beta2::GoogleRpcStatus::Representation
1080
1002
 
1081
- property :source, as: 'source'
1082
- property :type, as: 'type'
1083
- end
1084
- end
1085
-
1086
- class GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata
1087
- # @private
1088
- class Representation < Google::Apis::Core::JsonRepresentation
1089
- property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata::Representation
1003
+ collection :document_errors, as: 'documentErrors', class: Google::Apis::DocumentaiV1beta2::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1beta2::GoogleRpcStatus::Representation
1090
1004
 
1091
1005
  end
1092
1006
  end
@@ -1094,8 +1008,7 @@ module Google
1094
1008
  class GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionResponse
1095
1009
  # @private
1096
1010
  class Representation < Google::Apis::Core::JsonRepresentation
1097
- property :processor_version, as: 'processorVersion', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3ProcessorVersion, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3ProcessorVersion::Representation
1098
-
1011
+ property :processor_version, as: 'processorVersion'
1099
1012
  end
1100
1013
  end
1101
1014
 
@@ -1233,8 +1146,6 @@ module Google
1233
1146
 
1234
1147
  collection :text_styles, as: 'textStyles', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentStyle, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentStyle::Representation
1235
1148
 
1236
- collection :translations, as: 'translations', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentTranslation, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentTranslation::Representation
1237
-
1238
1149
  property :uri, as: 'uri'
1239
1150
  end
1240
1151
  end
@@ -1266,6 +1177,7 @@ module Google
1266
1177
  class Representation < Google::Apis::Core::JsonRepresentation
1267
1178
  property :address_value, as: 'addressValue', class: Google::Apis::DocumentaiV1beta2::GoogleTypePostalAddress, decorator: Google::Apis::DocumentaiV1beta2::GoogleTypePostalAddress::Representation
1268
1179
 
1180
+ property :boolean_value, as: 'booleanValue'
1269
1181
  property :date_value, as: 'dateValue', class: Google::Apis::DocumentaiV1beta2::GoogleTypeDate, decorator: Google::Apis::DocumentaiV1beta2::GoogleTypeDate::Representation
1270
1182
 
1271
1183
  property :datetime_value, as: 'datetimeValue', class: Google::Apis::DocumentaiV1beta2::GoogleTypeDateTime, decorator: Google::Apis::DocumentaiV1beta2::GoogleTypeDateTime::Representation
@@ -1603,18 +1515,6 @@ module Google
1603
1515
  end
1604
1516
  end
1605
1517
 
1606
- class GoogleCloudDocumentaiV1beta1DocumentTranslation
1607
- # @private
1608
- class Representation < Google::Apis::Core::JsonRepresentation
1609
- property :language_code, as: 'languageCode'
1610
- collection :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentProvenance::Representation
1611
-
1612
- property :text_anchor, as: 'textAnchor', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentTextAnchor, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentTextAnchor::Representation
1613
-
1614
- property :translated_text, as: 'translatedText'
1615
- end
1616
- end
1617
-
1618
1518
  class GoogleCloudDocumentaiV1beta1GcsDestination
1619
1519
  # @private
1620
1520
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1740,8 +1640,6 @@ module Google
1740
1640
 
1741
1641
  collection :text_styles, as: 'textStyles', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentStyle, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentStyle::Representation
1742
1642
 
1743
- collection :translations, as: 'translations', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentTranslation, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentTranslation::Representation
1744
-
1745
1643
  property :uri, as: 'uri'
1746
1644
  end
1747
1645
  end
@@ -1773,6 +1671,7 @@ module Google
1773
1671
  class Representation < Google::Apis::Core::JsonRepresentation
1774
1672
  property :address_value, as: 'addressValue', class: Google::Apis::DocumentaiV1beta2::GoogleTypePostalAddress, decorator: Google::Apis::DocumentaiV1beta2::GoogleTypePostalAddress::Representation
1775
1673
 
1674
+ property :boolean_value, as: 'booleanValue'
1776
1675
  property :date_value, as: 'dateValue', class: Google::Apis::DocumentaiV1beta2::GoogleTypeDate, decorator: Google::Apis::DocumentaiV1beta2::GoogleTypeDate::Representation
1777
1676
 
1778
1677
  property :datetime_value, as: 'datetimeValue', class: Google::Apis::DocumentaiV1beta2::GoogleTypeDateTime, decorator: Google::Apis::DocumentaiV1beta2::GoogleTypeDateTime::Representation
@@ -2119,18 +2018,6 @@ module Google
2119
2018
  end
2120
2019
  end
2121
2020
 
2122
- class GoogleCloudDocumentaiV1beta2DocumentTranslation
2123
- # @private
2124
- class Representation < Google::Apis::Core::JsonRepresentation
2125
- property :language_code, as: 'languageCode'
2126
- collection :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentProvenance::Representation
2127
-
2128
- property :text_anchor, as: 'textAnchor', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentTextAnchor, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentTextAnchor::Representation
2129
-
2130
- property :translated_text, as: 'translatedText'
2131
- end
2132
- end
2133
-
2134
2021
  class GoogleCloudDocumentaiV1beta2EntityExtractionParams
2135
2022
  # @private
2136
2023
  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.2.0
4
+ version: 0.7.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-02-08 00:00:00.000000000 Z
11
+ date: 2021-03-29 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.2.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta2/v0.7.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.2.6
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