google-apis-documentai_v1beta3 0.21.0 → 0.25.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/lib/google/apis/documentai_v1beta3/classes.rb +695 -4
- data/lib/google/apis/documentai_v1beta3/gem_version.rb +2 -2
- data/lib/google/apis/documentai_v1beta3/representations.rb +402 -0
- data/lib/google/apis/documentai_v1beta3/service.rb +231 -0
- metadata +3 -3
@@ -760,6 +760,142 @@ module Google
|
|
760
760
|
end
|
761
761
|
end
|
762
762
|
|
763
|
+
# The long running operation metadata for delete processor method.
|
764
|
+
class GoogleCloudDocumentaiV1DeleteProcessorMetadata
|
765
|
+
include Google::Apis::Core::Hashable
|
766
|
+
|
767
|
+
# The common metadata for long running operations.
|
768
|
+
# Corresponds to the JSON property `commonMetadata`
|
769
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1CommonOperationMetadata]
|
770
|
+
attr_accessor :common_metadata
|
771
|
+
|
772
|
+
def initialize(**args)
|
773
|
+
update!(**args)
|
774
|
+
end
|
775
|
+
|
776
|
+
# Update properties of this object
|
777
|
+
def update!(**args)
|
778
|
+
@common_metadata = args[:common_metadata] if args.key?(:common_metadata)
|
779
|
+
end
|
780
|
+
end
|
781
|
+
|
782
|
+
# The long running operation metadata for delete processor version method.
|
783
|
+
class GoogleCloudDocumentaiV1DeleteProcessorVersionMetadata
|
784
|
+
include Google::Apis::Core::Hashable
|
785
|
+
|
786
|
+
# The common metadata for long running operations.
|
787
|
+
# Corresponds to the JSON property `commonMetadata`
|
788
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1CommonOperationMetadata]
|
789
|
+
attr_accessor :common_metadata
|
790
|
+
|
791
|
+
def initialize(**args)
|
792
|
+
update!(**args)
|
793
|
+
end
|
794
|
+
|
795
|
+
# Update properties of this object
|
796
|
+
def update!(**args)
|
797
|
+
@common_metadata = args[:common_metadata] if args.key?(:common_metadata)
|
798
|
+
end
|
799
|
+
end
|
800
|
+
|
801
|
+
# The long running operation metadata for deploy processor version method.
|
802
|
+
class GoogleCloudDocumentaiV1DeployProcessorVersionMetadata
|
803
|
+
include Google::Apis::Core::Hashable
|
804
|
+
|
805
|
+
# The common metadata for long running operations.
|
806
|
+
# Corresponds to the JSON property `commonMetadata`
|
807
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1CommonOperationMetadata]
|
808
|
+
attr_accessor :common_metadata
|
809
|
+
|
810
|
+
def initialize(**args)
|
811
|
+
update!(**args)
|
812
|
+
end
|
813
|
+
|
814
|
+
# Update properties of this object
|
815
|
+
def update!(**args)
|
816
|
+
@common_metadata = args[:common_metadata] if args.key?(:common_metadata)
|
817
|
+
end
|
818
|
+
end
|
819
|
+
|
820
|
+
# Response message for the deploy processor version method.
|
821
|
+
class GoogleCloudDocumentaiV1DeployProcessorVersionResponse
|
822
|
+
include Google::Apis::Core::Hashable
|
823
|
+
|
824
|
+
def initialize(**args)
|
825
|
+
update!(**args)
|
826
|
+
end
|
827
|
+
|
828
|
+
# Update properties of this object
|
829
|
+
def update!(**args)
|
830
|
+
end
|
831
|
+
end
|
832
|
+
|
833
|
+
# The long running operation metadata for disable processor method.
|
834
|
+
class GoogleCloudDocumentaiV1DisableProcessorMetadata
|
835
|
+
include Google::Apis::Core::Hashable
|
836
|
+
|
837
|
+
# The common metadata for long running operations.
|
838
|
+
# Corresponds to the JSON property `commonMetadata`
|
839
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1CommonOperationMetadata]
|
840
|
+
attr_accessor :common_metadata
|
841
|
+
|
842
|
+
def initialize(**args)
|
843
|
+
update!(**args)
|
844
|
+
end
|
845
|
+
|
846
|
+
# Update properties of this object
|
847
|
+
def update!(**args)
|
848
|
+
@common_metadata = args[:common_metadata] if args.key?(:common_metadata)
|
849
|
+
end
|
850
|
+
end
|
851
|
+
|
852
|
+
# Response message for the disable processor method. Intentionally empty proto
|
853
|
+
# for adding fields in future.
|
854
|
+
class GoogleCloudDocumentaiV1DisableProcessorResponse
|
855
|
+
include Google::Apis::Core::Hashable
|
856
|
+
|
857
|
+
def initialize(**args)
|
858
|
+
update!(**args)
|
859
|
+
end
|
860
|
+
|
861
|
+
# Update properties of this object
|
862
|
+
def update!(**args)
|
863
|
+
end
|
864
|
+
end
|
865
|
+
|
866
|
+
# The long running operation metadata for enable processor method.
|
867
|
+
class GoogleCloudDocumentaiV1EnableProcessorMetadata
|
868
|
+
include Google::Apis::Core::Hashable
|
869
|
+
|
870
|
+
# The common metadata for long running operations.
|
871
|
+
# Corresponds to the JSON property `commonMetadata`
|
872
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1CommonOperationMetadata]
|
873
|
+
attr_accessor :common_metadata
|
874
|
+
|
875
|
+
def initialize(**args)
|
876
|
+
update!(**args)
|
877
|
+
end
|
878
|
+
|
879
|
+
# Update properties of this object
|
880
|
+
def update!(**args)
|
881
|
+
@common_metadata = args[:common_metadata] if args.key?(:common_metadata)
|
882
|
+
end
|
883
|
+
end
|
884
|
+
|
885
|
+
# Response message for the enable processor method. Intentionally empty proto
|
886
|
+
# for adding fields in future.
|
887
|
+
class GoogleCloudDocumentaiV1EnableProcessorResponse
|
888
|
+
include Google::Apis::Core::Hashable
|
889
|
+
|
890
|
+
def initialize(**args)
|
891
|
+
update!(**args)
|
892
|
+
end
|
893
|
+
|
894
|
+
# Update properties of this object
|
895
|
+
def update!(**args)
|
896
|
+
end
|
897
|
+
end
|
898
|
+
|
763
899
|
# The status of human review on a processed document.
|
764
900
|
class GoogleCloudDocumentaiV1HumanReviewStatus
|
765
901
|
include Google::Apis::Core::Hashable
|
@@ -832,6 +968,70 @@ module Google
|
|
832
968
|
end
|
833
969
|
end
|
834
970
|
|
971
|
+
# The long running operation metadata for set default processor version method.
|
972
|
+
class GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata
|
973
|
+
include Google::Apis::Core::Hashable
|
974
|
+
|
975
|
+
# The common metadata for long running operations.
|
976
|
+
# Corresponds to the JSON property `commonMetadata`
|
977
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1CommonOperationMetadata]
|
978
|
+
attr_accessor :common_metadata
|
979
|
+
|
980
|
+
def initialize(**args)
|
981
|
+
update!(**args)
|
982
|
+
end
|
983
|
+
|
984
|
+
# Update properties of this object
|
985
|
+
def update!(**args)
|
986
|
+
@common_metadata = args[:common_metadata] if args.key?(:common_metadata)
|
987
|
+
end
|
988
|
+
end
|
989
|
+
|
990
|
+
# Response message for set default processor version method.
|
991
|
+
class GoogleCloudDocumentaiV1SetDefaultProcessorVersionResponse
|
992
|
+
include Google::Apis::Core::Hashable
|
993
|
+
|
994
|
+
def initialize(**args)
|
995
|
+
update!(**args)
|
996
|
+
end
|
997
|
+
|
998
|
+
# Update properties of this object
|
999
|
+
def update!(**args)
|
1000
|
+
end
|
1001
|
+
end
|
1002
|
+
|
1003
|
+
# The long running operation metadata for the undeploy processor version method.
|
1004
|
+
class GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata
|
1005
|
+
include Google::Apis::Core::Hashable
|
1006
|
+
|
1007
|
+
# The common metadata for long running operations.
|
1008
|
+
# Corresponds to the JSON property `commonMetadata`
|
1009
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1CommonOperationMetadata]
|
1010
|
+
attr_accessor :common_metadata
|
1011
|
+
|
1012
|
+
def initialize(**args)
|
1013
|
+
update!(**args)
|
1014
|
+
end
|
1015
|
+
|
1016
|
+
# Update properties of this object
|
1017
|
+
def update!(**args)
|
1018
|
+
@common_metadata = args[:common_metadata] if args.key?(:common_metadata)
|
1019
|
+
end
|
1020
|
+
end
|
1021
|
+
|
1022
|
+
# Response message for the undeploy processor version method.
|
1023
|
+
class GoogleCloudDocumentaiV1UndeployProcessorVersionResponse
|
1024
|
+
include Google::Apis::Core::Hashable
|
1025
|
+
|
1026
|
+
def initialize(**args)
|
1027
|
+
update!(**args)
|
1028
|
+
end
|
1029
|
+
|
1030
|
+
# Update properties of this object
|
1031
|
+
def update!(**args)
|
1032
|
+
end
|
1033
|
+
end
|
1034
|
+
|
835
1035
|
# Response to an batch document processing request. This is returned in the LRO
|
836
1036
|
# Operation after the operation is complete.
|
837
1037
|
class GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse
|
@@ -1465,6 +1665,20 @@ module Google
|
|
1465
1665
|
class GoogleCloudDocumentaiV1beta1DocumentPageFormField
|
1466
1666
|
include Google::Apis::Core::Hashable
|
1467
1667
|
|
1668
|
+
# Created for Labeling UI to export key text. If corrections were made to the
|
1669
|
+
# text identified by the `field_name.text_anchor`, this field will contain the
|
1670
|
+
# correction.
|
1671
|
+
# Corresponds to the JSON property `correctedKeyText`
|
1672
|
+
# @return [String]
|
1673
|
+
attr_accessor :corrected_key_text
|
1674
|
+
|
1675
|
+
# Created for Labeling UI to export value text. If corrections were made to the
|
1676
|
+
# text identified by the `field_value.text_anchor`, this field will contain the
|
1677
|
+
# correction.
|
1678
|
+
# Corresponds to the JSON property `correctedValueText`
|
1679
|
+
# @return [String]
|
1680
|
+
attr_accessor :corrected_value_text
|
1681
|
+
|
1468
1682
|
# Visual element describing a layout unit on a page.
|
1469
1683
|
# Corresponds to the JSON property `fieldName`
|
1470
1684
|
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageLayout]
|
@@ -1504,6 +1718,8 @@ module Google
|
|
1504
1718
|
|
1505
1719
|
# Update properties of this object
|
1506
1720
|
def update!(**args)
|
1721
|
+
@corrected_key_text = args[:corrected_key_text] if args.key?(:corrected_key_text)
|
1722
|
+
@corrected_value_text = args[:corrected_value_text] if args.key?(:corrected_value_text)
|
1507
1723
|
@field_name = args[:field_name] if args.key?(:field_name)
|
1508
1724
|
@field_value = args[:field_value] if args.key?(:field_value)
|
1509
1725
|
@name_detected_languages = args[:name_detected_languages] if args.key?(:name_detected_languages)
|
@@ -3205,6 +3421,20 @@ module Google
|
|
3205
3421
|
class GoogleCloudDocumentaiV1beta2DocumentPageFormField
|
3206
3422
|
include Google::Apis::Core::Hashable
|
3207
3423
|
|
3424
|
+
# Created for Labeling UI to export key text. If corrections were made to the
|
3425
|
+
# text identified by the `field_name.text_anchor`, this field will contain the
|
3426
|
+
# correction.
|
3427
|
+
# Corresponds to the JSON property `correctedKeyText`
|
3428
|
+
# @return [String]
|
3429
|
+
attr_accessor :corrected_key_text
|
3430
|
+
|
3431
|
+
# Created for Labeling UI to export value text. If corrections were made to the
|
3432
|
+
# text identified by the `field_value.text_anchor`, this field will contain the
|
3433
|
+
# correction.
|
3434
|
+
# Corresponds to the JSON property `correctedValueText`
|
3435
|
+
# @return [String]
|
3436
|
+
attr_accessor :corrected_value_text
|
3437
|
+
|
3208
3438
|
# Visual element describing a layout unit on a page.
|
3209
3439
|
# Corresponds to the JSON property `fieldName`
|
3210
3440
|
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageLayout]
|
@@ -3244,6 +3474,8 @@ module Google
|
|
3244
3474
|
|
3245
3475
|
# Update properties of this object
|
3246
3476
|
def update!(**args)
|
3477
|
+
@corrected_key_text = args[:corrected_key_text] if args.key?(:corrected_key_text)
|
3478
|
+
@corrected_value_text = args[:corrected_value_text] if args.key?(:corrected_value_text)
|
3247
3479
|
@field_name = args[:field_name] if args.key?(:field_name)
|
3248
3480
|
@field_value = args[:field_value] if args.key?(:field_value)
|
3249
3481
|
@name_detected_languages = args[:name_detected_languages] if args.key?(:name_detected_languages)
|
@@ -4589,6 +4821,70 @@ module Google
|
|
4589
4821
|
end
|
4590
4822
|
end
|
4591
4823
|
|
4824
|
+
# The long running operation metadata for delete processor version method.
|
4825
|
+
class GoogleCloudDocumentaiV1beta3DeleteProcessorVersionMetadata
|
4826
|
+
include Google::Apis::Core::Hashable
|
4827
|
+
|
4828
|
+
# The common metadata for long running operations.
|
4829
|
+
# Corresponds to the JSON property `commonMetadata`
|
4830
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3CommonOperationMetadata]
|
4831
|
+
attr_accessor :common_metadata
|
4832
|
+
|
4833
|
+
def initialize(**args)
|
4834
|
+
update!(**args)
|
4835
|
+
end
|
4836
|
+
|
4837
|
+
# Update properties of this object
|
4838
|
+
def update!(**args)
|
4839
|
+
@common_metadata = args[:common_metadata] if args.key?(:common_metadata)
|
4840
|
+
end
|
4841
|
+
end
|
4842
|
+
|
4843
|
+
# The long running operation metadata for deploy processor version method.
|
4844
|
+
class GoogleCloudDocumentaiV1beta3DeployProcessorVersionMetadata
|
4845
|
+
include Google::Apis::Core::Hashable
|
4846
|
+
|
4847
|
+
# The common metadata for long running operations.
|
4848
|
+
# Corresponds to the JSON property `commonMetadata`
|
4849
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3CommonOperationMetadata]
|
4850
|
+
attr_accessor :common_metadata
|
4851
|
+
|
4852
|
+
def initialize(**args)
|
4853
|
+
update!(**args)
|
4854
|
+
end
|
4855
|
+
|
4856
|
+
# Update properties of this object
|
4857
|
+
def update!(**args)
|
4858
|
+
@common_metadata = args[:common_metadata] if args.key?(:common_metadata)
|
4859
|
+
end
|
4860
|
+
end
|
4861
|
+
|
4862
|
+
# Request message for the deploy processor version method.
|
4863
|
+
class GoogleCloudDocumentaiV1beta3DeployProcessorVersionRequest
|
4864
|
+
include Google::Apis::Core::Hashable
|
4865
|
+
|
4866
|
+
def initialize(**args)
|
4867
|
+
update!(**args)
|
4868
|
+
end
|
4869
|
+
|
4870
|
+
# Update properties of this object
|
4871
|
+
def update!(**args)
|
4872
|
+
end
|
4873
|
+
end
|
4874
|
+
|
4875
|
+
# Response message for the deploy processor version method.
|
4876
|
+
class GoogleCloudDocumentaiV1beta3DeployProcessorVersionResponse
|
4877
|
+
include Google::Apis::Core::Hashable
|
4878
|
+
|
4879
|
+
def initialize(**args)
|
4880
|
+
update!(**args)
|
4881
|
+
end
|
4882
|
+
|
4883
|
+
# Update properties of this object
|
4884
|
+
def update!(**args)
|
4885
|
+
end
|
4886
|
+
end
|
4887
|
+
|
4592
4888
|
# The long running operation metadata for disable processor method.
|
4593
4889
|
class GoogleCloudDocumentaiV1beta3DisableProcessorMetadata
|
4594
4890
|
include Google::Apis::Core::Hashable
|
@@ -5262,6 +5558,20 @@ module Google
|
|
5262
5558
|
class GoogleCloudDocumentaiV1beta3DocumentPageFormField
|
5263
5559
|
include Google::Apis::Core::Hashable
|
5264
5560
|
|
5561
|
+
# Created for Labeling UI to export key text. If corrections were made to the
|
5562
|
+
# text identified by the `field_name.text_anchor`, this field will contain the
|
5563
|
+
# correction.
|
5564
|
+
# Corresponds to the JSON property `correctedKeyText`
|
5565
|
+
# @return [String]
|
5566
|
+
attr_accessor :corrected_key_text
|
5567
|
+
|
5568
|
+
# Created for Labeling UI to export value text. If corrections were made to the
|
5569
|
+
# text identified by the `field_value.text_anchor`, this field will contain the
|
5570
|
+
# correction.
|
5571
|
+
# Corresponds to the JSON property `correctedValueText`
|
5572
|
+
# @return [String]
|
5573
|
+
attr_accessor :corrected_value_text
|
5574
|
+
|
5265
5575
|
# Visual element describing a layout unit on a page.
|
5266
5576
|
# Corresponds to the JSON property `fieldName`
|
5267
5577
|
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageLayout]
|
@@ -5301,6 +5611,8 @@ module Google
|
|
5301
5611
|
|
5302
5612
|
# Update properties of this object
|
5303
5613
|
def update!(**args)
|
5614
|
+
@corrected_key_text = args[:corrected_key_text] if args.key?(:corrected_key_text)
|
5615
|
+
@corrected_value_text = args[:corrected_value_text] if args.key?(:corrected_value_text)
|
5304
5616
|
@field_name = args[:field_name] if args.key?(:field_name)
|
5305
5617
|
@field_value = args[:field_value] if args.key?(:field_value)
|
5306
5618
|
@name_detected_languages = args[:name_detected_languages] if args.key?(:name_detected_languages)
|
@@ -6159,6 +6471,104 @@ module Google
|
|
6159
6471
|
end
|
6160
6472
|
end
|
6161
6473
|
|
6474
|
+
# Evaluation metrics, either in aggregate or about a specific entity.
|
6475
|
+
class GoogleCloudDocumentaiV1beta3EvaluationMetrics
|
6476
|
+
include Google::Apis::Core::Hashable
|
6477
|
+
|
6478
|
+
# The calculated f1 score.
|
6479
|
+
# Corresponds to the JSON property `f1Score`
|
6480
|
+
# @return [Float]
|
6481
|
+
attr_accessor :f1_score
|
6482
|
+
|
6483
|
+
# The amount of false negatives.
|
6484
|
+
# Corresponds to the JSON property `falseNegativesCount`
|
6485
|
+
# @return [Fixnum]
|
6486
|
+
attr_accessor :false_negatives_count
|
6487
|
+
|
6488
|
+
# The amount of false positives.
|
6489
|
+
# Corresponds to the JSON property `falsePositivesCount`
|
6490
|
+
# @return [Fixnum]
|
6491
|
+
attr_accessor :false_positives_count
|
6492
|
+
|
6493
|
+
# The amount of occurrences in ground truth documents.
|
6494
|
+
# Corresponds to the JSON property `groundTruthOccurrencesCount`
|
6495
|
+
# @return [Fixnum]
|
6496
|
+
attr_accessor :ground_truth_occurrences_count
|
6497
|
+
|
6498
|
+
# The calculated precision.
|
6499
|
+
# Corresponds to the JSON property `precision`
|
6500
|
+
# @return [Float]
|
6501
|
+
attr_accessor :precision
|
6502
|
+
|
6503
|
+
# The amount of occurrences in predicted documents.
|
6504
|
+
# Corresponds to the JSON property `predictedOccurrencesCount`
|
6505
|
+
# @return [Fixnum]
|
6506
|
+
attr_accessor :predicted_occurrences_count
|
6507
|
+
|
6508
|
+
# The calculated recall.
|
6509
|
+
# Corresponds to the JSON property `recall`
|
6510
|
+
# @return [Float]
|
6511
|
+
attr_accessor :recall
|
6512
|
+
|
6513
|
+
# The amount of documents that had an occurrence of this label.
|
6514
|
+
# Corresponds to the JSON property `totalDocumentsCount`
|
6515
|
+
# @return [Fixnum]
|
6516
|
+
attr_accessor :total_documents_count
|
6517
|
+
|
6518
|
+
# The amount of true positives.
|
6519
|
+
# Corresponds to the JSON property `truePositivesCount`
|
6520
|
+
# @return [Fixnum]
|
6521
|
+
attr_accessor :true_positives_count
|
6522
|
+
|
6523
|
+
def initialize(**args)
|
6524
|
+
update!(**args)
|
6525
|
+
end
|
6526
|
+
|
6527
|
+
# Update properties of this object
|
6528
|
+
def update!(**args)
|
6529
|
+
@f1_score = args[:f1_score] if args.key?(:f1_score)
|
6530
|
+
@false_negatives_count = args[:false_negatives_count] if args.key?(:false_negatives_count)
|
6531
|
+
@false_positives_count = args[:false_positives_count] if args.key?(:false_positives_count)
|
6532
|
+
@ground_truth_occurrences_count = args[:ground_truth_occurrences_count] if args.key?(:ground_truth_occurrences_count)
|
6533
|
+
@precision = args[:precision] if args.key?(:precision)
|
6534
|
+
@predicted_occurrences_count = args[:predicted_occurrences_count] if args.key?(:predicted_occurrences_count)
|
6535
|
+
@recall = args[:recall] if args.key?(:recall)
|
6536
|
+
@total_documents_count = args[:total_documents_count] if args.key?(:total_documents_count)
|
6537
|
+
@true_positives_count = args[:true_positives_count] if args.key?(:true_positives_count)
|
6538
|
+
end
|
6539
|
+
end
|
6540
|
+
|
6541
|
+
# Gives a short summary of an evaluation, and links to the evaluation itself.
|
6542
|
+
class GoogleCloudDocumentaiV1beta3EvaluationReference
|
6543
|
+
include Google::Apis::Core::Hashable
|
6544
|
+
|
6545
|
+
# Evaluation metrics, either in aggregate or about a specific entity.
|
6546
|
+
# Corresponds to the JSON property `aggregateMetrics`
|
6547
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3EvaluationMetrics]
|
6548
|
+
attr_accessor :aggregate_metrics
|
6549
|
+
|
6550
|
+
# The resource name of the evaluation.
|
6551
|
+
# Corresponds to the JSON property `evaluation`
|
6552
|
+
# @return [String]
|
6553
|
+
attr_accessor :evaluation
|
6554
|
+
|
6555
|
+
# The resource name of the Long Running Operation for the evaluation.
|
6556
|
+
# Corresponds to the JSON property `operation`
|
6557
|
+
# @return [String]
|
6558
|
+
attr_accessor :operation
|
6559
|
+
|
6560
|
+
def initialize(**args)
|
6561
|
+
update!(**args)
|
6562
|
+
end
|
6563
|
+
|
6564
|
+
# Update properties of this object
|
6565
|
+
def update!(**args)
|
6566
|
+
@aggregate_metrics = args[:aggregate_metrics] if args.key?(:aggregate_metrics)
|
6567
|
+
@evaluation = args[:evaluation] if args.key?(:evaluation)
|
6568
|
+
@operation = args[:operation] if args.key?(:operation)
|
6569
|
+
end
|
6570
|
+
end
|
6571
|
+
|
6162
6572
|
# Response message for fetch processor types.
|
6163
6573
|
class GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse
|
6164
6574
|
include Google::Apis::Core::Hashable
|
@@ -6275,6 +6685,31 @@ module Google
|
|
6275
6685
|
end
|
6276
6686
|
end
|
6277
6687
|
|
6688
|
+
# Response message for list processors.
|
6689
|
+
class GoogleCloudDocumentaiV1beta3ListProcessorVersionsResponse
|
6690
|
+
include Google::Apis::Core::Hashable
|
6691
|
+
|
6692
|
+
# Points to the next processor, otherwise empty.
|
6693
|
+
# Corresponds to the JSON property `nextPageToken`
|
6694
|
+
# @return [String]
|
6695
|
+
attr_accessor :next_page_token
|
6696
|
+
|
6697
|
+
# The list of processors.
|
6698
|
+
# Corresponds to the JSON property `processorVersions`
|
6699
|
+
# @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessorVersion>]
|
6700
|
+
attr_accessor :processor_versions
|
6701
|
+
|
6702
|
+
def initialize(**args)
|
6703
|
+
update!(**args)
|
6704
|
+
end
|
6705
|
+
|
6706
|
+
# Update properties of this object
|
6707
|
+
def update!(**args)
|
6708
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
6709
|
+
@processor_versions = args[:processor_versions] if args.key?(:processor_versions)
|
6710
|
+
end
|
6711
|
+
end
|
6712
|
+
|
6278
6713
|
# Response message for list processors.
|
6279
6714
|
class GoogleCloudDocumentaiV1beta3ListProcessorsResponse
|
6280
6715
|
include Google::Apis::Core::Hashable
|
@@ -6488,13 +6923,12 @@ module Google
|
|
6488
6923
|
# EU' endpoint to feach processor types. In the return, we will have an 'invoice
|
6489
6924
|
# parsing' processor with 'available_locations' field only containing 'US'. So
|
6490
6925
|
# the user can try to create an 'invoice parsing' processor under the location '
|
6491
|
-
# US'. Such attempt of creating under the location 'EU' will fail. Next ID:
|
6926
|
+
# US'. Such attempt of creating under the location 'EU' will fail. Next ID: 9.
|
6492
6927
|
class GoogleCloudDocumentaiV1beta3ProcessorType
|
6493
6928
|
include Google::Apis::Core::Hashable
|
6494
6929
|
|
6495
6930
|
# Whether the processor type allows creation. If yes, user can create a
|
6496
|
-
# processor of this processor type. Otherwise, user needs to
|
6497
|
-
# whitelisting.
|
6931
|
+
# processor of this processor type. Otherwise, user needs to request access.
|
6498
6932
|
# Corresponds to the JSON property `allowCreation`
|
6499
6933
|
# @return [Boolean]
|
6500
6934
|
attr_accessor :allow_creation
|
@@ -6510,13 +6944,18 @@ module Google
|
|
6510
6944
|
# @return [String]
|
6511
6945
|
attr_accessor :category
|
6512
6946
|
|
6947
|
+
# Launch stage of the processor type
|
6948
|
+
# Corresponds to the JSON property `launchStage`
|
6949
|
+
# @return [String]
|
6950
|
+
attr_accessor :launch_stage
|
6951
|
+
|
6513
6952
|
# The resource name of the processor type. Format: projects/`project`/
|
6514
6953
|
# processorTypes/`processor_type`
|
6515
6954
|
# Corresponds to the JSON property `name`
|
6516
6955
|
# @return [String]
|
6517
6956
|
attr_accessor :name
|
6518
6957
|
|
6519
|
-
# The type of the processor, e.g
|
6958
|
+
# The type of the processor, e.g., "invoice_parsing".
|
6520
6959
|
# Corresponds to the JSON property `type`
|
6521
6960
|
# @return [String]
|
6522
6961
|
attr_accessor :type
|
@@ -6530,6 +6969,7 @@ module Google
|
|
6530
6969
|
@allow_creation = args[:allow_creation] if args.key?(:allow_creation)
|
6531
6970
|
@available_locations = args[:available_locations] if args.key?(:available_locations)
|
6532
6971
|
@category = args[:category] if args.key?(:category)
|
6972
|
+
@launch_stage = args[:launch_stage] if args.key?(:launch_stage)
|
6533
6973
|
@name = args[:name] if args.key?(:name)
|
6534
6974
|
@type = args[:type] if args.key?(:type)
|
6535
6975
|
end
|
@@ -6554,6 +6994,61 @@ module Google
|
|
6554
6994
|
end
|
6555
6995
|
end
|
6556
6996
|
|
6997
|
+
# A processor version is an implementation of a processor. Each processor can
|
6998
|
+
# have multiple versions, pre-trained by Google internally or up-trained by the
|
6999
|
+
# customer. At a time, a processor can only have one default version version. So
|
7000
|
+
# the processor's behavior (when processing documents) is defined by a default
|
7001
|
+
# version.
|
7002
|
+
class GoogleCloudDocumentaiV1beta3ProcessorVersion
|
7003
|
+
include Google::Apis::Core::Hashable
|
7004
|
+
|
7005
|
+
# The time the processor version was created.
|
7006
|
+
# Corresponds to the JSON property `createTime`
|
7007
|
+
# @return [String]
|
7008
|
+
attr_accessor :create_time
|
7009
|
+
|
7010
|
+
# The display name of the processor version.
|
7011
|
+
# Corresponds to the JSON property `displayName`
|
7012
|
+
# @return [String]
|
7013
|
+
attr_accessor :display_name
|
7014
|
+
|
7015
|
+
# Gives a short summary of an evaluation, and links to the evaluation itself.
|
7016
|
+
# Corresponds to the JSON property `latestEvaluation`
|
7017
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3EvaluationReference]
|
7018
|
+
attr_accessor :latest_evaluation
|
7019
|
+
|
7020
|
+
# The resource name of the processor version. Format: projects/`project`/
|
7021
|
+
# locations/`location`/processors/`processor`/processorVersions/`
|
7022
|
+
# processor_version`
|
7023
|
+
# Corresponds to the JSON property `name`
|
7024
|
+
# @return [String]
|
7025
|
+
attr_accessor :name
|
7026
|
+
|
7027
|
+
# The schema defines the output of the processed document by a processor.
|
7028
|
+
# Corresponds to the JSON property `schema`
|
7029
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Schema]
|
7030
|
+
attr_accessor :schema
|
7031
|
+
|
7032
|
+
# The state of the processor version.
|
7033
|
+
# Corresponds to the JSON property `state`
|
7034
|
+
# @return [String]
|
7035
|
+
attr_accessor :state
|
7036
|
+
|
7037
|
+
def initialize(**args)
|
7038
|
+
update!(**args)
|
7039
|
+
end
|
7040
|
+
|
7041
|
+
# Update properties of this object
|
7042
|
+
def update!(**args)
|
7043
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
7044
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
7045
|
+
@latest_evaluation = args[:latest_evaluation] if args.key?(:latest_evaluation)
|
7046
|
+
@name = args[:name] if args.key?(:name)
|
7047
|
+
@schema = args[:schema] if args.key?(:schema)
|
7048
|
+
@state = args[:state] if args.key?(:state)
|
7049
|
+
end
|
7050
|
+
end
|
7051
|
+
|
6557
7052
|
# Payload message of raw document content (bytes).
|
6558
7053
|
class GoogleCloudDocumentaiV1beta3RawDocument
|
6559
7054
|
include Google::Apis::Core::Hashable
|
@@ -6687,6 +7182,202 @@ module Google
|
|
6687
7182
|
end
|
6688
7183
|
end
|
6689
7184
|
|
7185
|
+
# The schema defines the output of the processed document by a processor.
|
7186
|
+
class GoogleCloudDocumentaiV1beta3Schema
|
7187
|
+
include Google::Apis::Core::Hashable
|
7188
|
+
|
7189
|
+
# Description of the schema.
|
7190
|
+
# Corresponds to the JSON property `description`
|
7191
|
+
# @return [String]
|
7192
|
+
attr_accessor :description
|
7193
|
+
|
7194
|
+
# Display name to show to users.
|
7195
|
+
# Corresponds to the JSON property `displayName`
|
7196
|
+
# @return [String]
|
7197
|
+
attr_accessor :display_name
|
7198
|
+
|
7199
|
+
# Entity types of the schema.
|
7200
|
+
# Corresponds to the JSON property `entityTypes`
|
7201
|
+
# @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaEntityType>]
|
7202
|
+
attr_accessor :entity_types
|
7203
|
+
|
7204
|
+
def initialize(**args)
|
7205
|
+
update!(**args)
|
7206
|
+
end
|
7207
|
+
|
7208
|
+
# Update properties of this object
|
7209
|
+
def update!(**args)
|
7210
|
+
@description = args[:description] if args.key?(:description)
|
7211
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
7212
|
+
@entity_types = args[:entity_types] if args.key?(:entity_types)
|
7213
|
+
end
|
7214
|
+
end
|
7215
|
+
|
7216
|
+
# EntityType is the wrapper of a label of the corresponding model with detailed
|
7217
|
+
# attributes and limitations for entity-based processors. Multiple types can
|
7218
|
+
# also compose a dependency tree to represent nested types.
|
7219
|
+
class GoogleCloudDocumentaiV1beta3SchemaEntityType
|
7220
|
+
include Google::Apis::Core::Hashable
|
7221
|
+
|
7222
|
+
# Type of the entity. It must be one of the following: `document` - the entity
|
7223
|
+
# represents a classification of a logical document. `object` - if the entity
|
7224
|
+
# has properties it is likely an object (or or a document.) `datetime` - the
|
7225
|
+
# entity is a date or time value. `money` - the entity represents a money value
|
7226
|
+
# amount. `number` - the entity is a number - integer or floating point. `string`
|
7227
|
+
# - the entity is a string value. `boolean` - the entity is a boolean value. `
|
7228
|
+
# address` - the entity is a location address. `duration` - the entity is a
|
7229
|
+
# duration.
|
7230
|
+
# Corresponds to the JSON property `baseType`
|
7231
|
+
# @return [String]
|
7232
|
+
attr_accessor :base_type
|
7233
|
+
|
7234
|
+
# Description of the entity type.
|
7235
|
+
# Corresponds to the JSON property `description`
|
7236
|
+
# @return [String]
|
7237
|
+
attr_accessor :description
|
7238
|
+
|
7239
|
+
# If specified, lists all the possible values for this entity.
|
7240
|
+
# Corresponds to the JSON property `enumValues`
|
7241
|
+
# @return [Array<String>]
|
7242
|
+
attr_accessor :enum_values
|
7243
|
+
|
7244
|
+
# Occurrence type limits the number of times an entity type appears in the
|
7245
|
+
# document.
|
7246
|
+
# Corresponds to the JSON property `occurrenceType`
|
7247
|
+
# @return [String]
|
7248
|
+
attr_accessor :occurrence_type
|
7249
|
+
|
7250
|
+
# Describing the nested structure of an entity. An EntityType may consist of
|
7251
|
+
# several other EntityTypes. For example, in a document there can be an
|
7252
|
+
# EntityType 'ID', which consists of EntityType 'name' and 'address', with
|
7253
|
+
# corresponding attributes, such as TEXT for both types and ONCE for occurrence
|
7254
|
+
# types.
|
7255
|
+
# Corresponds to the JSON property `properties`
|
7256
|
+
# @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaEntityType>]
|
7257
|
+
attr_accessor :properties
|
7258
|
+
|
7259
|
+
# Source of this entity type.
|
7260
|
+
# Corresponds to the JSON property `source`
|
7261
|
+
# @return [String]
|
7262
|
+
attr_accessor :source
|
7263
|
+
|
7264
|
+
# Name of the type. It must be unique within the set of same level types.
|
7265
|
+
# Corresponds to the JSON property `type`
|
7266
|
+
# @return [String]
|
7267
|
+
attr_accessor :type
|
7268
|
+
|
7269
|
+
def initialize(**args)
|
7270
|
+
update!(**args)
|
7271
|
+
end
|
7272
|
+
|
7273
|
+
# Update properties of this object
|
7274
|
+
def update!(**args)
|
7275
|
+
@base_type = args[:base_type] if args.key?(:base_type)
|
7276
|
+
@description = args[:description] if args.key?(:description)
|
7277
|
+
@enum_values = args[:enum_values] if args.key?(:enum_values)
|
7278
|
+
@occurrence_type = args[:occurrence_type] if args.key?(:occurrence_type)
|
7279
|
+
@properties = args[:properties] if args.key?(:properties)
|
7280
|
+
@source = args[:source] if args.key?(:source)
|
7281
|
+
@type = args[:type] if args.key?(:type)
|
7282
|
+
end
|
7283
|
+
end
|
7284
|
+
|
7285
|
+
# The long running operation metadata for set default processor version method.
|
7286
|
+
class GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata
|
7287
|
+
include Google::Apis::Core::Hashable
|
7288
|
+
|
7289
|
+
# The common metadata for long running operations.
|
7290
|
+
# Corresponds to the JSON property `commonMetadata`
|
7291
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3CommonOperationMetadata]
|
7292
|
+
attr_accessor :common_metadata
|
7293
|
+
|
7294
|
+
def initialize(**args)
|
7295
|
+
update!(**args)
|
7296
|
+
end
|
7297
|
+
|
7298
|
+
# Update properties of this object
|
7299
|
+
def update!(**args)
|
7300
|
+
@common_metadata = args[:common_metadata] if args.key?(:common_metadata)
|
7301
|
+
end
|
7302
|
+
end
|
7303
|
+
|
7304
|
+
# Request message for the set default processor version method.
|
7305
|
+
class GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionRequest
|
7306
|
+
include Google::Apis::Core::Hashable
|
7307
|
+
|
7308
|
+
# Required. The resource name of child ProcessorVersion to use as default.
|
7309
|
+
# Corresponds to the JSON property `defaultProcessorVersion`
|
7310
|
+
# @return [String]
|
7311
|
+
attr_accessor :default_processor_version
|
7312
|
+
|
7313
|
+
def initialize(**args)
|
7314
|
+
update!(**args)
|
7315
|
+
end
|
7316
|
+
|
7317
|
+
# Update properties of this object
|
7318
|
+
def update!(**args)
|
7319
|
+
@default_processor_version = args[:default_processor_version] if args.key?(:default_processor_version)
|
7320
|
+
end
|
7321
|
+
end
|
7322
|
+
|
7323
|
+
# Response message for set default processor version method.
|
7324
|
+
class GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionResponse
|
7325
|
+
include Google::Apis::Core::Hashable
|
7326
|
+
|
7327
|
+
def initialize(**args)
|
7328
|
+
update!(**args)
|
7329
|
+
end
|
7330
|
+
|
7331
|
+
# Update properties of this object
|
7332
|
+
def update!(**args)
|
7333
|
+
end
|
7334
|
+
end
|
7335
|
+
|
7336
|
+
# The long running operation metadata for the undeploy processor version method.
|
7337
|
+
class GoogleCloudDocumentaiV1beta3UndeployProcessorVersionMetadata
|
7338
|
+
include Google::Apis::Core::Hashable
|
7339
|
+
|
7340
|
+
# The common metadata for long running operations.
|
7341
|
+
# Corresponds to the JSON property `commonMetadata`
|
7342
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3CommonOperationMetadata]
|
7343
|
+
attr_accessor :common_metadata
|
7344
|
+
|
7345
|
+
def initialize(**args)
|
7346
|
+
update!(**args)
|
7347
|
+
end
|
7348
|
+
|
7349
|
+
# Update properties of this object
|
7350
|
+
def update!(**args)
|
7351
|
+
@common_metadata = args[:common_metadata] if args.key?(:common_metadata)
|
7352
|
+
end
|
7353
|
+
end
|
7354
|
+
|
7355
|
+
# Request message for the undeploy processor version method.
|
7356
|
+
class GoogleCloudDocumentaiV1beta3UndeployProcessorVersionRequest
|
7357
|
+
include Google::Apis::Core::Hashable
|
7358
|
+
|
7359
|
+
def initialize(**args)
|
7360
|
+
update!(**args)
|
7361
|
+
end
|
7362
|
+
|
7363
|
+
# Update properties of this object
|
7364
|
+
def update!(**args)
|
7365
|
+
end
|
7366
|
+
end
|
7367
|
+
|
7368
|
+
# Response message for the undeploy processor version method.
|
7369
|
+
class GoogleCloudDocumentaiV1beta3UndeployProcessorVersionResponse
|
7370
|
+
include Google::Apis::Core::Hashable
|
7371
|
+
|
7372
|
+
def initialize(**args)
|
7373
|
+
update!(**args)
|
7374
|
+
end
|
7375
|
+
|
7376
|
+
# Update properties of this object
|
7377
|
+
def update!(**args)
|
7378
|
+
end
|
7379
|
+
end
|
7380
|
+
|
6690
7381
|
# A vertex represents a 2D point in the image. NOTE: the vertex coordinates are
|
6691
7382
|
# in the same scale as the original image.
|
6692
7383
|
class GoogleCloudDocumentaiV1beta3Vertex
|