google-apis-documentai_v1 0.43.0 → 0.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 360c58d4ea3c60d328dfb7a63c4e6b9e737e58188d68f797174adf6d31bac042
4
- data.tar.gz: de5c0e1aa51e95990dedd9c2c8b1e730f94cd93a9f47c5ee35c49b5fab02c9a3
3
+ metadata.gz: 05d1f48f0656bb10c90faf86437891a14b6b2e7745991b8b71f343be4b641691
4
+ data.tar.gz: 15718f1014bd9e610d68804baa7d068f1de1858ed97119ef3d3723a5ffc5409a
5
5
  SHA512:
6
- metadata.gz: cc6817642170e179db82066f07d6788649b72e57089271e1ec27dfa79ec65018bafd387337ba313657eba6feb2edb43d0395d59d53f68a0e233a0718a55b6942
7
- data.tar.gz: 1a2036bde0e00e97637f7c447370f2998f0956f7703ccb8103f1955a081a49e31dbb582f631c2683558c4fd1463e67a383a5efebde14867c70dec6bad594881e
6
+ metadata.gz: b07dbfcb46f7313ad3c7d9c21f69f1d89bd0b83345ab7079b87a88c4291886b146183db0d938ea602a68f31bd09a4af4e6c11e8f151e67899870df7649d855dc
7
+ data.tar.gz: f11b44be93c1db1d81b636ec51ca5162fbba6d2305be8a92ef81eb3afade6e987df2ea7feb63ce013bab056b229c998730848a1a157fa8a99ed9706fc28695f3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-documentai_v1
2
2
 
3
+ ### v0.46.0 (2022-08-25)
4
+
5
+ * Regenerated from discovery document revision 20220821
6
+
7
+ ### v0.45.0 (2022-08-16)
8
+
9
+ * Regenerated from discovery document revision 20220815
10
+
11
+ ### v0.44.0 (2022-08-10)
12
+
13
+ * Regenerated from discovery document revision 20220808
14
+
3
15
  ### v0.43.0 (2022-07-26)
4
16
 
5
17
  * Regenerated from discovery document revision 20220720
@@ -31,11 +31,21 @@ module Google
31
31
  # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata]
32
32
  attr_accessor :common_metadata
33
33
 
34
+ # Total number of documents that failed to be deleted in storage.
35
+ # Corresponds to the JSON property `errorDocumentCount`
36
+ # @return [Fixnum]
37
+ attr_accessor :error_document_count
38
+
34
39
  # The list of response details of each document.
35
40
  # Corresponds to the JSON property `individualBatchDeleteStatuses`
36
41
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus>]
37
42
  attr_accessor :individual_batch_delete_statuses
38
43
 
44
+ # Total number of documents deleting from dataset.
45
+ # Corresponds to the JSON property `totalDocumentCount`
46
+ # @return [Fixnum]
47
+ attr_accessor :total_document_count
48
+
39
49
  def initialize(**args)
40
50
  update!(**args)
41
51
  end
@@ -43,7 +53,9 @@ module Google
43
53
  # Update properties of this object
44
54
  def update!(**args)
45
55
  @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
56
+ @error_document_count = args[:error_document_count] if args.key?(:error_document_count)
46
57
  @individual_batch_delete_statuses = args[:individual_batch_delete_statuses] if args.key?(:individual_batch_delete_statuses)
58
+ @total_document_count = args[:total_document_count] if args.key?(:total_document_count)
47
59
  end
48
60
  end
49
61
 
@@ -543,6 +555,11 @@ module Google
543
555
  # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata]
544
556
  attr_accessor :common_metadata
545
557
 
558
+ # Validation statuses of the batch documents import config.
559
+ # Corresponds to the JSON property `importConfigValidationResults`
560
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataImportConfigValidationResult>]
561
+ attr_accessor :import_config_validation_results
562
+
546
563
  # The list of response details of each document.
547
564
  # Corresponds to the JSON property `individualImportStatuses`
548
565
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus>]
@@ -560,11 +577,44 @@ module Google
560
577
  # Update properties of this object
561
578
  def update!(**args)
562
579
  @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
580
+ @import_config_validation_results = args[:import_config_validation_results] if args.key?(:import_config_validation_results)
563
581
  @individual_import_statuses = args[:individual_import_statuses] if args.key?(:individual_import_statuses)
564
582
  @total_document_count = args[:total_document_count] if args.key?(:total_document_count)
565
583
  end
566
584
  end
567
585
 
586
+ # The validation status of each import config. Status is set to errors if there
587
+ # is no documents to import in the import_config, or OK if the operation will
588
+ # try to proceed at least one document.
589
+ class GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataImportConfigValidationResult
590
+ include Google::Apis::Core::Hashable
591
+
592
+ # The source Cloud Storage URI specified in the import config.
593
+ # Corresponds to the JSON property `inputGcsSource`
594
+ # @return [String]
595
+ attr_accessor :input_gcs_source
596
+
597
+ # The `Status` type defines a logical error model that is suitable for different
598
+ # programming environments, including REST APIs and RPC APIs. It is used by [
599
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
600
+ # data: error code, error message, and error details. You can find out more
601
+ # about this error model and how to work with it in the [API Design Guide](https:
602
+ # //cloud.google.com/apis/design/errors).
603
+ # Corresponds to the JSON property `status`
604
+ # @return [Google::Apis::DocumentaiV1::GoogleRpcStatus]
605
+ attr_accessor :status
606
+
607
+ def initialize(**args)
608
+ update!(**args)
609
+ end
610
+
611
+ # Update properties of this object
612
+ def update!(**args)
613
+ @input_gcs_source = args[:input_gcs_source] if args.key?(:input_gcs_source)
614
+ @status = args[:status] if args.key?(:status)
615
+ end
616
+ end
617
+
568
618
  # The status of each individual document in the import process.
569
619
  class GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus
570
620
  include Google::Apis::Core::Hashable
@@ -624,11 +674,17 @@ module Google
624
674
  # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata]
625
675
  attr_accessor :common_metadata
626
676
 
627
- # Returns the newly added document Cloud Storage prefix if the documents are
628
- # founded in Cloud Storage while not in Document Service storage.
629
- # Corresponds to the JSON property `newlyAddedDocuments`
630
- # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataUpdatedDocument>]
631
- attr_accessor :newly_added_documents
677
+ # The list of dataset resync statuses. Not checked when `dataset_documents` is
678
+ # specified in ResyncRequest.
679
+ # Corresponds to the JSON property `datasetResyncStatuses`
680
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataDatasetResyncStatus>]
681
+ attr_accessor :dataset_resync_statuses
682
+
683
+ # The list of document resync statuses. The same document could have multiple `
684
+ # individual_document_resync_statuses` if it has multiple inconsistencies.
685
+ # Corresponds to the JSON property `individualDocumentResyncStatuses`
686
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataIndividualDocumentResyncStatus>]
687
+ attr_accessor :individual_document_resync_statuses
632
688
 
633
689
  def initialize(**args)
634
690
  update!(**args)
@@ -637,25 +693,54 @@ module Google
637
693
  # Update properties of this object
638
694
  def update!(**args)
639
695
  @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
640
- @newly_added_documents = args[:newly_added_documents] if args.key?(:newly_added_documents)
696
+ @dataset_resync_statuses = args[:dataset_resync_statuses] if args.key?(:dataset_resync_statuses)
697
+ @individual_document_resync_statuses = args[:individual_document_resync_statuses] if args.key?(:individual_document_resync_statuses)
641
698
  end
642
699
  end
643
700
 
644
- # The proto for updated document in resync pipeline.
645
- class GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataUpdatedDocument
701
+ # Resync status against inconsistency types on the dataset level.
702
+ class GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataDatasetResyncStatus
646
703
  include Google::Apis::Core::Hashable
647
704
 
648
- # The prefix of cloud storage, identifies the destination document which should
649
- # be updated by resync pipeline.
650
- # Corresponds to the JSON property `destinationPrefix`
705
+ # The type of the inconsistency of the dataset.
706
+ # Corresponds to the JSON property `datasetInconsistencyType`
651
707
  # @return [String]
652
- attr_accessor :destination_prefix
708
+ attr_accessor :dataset_inconsistency_type
709
+
710
+ # The `Status` type defines a logical error model that is suitable for different
711
+ # programming environments, including REST APIs and RPC APIs. It is used by [
712
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
713
+ # data: error code, error message, and error details. You can find out more
714
+ # about this error model and how to work with it in the [API Design Guide](https:
715
+ # //cloud.google.com/apis/design/errors).
716
+ # Corresponds to the JSON property `status`
717
+ # @return [Google::Apis::DocumentaiV1::GoogleRpcStatus]
718
+ attr_accessor :status
719
+
720
+ def initialize(**args)
721
+ update!(**args)
722
+ end
723
+
724
+ # Update properties of this object
725
+ def update!(**args)
726
+ @dataset_inconsistency_type = args[:dataset_inconsistency_type] if args.key?(:dataset_inconsistency_type)
727
+ @status = args[:status] if args.key?(:status)
728
+ end
729
+ end
653
730
 
654
- # The prefix of cloud storage, identifies the original document which should be
655
- # updated by resync pipeline.
656
- # Corresponds to the JSON property `sourcePrefix`
731
+ # Resync status for each document per inconsistency type.
732
+ class GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataIndividualDocumentResyncStatus
733
+ include Google::Apis::Core::Hashable
734
+
735
+ # Document Identifier.
736
+ # Corresponds to the JSON property `documentId`
737
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3DocumentId]
738
+ attr_accessor :document_id
739
+
740
+ # The type of document inconsistency.
741
+ # Corresponds to the JSON property `documentInconsistencyType`
657
742
  # @return [String]
658
- attr_accessor :source_prefix
743
+ attr_accessor :document_inconsistency_type
659
744
 
660
745
  # The `Status` type defines a logical error model that is suitable for different
661
746
  # programming environments, including REST APIs and RPC APIs. It is used by [
@@ -673,8 +758,8 @@ module Google
673
758
 
674
759
  # Update properties of this object
675
760
  def update!(**args)
676
- @destination_prefix = args[:destination_prefix] if args.key?(:destination_prefix)
677
- @source_prefix = args[:source_prefix] if args.key?(:source_prefix)
761
+ @document_id = args[:document_id] if args.key?(:document_id)
762
+ @document_inconsistency_type = args[:document_inconsistency_type] if args.key?(:document_inconsistency_type)
678
763
  @status = args[:status] if args.key?(:status)
679
764
  end
680
765
  end
@@ -1471,15 +1556,6 @@ module Google
1471
1556
  # @return [String]
1472
1557
  attr_accessor :mention_text
1473
1558
 
1474
- # Optional. This attribute indicates that the processing didn't actually
1475
- # identify this entity, but a confidence score was assigned that represent the
1476
- # potential that this could be a false negative. A non-present entity should
1477
- # have an empty mention_text and text_anchor.
1478
- # Corresponds to the JSON property `nonPresent`
1479
- # @return [Boolean]
1480
- attr_accessor :non_present
1481
- alias_method :non_present?, :non_present
1482
-
1483
1559
  # Parsed and normalized entity value.
1484
1560
  # Corresponds to the JSON property `normalizedValue`
1485
1561
  # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentEntityNormalizedValue]
@@ -1530,7 +1606,6 @@ module Google
1530
1606
  @id = args[:id] if args.key?(:id)
1531
1607
  @mention_id = args[:mention_id] if args.key?(:mention_id)
1532
1608
  @mention_text = args[:mention_text] if args.key?(:mention_text)
1533
- @non_present = args[:non_present] if args.key?(:non_present)
1534
1609
  @normalized_value = args[:normalized_value] if args.key?(:normalized_value)
1535
1610
  @page_anchor = args[:page_anchor] if args.key?(:page_anchor)
1536
1611
  @properties = args[:properties] if args.key?(:properties)
@@ -2677,6 +2752,11 @@ module Google
2677
2752
  # @return [String]
2678
2753
  attr_accessor :display_name
2679
2754
 
2755
+ # Metadata about an entity type.
2756
+ # Corresponds to the JSON property `entityTypeMetadata`
2757
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1EntityTypeMetadata]
2758
+ attr_accessor :entity_type_metadata
2759
+
2680
2760
  # Defines the a list of enum values.
2681
2761
  # Corresponds to the JSON property `enumValues`
2682
2762
  # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchemaEntityTypeEnumValues]
@@ -2685,8 +2765,8 @@ module Google
2685
2765
  # Name of the type. It must be unique within the schema file and cannot be a '
2686
2766
  # Common Type'. Besides that we use the following naming conventions: - *use
2687
2767
  # snake_casing* - name matching is case-insensitive - Maximum 64 characters. -
2688
- # Must start with a letter. - Allowed characters: ASCII letters [a-z0-9_-]. (For
2689
- # backward compatibility internal infrastructure and tooling can handle any
2768
+ # Must start with a letter. - Allowed characters: ASCII letters `[a-z0-9_-]`. (
2769
+ # For backward compatibility internal infrastructure and tooling can handle any
2690
2770
  # ascii character) - The '/' is sometimes used to denote a property of a type.
2691
2771
  # For example line_item/amount. This convention is deprecated, but will still be
2692
2772
  # honored for backward compatibility.
@@ -2707,6 +2787,7 @@ module Google
2707
2787
  def update!(**args)
2708
2788
  @base_types = args[:base_types] if args.key?(:base_types)
2709
2789
  @display_name = args[:display_name] if args.key?(:display_name)
2790
+ @entity_type_metadata = args[:entity_type_metadata] if args.key?(:entity_type_metadata)
2710
2791
  @enum_values = args[:enum_values] if args.key?(:enum_values)
2711
2792
  @name = args[:name] if args.key?(:name)
2712
2793
  @properties = args[:properties] if args.key?(:properties)
@@ -2747,6 +2828,11 @@ module Google
2747
2828
  # @return [String]
2748
2829
  attr_accessor :occurrence_type
2749
2830
 
2831
+ # Metadata about a property.
2832
+ # Corresponds to the JSON property `propertyMetadata`
2833
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1PropertyMetadata]
2834
+ attr_accessor :property_metadata
2835
+
2750
2836
  # A reference to the value type of the property. This type is subject to the
2751
2837
  # same conventions as the `Entity.base_types` field.
2752
2838
  # Corresponds to the JSON property `valueType`
@@ -2761,6 +2847,7 @@ module Google
2761
2847
  def update!(**args)
2762
2848
  @name = args[:name] if args.key?(:name)
2763
2849
  @occurrence_type = args[:occurrence_type] if args.key?(:occurrence_type)
2850
+ @property_metadata = args[:property_metadata] if args.key?(:property_metadata)
2764
2851
  @value_type = args[:value_type] if args.key?(:value_type)
2765
2852
  end
2766
2853
  end
@@ -2789,6 +2876,14 @@ module Google
2789
2876
  attr_accessor :prefixed_naming_on_properties
2790
2877
  alias_method :prefixed_naming_on_properties?, :prefixed_naming_on_properties
2791
2878
 
2879
+ # If set, we will skip the naming format validation in the schema. So the string
2880
+ # values in `DocumentSchema.EntityType.name` and `DocumentSchema.EntityType.
2881
+ # Property.name` will not be checked.
2882
+ # Corresponds to the JSON property `skipNamingValidation`
2883
+ # @return [Boolean]
2884
+ attr_accessor :skip_naming_validation
2885
+ alias_method :skip_naming_validation?, :skip_naming_validation
2886
+
2792
2887
  def initialize(**args)
2793
2888
  update!(**args)
2794
2889
  end
@@ -2798,6 +2893,7 @@ module Google
2798
2893
  @document_allow_multiple_labels = args[:document_allow_multiple_labels] if args.key?(:document_allow_multiple_labels)
2799
2894
  @document_splitter = args[:document_splitter] if args.key?(:document_splitter)
2800
2895
  @prefixed_naming_on_properties = args[:prefixed_naming_on_properties] if args.key?(:prefixed_naming_on_properties)
2896
+ @skip_naming_validation = args[:skip_naming_validation] if args.key?(:skip_naming_validation)
2801
2897
  end
2802
2898
  end
2803
2899
 
@@ -3136,6 +3232,45 @@ module Google
3136
3232
  end
3137
3233
  end
3138
3234
 
3235
+ # Metadata about an entity type.
3236
+ class GoogleCloudDocumentaiV1EntityTypeMetadata
3237
+ include Google::Apis::Core::Hashable
3238
+
3239
+ # Metadata for human review labeling config.
3240
+ # Corresponds to the JSON property `humanReviewLabelingMetadata`
3241
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1HumanReviewLabelingMetadata]
3242
+ attr_accessor :human_review_labeling_metadata
3243
+
3244
+ # Metadata for Human Review config.
3245
+ # Corresponds to the JSON property `humanReviewMetadata`
3246
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1HumanReviewValidationMetadata]
3247
+ attr_accessor :human_review_metadata
3248
+
3249
+ # Whether the entity type should be considered as "inactive".
3250
+ # Corresponds to the JSON property `inactive`
3251
+ # @return [Boolean]
3252
+ attr_accessor :inactive
3253
+ alias_method :inactive?, :inactive
3254
+
3255
+ # If set, the properties of this entity type must be prefixed with the parents.
3256
+ # Corresponds to the JSON property `prefixedNamingOnProperties`
3257
+ # @return [Boolean]
3258
+ attr_accessor :prefixed_naming_on_properties
3259
+ alias_method :prefixed_naming_on_properties?, :prefixed_naming_on_properties
3260
+
3261
+ def initialize(**args)
3262
+ update!(**args)
3263
+ end
3264
+
3265
+ # Update properties of this object
3266
+ def update!(**args)
3267
+ @human_review_labeling_metadata = args[:human_review_labeling_metadata] if args.key?(:human_review_labeling_metadata)
3268
+ @human_review_metadata = args[:human_review_metadata] if args.key?(:human_review_metadata)
3269
+ @inactive = args[:inactive] if args.key?(:inactive)
3270
+ @prefixed_naming_on_properties = args[:prefixed_naming_on_properties] if args.key?(:prefixed_naming_on_properties)
3271
+ end
3272
+ end
3273
+
3139
3274
  # Response message for fetch processor types.
3140
3275
  class GoogleCloudDocumentaiV1FetchProcessorTypesResponse
3141
3276
  include Google::Apis::Core::Hashable
@@ -3218,6 +3353,26 @@ module Google
3218
3353
  end
3219
3354
  end
3220
3355
 
3356
+ # Metadata for human review labeling config.
3357
+ class GoogleCloudDocumentaiV1HumanReviewLabelingMetadata
3358
+ include Google::Apis::Core::Hashable
3359
+
3360
+ # Whether to enable normalization editing.
3361
+ # Corresponds to the JSON property `enableNormalizationEditing`
3362
+ # @return [Boolean]
3363
+ attr_accessor :enable_normalization_editing
3364
+ alias_method :enable_normalization_editing?, :enable_normalization_editing
3365
+
3366
+ def initialize(**args)
3367
+ update!(**args)
3368
+ end
3369
+
3370
+ # Update properties of this object
3371
+ def update!(**args)
3372
+ @enable_normalization_editing = args[:enable_normalization_editing] if args.key?(:enable_normalization_editing)
3373
+ end
3374
+ end
3375
+
3221
3376
  # The status of human review on a processed document.
3222
3377
  class GoogleCloudDocumentaiV1HumanReviewStatus
3223
3378
  include Google::Apis::Core::Hashable
@@ -3252,6 +3407,32 @@ module Google
3252
3407
  end
3253
3408
  end
3254
3409
 
3410
+ # Metadata for Human Review config.
3411
+ class GoogleCloudDocumentaiV1HumanReviewValidationMetadata
3412
+ include Google::Apis::Core::Hashable
3413
+
3414
+ # The confidence threshold if human review validation is enabled.
3415
+ # Corresponds to the JSON property `confidenceThreshold`
3416
+ # @return [Float]
3417
+ attr_accessor :confidence_threshold
3418
+
3419
+ # Whether to enable human review validation.
3420
+ # Corresponds to the JSON property `enableValidation`
3421
+ # @return [Boolean]
3422
+ attr_accessor :enable_validation
3423
+ alias_method :enable_validation?, :enable_validation
3424
+
3425
+ def initialize(**args)
3426
+ update!(**args)
3427
+ end
3428
+
3429
+ # Update properties of this object
3430
+ def update!(**args)
3431
+ @confidence_threshold = args[:confidence_threshold] if args.key?(:confidence_threshold)
3432
+ @enable_validation = args[:enable_validation] if args.key?(:enable_validation)
3433
+ end
3434
+ end
3435
+
3255
3436
  # Response message for list processor types.
3256
3437
  class GoogleCloudDocumentaiV1ListProcessorTypesResponse
3257
3438
  include Google::Apis::Core::Hashable
@@ -3654,6 +3835,38 @@ module Google
3654
3835
  end
3655
3836
  end
3656
3837
 
3838
+ # Metadata about a property.
3839
+ class GoogleCloudDocumentaiV1PropertyMetadata
3840
+ include Google::Apis::Core::Hashable
3841
+
3842
+ # Metadata for human review labeling config.
3843
+ # Corresponds to the JSON property `humanReviewLabelingMetadata`
3844
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1HumanReviewLabelingMetadata]
3845
+ attr_accessor :human_review_labeling_metadata
3846
+
3847
+ # Metadata for Human Review config.
3848
+ # Corresponds to the JSON property `humanReviewMetadata`
3849
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1HumanReviewValidationMetadata]
3850
+ attr_accessor :human_review_metadata
3851
+
3852
+ # Whether the property should be considered as "inactive".
3853
+ # Corresponds to the JSON property `inactive`
3854
+ # @return [Boolean]
3855
+ attr_accessor :inactive
3856
+ alias_method :inactive?, :inactive
3857
+
3858
+ def initialize(**args)
3859
+ update!(**args)
3860
+ end
3861
+
3862
+ # Update properties of this object
3863
+ def update!(**args)
3864
+ @human_review_labeling_metadata = args[:human_review_labeling_metadata] if args.key?(:human_review_labeling_metadata)
3865
+ @human_review_metadata = args[:human_review_metadata] if args.key?(:human_review_metadata)
3866
+ @inactive = args[:inactive] if args.key?(:inactive)
3867
+ end
3868
+ end
3869
+
3657
3870
  # Payload message of raw document content (bytes).
3658
3871
  class GoogleCloudDocumentaiV1RawDocument
3659
3872
  include Google::Apis::Core::Hashable
@@ -4182,15 +4395,6 @@ module Google
4182
4395
  # @return [String]
4183
4396
  attr_accessor :mention_text
4184
4397
 
4185
- # Optional. This attribute indicates that the processing didn't actually
4186
- # identify this entity, but a confidence score was assigned that represent the
4187
- # potential that this could be a false negative. A non-present entity should
4188
- # have an empty mention_text and text_anchor.
4189
- # Corresponds to the JSON property `nonPresent`
4190
- # @return [Boolean]
4191
- attr_accessor :non_present
4192
- alias_method :non_present?, :non_present
4193
-
4194
4398
  # Parsed and normalized entity value.
4195
4399
  # Corresponds to the JSON property `normalizedValue`
4196
4400
  # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue]
@@ -4241,7 +4445,6 @@ module Google
4241
4445
  @id = args[:id] if args.key?(:id)
4242
4446
  @mention_id = args[:mention_id] if args.key?(:mention_id)
4243
4447
  @mention_text = args[:mention_text] if args.key?(:mention_text)
4244
- @non_present = args[:non_present] if args.key?(:non_present)
4245
4448
  @normalized_value = args[:normalized_value] if args.key?(:normalized_value)
4246
4449
  @page_anchor = args[:page_anchor] if args.key?(:page_anchor)
4247
4450
  @properties = args[:properties] if args.key?(:properties)
@@ -6021,15 +6224,6 @@ module Google
6021
6224
  # @return [String]
6022
6225
  attr_accessor :mention_text
6023
6226
 
6024
- # Optional. This attribute indicates that the processing didn't actually
6025
- # identify this entity, but a confidence score was assigned that represent the
6026
- # potential that this could be a false negative. A non-present entity should
6027
- # have an empty mention_text and text_anchor.
6028
- # Corresponds to the JSON property `nonPresent`
6029
- # @return [Boolean]
6030
- attr_accessor :non_present
6031
- alias_method :non_present?, :non_present
6032
-
6033
6227
  # Parsed and normalized entity value.
6034
6228
  # Corresponds to the JSON property `normalizedValue`
6035
6229
  # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue]
@@ -6080,7 +6274,6 @@ module Google
6080
6274
  @id = args[:id] if args.key?(:id)
6081
6275
  @mention_id = args[:mention_id] if args.key?(:mention_id)
6082
6276
  @mention_text = args[:mention_text] if args.key?(:mention_text)
6083
- @non_present = args[:non_present] if args.key?(:non_present)
6084
6277
  @normalized_value = args[:normalized_value] if args.key?(:normalized_value)
6085
6278
  @page_anchor = args[:page_anchor] if args.key?(:page_anchor)
6086
6279
  @properties = args[:properties] if args.key?(:properties)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DocumentaiV1
18
18
  # Version of the google-apis-documentai_v1 gem
19
- GEM_VERSION = "0.43.0"
19
+ GEM_VERSION = "0.46.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.9.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220720"
25
+ REVISION = "20220821"
26
26
  end
27
27
  end
28
28
  end
@@ -172,6 +172,12 @@ module Google
172
172
  include Google::Apis::Core::JsonObjectSupport
173
173
  end
174
174
 
175
+ class GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataImportConfigValidationResult
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
175
181
  class GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus
176
182
  class Representation < Google::Apis::Core::JsonRepresentation; end
177
183
 
@@ -190,7 +196,13 @@ module Google
190
196
  include Google::Apis::Core::JsonObjectSupport
191
197
  end
192
198
 
193
- class GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataUpdatedDocument
199
+ class GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataDatasetResyncStatus
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
205
+ class GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataIndividualDocumentResyncStatus
194
206
  class Representation < Google::Apis::Core::JsonRepresentation; end
195
207
 
196
208
  include Google::Apis::Core::JsonObjectSupport
@@ -628,6 +640,12 @@ module Google
628
640
  include Google::Apis::Core::JsonObjectSupport
629
641
  end
630
642
 
643
+ class GoogleCloudDocumentaiV1EntityTypeMetadata
644
+ class Representation < Google::Apis::Core::JsonRepresentation; end
645
+
646
+ include Google::Apis::Core::JsonObjectSupport
647
+ end
648
+
631
649
  class GoogleCloudDocumentaiV1FetchProcessorTypesResponse
632
650
  class Representation < Google::Apis::Core::JsonRepresentation; end
633
651
 
@@ -652,12 +670,24 @@ module Google
652
670
  include Google::Apis::Core::JsonObjectSupport
653
671
  end
654
672
 
673
+ class GoogleCloudDocumentaiV1HumanReviewLabelingMetadata
674
+ class Representation < Google::Apis::Core::JsonRepresentation; end
675
+
676
+ include Google::Apis::Core::JsonObjectSupport
677
+ end
678
+
655
679
  class GoogleCloudDocumentaiV1HumanReviewStatus
656
680
  class Representation < Google::Apis::Core::JsonRepresentation; end
657
681
 
658
682
  include Google::Apis::Core::JsonObjectSupport
659
683
  end
660
684
 
685
+ class GoogleCloudDocumentaiV1HumanReviewValidationMetadata
686
+ class Representation < Google::Apis::Core::JsonRepresentation; end
687
+
688
+ include Google::Apis::Core::JsonObjectSupport
689
+ end
690
+
661
691
  class GoogleCloudDocumentaiV1ListProcessorTypesResponse
662
692
  class Representation < Google::Apis::Core::JsonRepresentation; end
663
693
 
@@ -724,6 +754,12 @@ module Google
724
754
  include Google::Apis::Core::JsonObjectSupport
725
755
  end
726
756
 
757
+ class GoogleCloudDocumentaiV1PropertyMetadata
758
+ class Representation < Google::Apis::Core::JsonRepresentation; end
759
+
760
+ include Google::Apis::Core::JsonObjectSupport
761
+ end
762
+
727
763
  class GoogleCloudDocumentaiV1RawDocument
728
764
  class Representation < Google::Apis::Core::JsonRepresentation; end
729
765
 
@@ -1539,8 +1575,10 @@ module Google
1539
1575
  class Representation < Google::Apis::Core::JsonRepresentation
1540
1576
  property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata::Representation
1541
1577
 
1578
+ property :error_document_count, as: 'errorDocumentCount'
1542
1579
  collection :individual_batch_delete_statuses, as: 'individualBatchDeleteStatuses', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus::Representation
1543
1580
 
1581
+ property :total_document_count, as: 'totalDocumentCount'
1544
1582
  end
1545
1583
  end
1546
1584
 
@@ -1734,12 +1772,23 @@ module Google
1734
1772
  class Representation < Google::Apis::Core::JsonRepresentation
1735
1773
  property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata::Representation
1736
1774
 
1775
+ collection :import_config_validation_results, as: 'importConfigValidationResults', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataImportConfigValidationResult, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataImportConfigValidationResult::Representation
1776
+
1737
1777
  collection :individual_import_statuses, as: 'individualImportStatuses', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus::Representation
1738
1778
 
1739
1779
  property :total_document_count, as: 'totalDocumentCount'
1740
1780
  end
1741
1781
  end
1742
1782
 
1783
+ class GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataImportConfigValidationResult
1784
+ # @private
1785
+ class Representation < Google::Apis::Core::JsonRepresentation
1786
+ property :input_gcs_source, as: 'inputGcsSource'
1787
+ property :status, as: 'status', class: Google::Apis::DocumentaiV1::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1::GoogleRpcStatus::Representation
1788
+
1789
+ end
1790
+ end
1791
+
1743
1792
  class GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus
1744
1793
  # @private
1745
1794
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1761,16 +1810,28 @@ module Google
1761
1810
  class Representation < Google::Apis::Core::JsonRepresentation
1762
1811
  property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata::Representation
1763
1812
 
1764
- collection :newly_added_documents, as: 'newlyAddedDocuments', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataUpdatedDocument, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataUpdatedDocument::Representation
1813
+ collection :dataset_resync_statuses, as: 'datasetResyncStatuses', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataDatasetResyncStatus, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataDatasetResyncStatus::Representation
1814
+
1815
+ collection :individual_document_resync_statuses, as: 'individualDocumentResyncStatuses', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataIndividualDocumentResyncStatus, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataIndividualDocumentResyncStatus::Representation
1765
1816
 
1766
1817
  end
1767
1818
  end
1768
1819
 
1769
- class GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataUpdatedDocument
1820
+ class GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataDatasetResyncStatus
1770
1821
  # @private
1771
1822
  class Representation < Google::Apis::Core::JsonRepresentation
1772
- property :destination_prefix, as: 'destinationPrefix'
1773
- property :source_prefix, as: 'sourcePrefix'
1823
+ property :dataset_inconsistency_type, as: 'datasetInconsistencyType'
1824
+ property :status, as: 'status', class: Google::Apis::DocumentaiV1::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1::GoogleRpcStatus::Representation
1825
+
1826
+ end
1827
+ end
1828
+
1829
+ class GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataIndividualDocumentResyncStatus
1830
+ # @private
1831
+ class Representation < Google::Apis::Core::JsonRepresentation
1832
+ property :document_id, as: 'documentId', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3DocumentId, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3DocumentId::Representation
1833
+
1834
+ property :document_inconsistency_type, as: 'documentInconsistencyType'
1774
1835
  property :status, as: 'status', class: Google::Apis::DocumentaiV1::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1::GoogleRpcStatus::Representation
1775
1836
 
1776
1837
  end
@@ -2044,7 +2105,6 @@ module Google
2044
2105
  property :id, as: 'id'
2045
2106
  property :mention_id, as: 'mentionId'
2046
2107
  property :mention_text, as: 'mentionText'
2047
- property :non_present, as: 'nonPresent'
2048
2108
  property :normalized_value, as: 'normalizedValue', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentEntityNormalizedValue, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentEntityNormalizedValue::Representation
2049
2109
 
2050
2110
  property :page_anchor, as: 'pageAnchor', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageAnchor, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageAnchor::Representation
@@ -2408,6 +2468,8 @@ module Google
2408
2468
  class Representation < Google::Apis::Core::JsonRepresentation
2409
2469
  collection :base_types, as: 'baseTypes'
2410
2470
  property :display_name, as: 'displayName'
2471
+ property :entity_type_metadata, as: 'entityTypeMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1EntityTypeMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1EntityTypeMetadata::Representation
2472
+
2411
2473
  property :enum_values, as: 'enumValues', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchemaEntityTypeEnumValues, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchemaEntityTypeEnumValues::Representation
2412
2474
 
2413
2475
  property :name, as: 'name'
@@ -2428,6 +2490,8 @@ module Google
2428
2490
  class Representation < Google::Apis::Core::JsonRepresentation
2429
2491
  property :name, as: 'name'
2430
2492
  property :occurrence_type, as: 'occurrenceType'
2493
+ property :property_metadata, as: 'propertyMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1PropertyMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1PropertyMetadata::Representation
2494
+
2431
2495
  property :value_type, as: 'valueType'
2432
2496
  end
2433
2497
  end
@@ -2438,6 +2502,7 @@ module Google
2438
2502
  property :document_allow_multiple_labels, as: 'documentAllowMultipleLabels'
2439
2503
  property :document_splitter, as: 'documentSplitter'
2440
2504
  property :prefixed_naming_on_properties, as: 'prefixedNamingOnProperties'
2505
+ property :skip_naming_validation, as: 'skipNamingValidation'
2441
2506
  end
2442
2507
  end
2443
2508
 
@@ -2523,6 +2588,18 @@ module Google
2523
2588
  end
2524
2589
  end
2525
2590
 
2591
+ class GoogleCloudDocumentaiV1EntityTypeMetadata
2592
+ # @private
2593
+ class Representation < Google::Apis::Core::JsonRepresentation
2594
+ property :human_review_labeling_metadata, as: 'humanReviewLabelingMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1HumanReviewLabelingMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1HumanReviewLabelingMetadata::Representation
2595
+
2596
+ property :human_review_metadata, as: 'humanReviewMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1HumanReviewValidationMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1HumanReviewValidationMetadata::Representation
2597
+
2598
+ property :inactive, as: 'inactive'
2599
+ property :prefixed_naming_on_properties, as: 'prefixedNamingOnProperties'
2600
+ end
2601
+ end
2602
+
2526
2603
  class GoogleCloudDocumentaiV1FetchProcessorTypesResponse
2527
2604
  # @private
2528
2605
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2554,6 +2631,13 @@ module Google
2554
2631
  end
2555
2632
  end
2556
2633
 
2634
+ class GoogleCloudDocumentaiV1HumanReviewLabelingMetadata
2635
+ # @private
2636
+ class Representation < Google::Apis::Core::JsonRepresentation
2637
+ property :enable_normalization_editing, as: 'enableNormalizationEditing'
2638
+ end
2639
+ end
2640
+
2557
2641
  class GoogleCloudDocumentaiV1HumanReviewStatus
2558
2642
  # @private
2559
2643
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2563,6 +2647,14 @@ module Google
2563
2647
  end
2564
2648
  end
2565
2649
 
2650
+ class GoogleCloudDocumentaiV1HumanReviewValidationMetadata
2651
+ # @private
2652
+ class Representation < Google::Apis::Core::JsonRepresentation
2653
+ property :confidence_threshold, as: 'confidenceThreshold'
2654
+ property :enable_validation, as: 'enableValidation'
2655
+ end
2656
+ end
2657
+
2566
2658
  class GoogleCloudDocumentaiV1ListProcessorTypesResponse
2567
2659
  # @private
2568
2660
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2677,6 +2769,17 @@ module Google
2677
2769
  end
2678
2770
  end
2679
2771
 
2772
+ class GoogleCloudDocumentaiV1PropertyMetadata
2773
+ # @private
2774
+ class Representation < Google::Apis::Core::JsonRepresentation
2775
+ property :human_review_labeling_metadata, as: 'humanReviewLabelingMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1HumanReviewLabelingMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1HumanReviewLabelingMetadata::Representation
2776
+
2777
+ property :human_review_metadata, as: 'humanReviewMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1HumanReviewValidationMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1HumanReviewValidationMetadata::Representation
2778
+
2779
+ property :inactive, as: 'inactive'
2780
+ end
2781
+ end
2782
+
2680
2783
  class GoogleCloudDocumentaiV1RawDocument
2681
2784
  # @private
2682
2785
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2843,7 +2946,6 @@ module Google
2843
2946
  property :id, as: 'id'
2844
2947
  property :mention_id, as: 'mentionId'
2845
2948
  property :mention_text, as: 'mentionText'
2846
- property :non_present, as: 'nonPresent'
2847
2949
  property :normalized_value, as: 'normalizedValue', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue::Representation
2848
2950
 
2849
2951
  property :page_anchor, as: 'pageAnchor', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageAnchor, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageAnchor::Representation
@@ -3367,7 +3469,6 @@ module Google
3367
3469
  property :id, as: 'id'
3368
3470
  property :mention_id, as: 'mentionId'
3369
3471
  property :mention_text, as: 'mentionText'
3370
- property :non_present, as: 'nonPresent'
3371
3472
  property :normalized_value, as: 'normalizedValue', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue::Representation
3372
3473
 
3373
3474
  property :page_anchor, as: 'pageAnchor', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageAnchor, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageAnchor::Representation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-documentai_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.43.0
4
+ version: 0.46.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: 2022-08-01 00:00:00.000000000 Z
11
+ date: 2022-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-documentai_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1/v0.43.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1/v0.46.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-documentai_v1
63
63
  post_install_message:
64
64
  rdoc_options: []