google-apis-documentai_v1beta3 0.22.0 → 0.23.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/documentai_v1beta3/classes.rb +638 -2
- data/lib/google/apis/documentai_v1beta3/gem_version.rb +2 -2
- data/lib/google/apis/documentai_v1beta3/representations.rb +395 -0
- data/lib/google/apis/documentai_v1beta3/service.rb +231 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab2146fb9e7bc230a34480907bb86c0c866394a16ca6af3da330a476fb83bb55
|
4
|
+
data.tar.gz: f4ad55e38402b88e4dc640c343a2f2d6dc15380a0197cc25facdece2d70291d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f2e22be3ddb17534d64b228058f49c9452d03eb87af138284079cf33c6a2687146dd6424779839a9086143c4fff948c63abb8fdccd759345bdbe7d5d8e3383e
|
7
|
+
data.tar.gz: 43fa1eaaa7f0d1ae923a661127f50e968950fc1de58461473868b9663ea2517b9dc6eb1570e599c55c950268180035d69bab3da261228933be5df31676182435
|
data/CHANGELOG.md
CHANGED
@@ -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
|
@@ -4621,6 +4821,70 @@ module Google
|
|
4621
4821
|
end
|
4622
4822
|
end
|
4623
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
|
+
|
4624
4888
|
# The long running operation metadata for disable processor method.
|
4625
4889
|
class GoogleCloudDocumentaiV1beta3DisableProcessorMetadata
|
4626
4890
|
include Google::Apis::Core::Hashable
|
@@ -6207,6 +6471,104 @@ module Google
|
|
6207
6471
|
end
|
6208
6472
|
end
|
6209
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
|
+
|
6210
6572
|
# Response message for fetch processor types.
|
6211
6573
|
class GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse
|
6212
6574
|
include Google::Apis::Core::Hashable
|
@@ -6323,6 +6685,31 @@ module Google
|
|
6323
6685
|
end
|
6324
6686
|
end
|
6325
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
|
+
|
6326
6713
|
# Response message for list processors.
|
6327
6714
|
class GoogleCloudDocumentaiV1beta3ListProcessorsResponse
|
6328
6715
|
include Google::Apis::Core::Hashable
|
@@ -6541,8 +6928,7 @@ module Google
|
|
6541
6928
|
include Google::Apis::Core::Hashable
|
6542
6929
|
|
6543
6930
|
# Whether the processor type allows creation. If yes, user can create a
|
6544
|
-
# processor of this processor type. Otherwise, user needs to
|
6545
|
-
# whitelisting.
|
6931
|
+
# processor of this processor type. Otherwise, user needs to request access.
|
6546
6932
|
# Corresponds to the JSON property `allowCreation`
|
6547
6933
|
# @return [Boolean]
|
6548
6934
|
attr_accessor :allow_creation
|
@@ -6602,6 +6988,61 @@ module Google
|
|
6602
6988
|
end
|
6603
6989
|
end
|
6604
6990
|
|
6991
|
+
# A processor version is an implementation of a processor. Each processor can
|
6992
|
+
# have multiple versions, pre-trained by Google internally or up-trained by the
|
6993
|
+
# customer. At a time, a processor can only have one default version version. So
|
6994
|
+
# the processor's behavior (when processing documents) is defined by a default
|
6995
|
+
# version.
|
6996
|
+
class GoogleCloudDocumentaiV1beta3ProcessorVersion
|
6997
|
+
include Google::Apis::Core::Hashable
|
6998
|
+
|
6999
|
+
# The time the processor version was created.
|
7000
|
+
# Corresponds to the JSON property `createTime`
|
7001
|
+
# @return [String]
|
7002
|
+
attr_accessor :create_time
|
7003
|
+
|
7004
|
+
# The display name of the processor version.
|
7005
|
+
# Corresponds to the JSON property `displayName`
|
7006
|
+
# @return [String]
|
7007
|
+
attr_accessor :display_name
|
7008
|
+
|
7009
|
+
# Gives a short summary of an evaluation, and links to the evaluation itself.
|
7010
|
+
# Corresponds to the JSON property `latestEvaluation`
|
7011
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3EvaluationReference]
|
7012
|
+
attr_accessor :latest_evaluation
|
7013
|
+
|
7014
|
+
# The resource name of the processor version. Format: projects/`project`/
|
7015
|
+
# locations/`location`/processors/`processor`/processorVersions/`
|
7016
|
+
# processor_version`
|
7017
|
+
# Corresponds to the JSON property `name`
|
7018
|
+
# @return [String]
|
7019
|
+
attr_accessor :name
|
7020
|
+
|
7021
|
+
# The schema defines the output of the processed document by a processor.
|
7022
|
+
# Corresponds to the JSON property `schema`
|
7023
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Schema]
|
7024
|
+
attr_accessor :schema
|
7025
|
+
|
7026
|
+
# The state of the processor version.
|
7027
|
+
# Corresponds to the JSON property `state`
|
7028
|
+
# @return [String]
|
7029
|
+
attr_accessor :state
|
7030
|
+
|
7031
|
+
def initialize(**args)
|
7032
|
+
update!(**args)
|
7033
|
+
end
|
7034
|
+
|
7035
|
+
# Update properties of this object
|
7036
|
+
def update!(**args)
|
7037
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
7038
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
7039
|
+
@latest_evaluation = args[:latest_evaluation] if args.key?(:latest_evaluation)
|
7040
|
+
@name = args[:name] if args.key?(:name)
|
7041
|
+
@schema = args[:schema] if args.key?(:schema)
|
7042
|
+
@state = args[:state] if args.key?(:state)
|
7043
|
+
end
|
7044
|
+
end
|
7045
|
+
|
6605
7046
|
# Payload message of raw document content (bytes).
|
6606
7047
|
class GoogleCloudDocumentaiV1beta3RawDocument
|
6607
7048
|
include Google::Apis::Core::Hashable
|
@@ -6735,6 +7176,201 @@ module Google
|
|
6735
7176
|
end
|
6736
7177
|
end
|
6737
7178
|
|
7179
|
+
# The schema defines the output of the processed document by a processor.
|
7180
|
+
class GoogleCloudDocumentaiV1beta3Schema
|
7181
|
+
include Google::Apis::Core::Hashable
|
7182
|
+
|
7183
|
+
# Description of the schema.
|
7184
|
+
# Corresponds to the JSON property `description`
|
7185
|
+
# @return [String]
|
7186
|
+
attr_accessor :description
|
7187
|
+
|
7188
|
+
# Display name to show to users.
|
7189
|
+
# Corresponds to the JSON property `displayName`
|
7190
|
+
# @return [String]
|
7191
|
+
attr_accessor :display_name
|
7192
|
+
|
7193
|
+
# Entity types of the schema.
|
7194
|
+
# Corresponds to the JSON property `entityTypes`
|
7195
|
+
# @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaEntityType>]
|
7196
|
+
attr_accessor :entity_types
|
7197
|
+
|
7198
|
+
def initialize(**args)
|
7199
|
+
update!(**args)
|
7200
|
+
end
|
7201
|
+
|
7202
|
+
# Update properties of this object
|
7203
|
+
def update!(**args)
|
7204
|
+
@description = args[:description] if args.key?(:description)
|
7205
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
7206
|
+
@entity_types = args[:entity_types] if args.key?(:entity_types)
|
7207
|
+
end
|
7208
|
+
end
|
7209
|
+
|
7210
|
+
# EntityType is the wrapper of a label of the corresponding model with detailed
|
7211
|
+
# attributes and limitations for entity-based processors. Multiple types can
|
7212
|
+
# also compose a dependency tree to represent nested types.
|
7213
|
+
class GoogleCloudDocumentaiV1beta3SchemaEntityType
|
7214
|
+
include Google::Apis::Core::Hashable
|
7215
|
+
|
7216
|
+
# Type of the entity. It must be one of the following: `document` - the entity
|
7217
|
+
# represents a classification of a logical document. `object` - if the entity
|
7218
|
+
# has properties it is likely an object (or or a document.) `datetime` - the
|
7219
|
+
# entity is a date or time value. `money` - the entity represents a money value
|
7220
|
+
# amount. `number` - the entity is a number - integer or floating point. `string`
|
7221
|
+
# - the entity is a string value. `boolean` - the entity is a boolean value. `
|
7222
|
+
# address` - the entity is a location address.
|
7223
|
+
# Corresponds to the JSON property `baseType`
|
7224
|
+
# @return [String]
|
7225
|
+
attr_accessor :base_type
|
7226
|
+
|
7227
|
+
# Description of the entity type.
|
7228
|
+
# Corresponds to the JSON property `description`
|
7229
|
+
# @return [String]
|
7230
|
+
attr_accessor :description
|
7231
|
+
|
7232
|
+
# If specified, lists all the possible values for this entity.
|
7233
|
+
# Corresponds to the JSON property `enumValues`
|
7234
|
+
# @return [Array<String>]
|
7235
|
+
attr_accessor :enum_values
|
7236
|
+
|
7237
|
+
# Occurrence type limits the number of times an entity type appears in the
|
7238
|
+
# document.
|
7239
|
+
# Corresponds to the JSON property `occurrenceType`
|
7240
|
+
# @return [String]
|
7241
|
+
attr_accessor :occurrence_type
|
7242
|
+
|
7243
|
+
# Describing the nested structure of an entity. An EntityType may consist of
|
7244
|
+
# several other EntityTypes. For example, in a document there can be an
|
7245
|
+
# EntityType 'ID', which consists of EntityType 'name' and 'address', with
|
7246
|
+
# corresponding attributes, such as TEXT for both types and ONCE for occurrence
|
7247
|
+
# types.
|
7248
|
+
# Corresponds to the JSON property `properties`
|
7249
|
+
# @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaEntityType>]
|
7250
|
+
attr_accessor :properties
|
7251
|
+
|
7252
|
+
# Source of this entity type.
|
7253
|
+
# Corresponds to the JSON property `source`
|
7254
|
+
# @return [String]
|
7255
|
+
attr_accessor :source
|
7256
|
+
|
7257
|
+
# Name of the type. It must be unique within the set of same level types.
|
7258
|
+
# Corresponds to the JSON property `type`
|
7259
|
+
# @return [String]
|
7260
|
+
attr_accessor :type
|
7261
|
+
|
7262
|
+
def initialize(**args)
|
7263
|
+
update!(**args)
|
7264
|
+
end
|
7265
|
+
|
7266
|
+
# Update properties of this object
|
7267
|
+
def update!(**args)
|
7268
|
+
@base_type = args[:base_type] if args.key?(:base_type)
|
7269
|
+
@description = args[:description] if args.key?(:description)
|
7270
|
+
@enum_values = args[:enum_values] if args.key?(:enum_values)
|
7271
|
+
@occurrence_type = args[:occurrence_type] if args.key?(:occurrence_type)
|
7272
|
+
@properties = args[:properties] if args.key?(:properties)
|
7273
|
+
@source = args[:source] if args.key?(:source)
|
7274
|
+
@type = args[:type] if args.key?(:type)
|
7275
|
+
end
|
7276
|
+
end
|
7277
|
+
|
7278
|
+
# The long running operation metadata for set default processor version method.
|
7279
|
+
class GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata
|
7280
|
+
include Google::Apis::Core::Hashable
|
7281
|
+
|
7282
|
+
# The common metadata for long running operations.
|
7283
|
+
# Corresponds to the JSON property `commonMetadata`
|
7284
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3CommonOperationMetadata]
|
7285
|
+
attr_accessor :common_metadata
|
7286
|
+
|
7287
|
+
def initialize(**args)
|
7288
|
+
update!(**args)
|
7289
|
+
end
|
7290
|
+
|
7291
|
+
# Update properties of this object
|
7292
|
+
def update!(**args)
|
7293
|
+
@common_metadata = args[:common_metadata] if args.key?(:common_metadata)
|
7294
|
+
end
|
7295
|
+
end
|
7296
|
+
|
7297
|
+
# Request message for the set default processor version method.
|
7298
|
+
class GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionRequest
|
7299
|
+
include Google::Apis::Core::Hashable
|
7300
|
+
|
7301
|
+
# Required. The resource name of child ProcessorVersion to use as default.
|
7302
|
+
# Corresponds to the JSON property `defaultProcessorVersion`
|
7303
|
+
# @return [String]
|
7304
|
+
attr_accessor :default_processor_version
|
7305
|
+
|
7306
|
+
def initialize(**args)
|
7307
|
+
update!(**args)
|
7308
|
+
end
|
7309
|
+
|
7310
|
+
# Update properties of this object
|
7311
|
+
def update!(**args)
|
7312
|
+
@default_processor_version = args[:default_processor_version] if args.key?(:default_processor_version)
|
7313
|
+
end
|
7314
|
+
end
|
7315
|
+
|
7316
|
+
# Response message for set default processor version method.
|
7317
|
+
class GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionResponse
|
7318
|
+
include Google::Apis::Core::Hashable
|
7319
|
+
|
7320
|
+
def initialize(**args)
|
7321
|
+
update!(**args)
|
7322
|
+
end
|
7323
|
+
|
7324
|
+
# Update properties of this object
|
7325
|
+
def update!(**args)
|
7326
|
+
end
|
7327
|
+
end
|
7328
|
+
|
7329
|
+
# The long running operation metadata for the undeploy processor version method.
|
7330
|
+
class GoogleCloudDocumentaiV1beta3UndeployProcessorVersionMetadata
|
7331
|
+
include Google::Apis::Core::Hashable
|
7332
|
+
|
7333
|
+
# The common metadata for long running operations.
|
7334
|
+
# Corresponds to the JSON property `commonMetadata`
|
7335
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3CommonOperationMetadata]
|
7336
|
+
attr_accessor :common_metadata
|
7337
|
+
|
7338
|
+
def initialize(**args)
|
7339
|
+
update!(**args)
|
7340
|
+
end
|
7341
|
+
|
7342
|
+
# Update properties of this object
|
7343
|
+
def update!(**args)
|
7344
|
+
@common_metadata = args[:common_metadata] if args.key?(:common_metadata)
|
7345
|
+
end
|
7346
|
+
end
|
7347
|
+
|
7348
|
+
# Request message for the undeploy processor version method.
|
7349
|
+
class GoogleCloudDocumentaiV1beta3UndeployProcessorVersionRequest
|
7350
|
+
include Google::Apis::Core::Hashable
|
7351
|
+
|
7352
|
+
def initialize(**args)
|
7353
|
+
update!(**args)
|
7354
|
+
end
|
7355
|
+
|
7356
|
+
# Update properties of this object
|
7357
|
+
def update!(**args)
|
7358
|
+
end
|
7359
|
+
end
|
7360
|
+
|
7361
|
+
# Response message for the undeploy processor version method.
|
7362
|
+
class GoogleCloudDocumentaiV1beta3UndeployProcessorVersionResponse
|
7363
|
+
include Google::Apis::Core::Hashable
|
7364
|
+
|
7365
|
+
def initialize(**args)
|
7366
|
+
update!(**args)
|
7367
|
+
end
|
7368
|
+
|
7369
|
+
# Update properties of this object
|
7370
|
+
def update!(**args)
|
7371
|
+
end
|
7372
|
+
end
|
7373
|
+
|
6738
7374
|
# A vertex represents a 2D point in the image. NOTE: the vertex coordinates are
|
6739
7375
|
# in the same scale as the original image.
|
6740
7376
|
class GoogleCloudDocumentaiV1beta3Vertex
|