google-cloud-document_ai-v1beta3 0.18.0 → 0.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/document_ai/v1beta3/bindings_override.rb +118 -0
- data/lib/google/cloud/document_ai/v1beta3/document_processor_service/client.rb +60 -68
- data/lib/google/cloud/document_ai/v1beta3/document_processor_service/operations.rb +12 -14
- data/lib/google/cloud/document_ai/v1beta3/document_processor_service/rest/client.rb +1996 -0
- data/lib/google/cloud/document_ai/v1beta3/document_processor_service/rest/operations.rb +813 -0
- data/lib/google/cloud/document_ai/v1beta3/document_processor_service/rest/service_stub.rb +1373 -0
- data/lib/google/cloud/document_ai/v1beta3/document_processor_service/rest.rb +57 -0
- data/lib/google/cloud/document_ai/v1beta3/document_processor_service.rb +6 -0
- data/lib/google/cloud/document_ai/v1beta3/rest.rb +38 -0
- data/lib/google/cloud/document_ai/v1beta3/version.rb +1 -1
- data/lib/google/cloud/document_ai/v1beta3.rb +5 -0
- data/lib/google/cloud/documentai/v1beta3/document_pb.rb +1 -0
- data/lib/google/cloud/documentai/v1beta3/evaluation_pb.rb +7 -0
- data/lib/google/cloud/documentai/v1beta3/processor_pb.rb +2 -0
- data/proto_docs/google/cloud/documentai/v1beta3/document.rb +16 -7
- data/proto_docs/google/cloud/documentai/v1beta3/evaluation.rb +18 -0
- data/proto_docs/google/cloud/documentai/v1beta3/processor.rb +3 -0
- metadata +17 -9
@@ -0,0 +1,57 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "gapic/rest"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/document_ai/v1beta3/version"
|
24
|
+
require "google/cloud/document_ai/v1beta3/bindings_override"
|
25
|
+
|
26
|
+
require "google/cloud/document_ai/v1beta3/document_processor_service/credentials"
|
27
|
+
require "google/cloud/document_ai/v1beta3/document_processor_service/paths"
|
28
|
+
require "google/cloud/document_ai/v1beta3/document_processor_service/rest/operations"
|
29
|
+
require "google/cloud/document_ai/v1beta3/document_processor_service/rest/client"
|
30
|
+
|
31
|
+
module Google
|
32
|
+
module Cloud
|
33
|
+
module DocumentAI
|
34
|
+
module V1beta3
|
35
|
+
##
|
36
|
+
# Service to call Cloud DocumentAI to process documents according to the
|
37
|
+
# processor's definition. Processors are built using state-of-the-art Google
|
38
|
+
# AI such as natural language, computer vision, and translation to extract
|
39
|
+
# structured information from unstructured or semi-structured documents.
|
40
|
+
#
|
41
|
+
# To load this service and instantiate a REST client:
|
42
|
+
#
|
43
|
+
# require "google/cloud/document_ai/v1beta3/document_processor_service/rest"
|
44
|
+
# client = ::Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Rest::Client.new
|
45
|
+
#
|
46
|
+
module DocumentProcessorService
|
47
|
+
# Client for the REST transport
|
48
|
+
module Rest
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
57
|
+
require "google/cloud/document_ai/v1beta3/document_processor_service/rest/helpers" if ::File.file? helper_path
|
@@ -26,6 +26,7 @@ require "google/cloud/document_ai/v1beta3/document_processor_service/credentials
|
|
26
26
|
require "google/cloud/document_ai/v1beta3/document_processor_service/paths"
|
27
27
|
require "google/cloud/document_ai/v1beta3/document_processor_service/operations"
|
28
28
|
require "google/cloud/document_ai/v1beta3/document_processor_service/client"
|
29
|
+
require "google/cloud/document_ai/v1beta3/document_processor_service/rest"
|
29
30
|
|
30
31
|
module Google
|
31
32
|
module Cloud
|
@@ -42,6 +43,11 @@ module Google
|
|
42
43
|
# require "google/cloud/document_ai/v1beta3/document_processor_service"
|
43
44
|
# client = ::Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Client.new
|
44
45
|
#
|
46
|
+
# @example Load this service and instantiate a REST client
|
47
|
+
#
|
48
|
+
# require "google/cloud/document_ai/v1beta3/document_processor_service/rest"
|
49
|
+
# client = ::Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Rest::Client.new
|
50
|
+
#
|
45
51
|
module DocumentProcessorService
|
46
52
|
end
|
47
53
|
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "google/cloud/document_ai/v1beta3/document_processor_service/rest"
|
20
|
+
require "google/cloud/document_ai/v1beta3/bindings_override"
|
21
|
+
require "google/cloud/document_ai/v1beta3/version"
|
22
|
+
|
23
|
+
module Google
|
24
|
+
module Cloud
|
25
|
+
module DocumentAI
|
26
|
+
##
|
27
|
+
# To load just the REST part of this package, including all its services, and instantiate a REST client:
|
28
|
+
#
|
29
|
+
# @example
|
30
|
+
#
|
31
|
+
# require "google/cloud/document_ai/v1beta3/rest"
|
32
|
+
# client = ::Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Rest::Client.new
|
33
|
+
#
|
34
|
+
module V1beta3
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -30,6 +30,11 @@ module Google
|
|
30
30
|
# require "google/cloud/document_ai/v1beta3"
|
31
31
|
# client = ::Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Client.new
|
32
32
|
#
|
33
|
+
# @example Load this package, including all its services, and instantiate a REST client
|
34
|
+
#
|
35
|
+
# require "google/cloud/document_ai/v1beta3"
|
36
|
+
# client = ::Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Rest::Client.new
|
37
|
+
#
|
33
38
|
module V1beta3
|
34
39
|
end
|
35
40
|
end
|
@@ -8,6 +8,12 @@ require 'google/protobuf/timestamp_pb'
|
|
8
8
|
|
9
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
10
|
add_file("google/cloud/documentai/v1beta3/evaluation.proto", :syntax => :proto3) do
|
11
|
+
add_message "google.cloud.documentai.v1beta3.EvaluationReference" do
|
12
|
+
optional :operation, :string, 1
|
13
|
+
optional :evaluation, :string, 2
|
14
|
+
optional :aggregate_metrics, :message, 4, "google.cloud.documentai.v1beta3.Evaluation.Metrics"
|
15
|
+
optional :aggregate_metrics_exact, :message, 5, "google.cloud.documentai.v1beta3.Evaluation.Metrics"
|
16
|
+
end
|
11
17
|
add_message "google.cloud.documentai.v1beta3.Evaluation" do
|
12
18
|
optional :name, :string, 1
|
13
19
|
optional :create_time, :message, 2, "google.protobuf.Timestamp"
|
@@ -60,6 +66,7 @@ module Google
|
|
60
66
|
module Cloud
|
61
67
|
module DocumentAI
|
62
68
|
module V1beta3
|
69
|
+
EvaluationReference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.EvaluationReference").msgclass
|
63
70
|
Evaluation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Evaluation").msgclass
|
64
71
|
Evaluation::Counters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Evaluation.Counters").msgclass
|
65
72
|
Evaluation::Metrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Evaluation.Metrics").msgclass
|
@@ -6,6 +6,7 @@ require 'google/protobuf'
|
|
6
6
|
require 'google/api/field_behavior_pb'
|
7
7
|
require 'google/api/resource_pb'
|
8
8
|
require 'google/cloud/documentai/v1beta3/document_schema_pb'
|
9
|
+
require 'google/cloud/documentai/v1beta3/evaluation_pb'
|
9
10
|
require 'google/protobuf/timestamp_pb'
|
10
11
|
|
11
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
@@ -16,6 +17,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
16
17
|
optional :document_schema, :message, 12, "google.cloud.documentai.v1beta3.DocumentSchema"
|
17
18
|
optional :state, :enum, 6, "google.cloud.documentai.v1beta3.ProcessorVersion.State"
|
18
19
|
optional :create_time, :message, 7, "google.protobuf.Timestamp"
|
20
|
+
optional :latest_evaluation, :message, 8, "google.cloud.documentai.v1beta3.EvaluationReference"
|
19
21
|
optional :kms_key_name, :string, 9
|
20
22
|
optional :kms_key_version_name, :string, 10
|
21
23
|
optional :google_managed, :bool, 11
|
@@ -882,17 +882,24 @@ module Google
|
|
882
882
|
# Remove an element identified by `parent`.
|
883
883
|
REMOVE = 2
|
884
884
|
|
885
|
-
#
|
885
|
+
# Updates any fields within the given provenance scope of the message. It
|
886
|
+
# 'overwrites' the fields rather than replacing them. This is
|
887
|
+
# especially relevant when we just want to update a field value of an
|
888
|
+
# entity without also affecting all the child properties.
|
889
|
+
UPDATE = 7
|
890
|
+
|
891
|
+
# Currently unused. Replace an element identified by `parent`.
|
886
892
|
REPLACE = 3
|
887
893
|
|
888
|
-
# Request human review for the element identified by
|
894
|
+
# Deprecated. Request human review for the element identified by
|
895
|
+
# `parent`.
|
889
896
|
EVAL_REQUESTED = 4
|
890
897
|
|
891
|
-
# Element is reviewed and approved at human review,
|
892
|
-
# set to 1.0.
|
898
|
+
# Deprecated. Element is reviewed and approved at human review,
|
899
|
+
# confidence will be set to 1.0.
|
893
900
|
EVAL_APPROVED = 5
|
894
901
|
|
895
|
-
# Element is skipped in the validation process.
|
902
|
+
# Deprecated. Element is skipped in the validation process.
|
896
903
|
EVAL_SKIPPED = 6
|
897
904
|
end
|
898
905
|
end
|
@@ -908,7 +915,8 @@ module Google
|
|
908
915
|
# resource name.
|
909
916
|
# @!attribute [rw] id
|
910
917
|
# @return [::String]
|
911
|
-
# Id of the revision
|
918
|
+
# Id of the revision, internally generated by doc proto storage.
|
919
|
+
# Unique within the context of the document.
|
912
920
|
# @!attribute [rw] parent
|
913
921
|
# @return [::Array<::Integer>]
|
914
922
|
# The revisions that this revision is based on. This can include one or
|
@@ -921,7 +929,8 @@ module Google
|
|
921
929
|
# `provenance.parent.revision` fields that index into this field.
|
922
930
|
# @!attribute [rw] create_time
|
923
931
|
# @return [::Google::Protobuf::Timestamp]
|
924
|
-
# The time that the revision was created
|
932
|
+
# The time that the revision was created, internally generated by
|
933
|
+
# doc proto storage at the time of create.
|
925
934
|
# @!attribute [rw] human_review
|
926
935
|
# @return [::Google::Cloud::DocumentAI::V1beta3::Document::Revision::HumanReview]
|
927
936
|
# Human Review information of this revision.
|
@@ -21,6 +21,24 @@ module Google
|
|
21
21
|
module Cloud
|
22
22
|
module DocumentAI
|
23
23
|
module V1beta3
|
24
|
+
# Gives a short summary of an evaluation, and links to the evaluation itself.
|
25
|
+
# @!attribute [rw] operation
|
26
|
+
# @return [::String]
|
27
|
+
# The resource name of the Long Running Operation for the evaluation.
|
28
|
+
# @!attribute [rw] evaluation
|
29
|
+
# @return [::String]
|
30
|
+
# The resource name of the evaluation.
|
31
|
+
# @!attribute [rw] aggregate_metrics
|
32
|
+
# @return [::Google::Cloud::DocumentAI::V1beta3::Evaluation::Metrics]
|
33
|
+
# An aggregate of the statistics for the evaluation with fuzzy matching on.
|
34
|
+
# @!attribute [rw] aggregate_metrics_exact
|
35
|
+
# @return [::Google::Cloud::DocumentAI::V1beta3::Evaluation::Metrics]
|
36
|
+
# An aggregate of the statistics for the evaluation with fuzzy matching off.
|
37
|
+
class EvaluationReference
|
38
|
+
include ::Google::Protobuf::MessageExts
|
39
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
40
|
+
end
|
41
|
+
|
24
42
|
# An evaluation of a ProcessorVersion's performance.
|
25
43
|
# @!attribute [rw] name
|
26
44
|
# @return [::String]
|
@@ -43,6 +43,9 @@ module Google
|
|
43
43
|
# @!attribute [rw] create_time
|
44
44
|
# @return [::Google::Protobuf::Timestamp]
|
45
45
|
# The time the processor version was created.
|
46
|
+
# @!attribute [rw] latest_evaluation
|
47
|
+
# @return [::Google::Cloud::DocumentAI::V1beta3::EvaluationReference]
|
48
|
+
# The most recently invoked evaluation for the processor version.
|
46
49
|
# @!attribute [rw] kms_key_name
|
47
50
|
# @return [::String]
|
48
51
|
# The KMS key name used for encryption.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-document_ai-v1beta3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.20.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: 2023-
|
11
|
+
date: 2023-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.18.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.18.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -50,7 +50,7 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - ">="
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '0.
|
53
|
+
version: '0.4'
|
54
54
|
- - "<"
|
55
55
|
- !ruby/object:Gem::Version
|
56
56
|
version: 2.a
|
@@ -60,7 +60,7 @@ dependencies:
|
|
60
60
|
requirements:
|
61
61
|
- - ">="
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: '0.
|
63
|
+
version: '0.4'
|
64
64
|
- - "<"
|
65
65
|
- !ruby/object:Gem::Version
|
66
66
|
version: 2.a
|
@@ -70,14 +70,14 @@ dependencies:
|
|
70
70
|
requirements:
|
71
71
|
- - "~>"
|
72
72
|
- !ruby/object:Gem::Version
|
73
|
-
version: 1.26.
|
73
|
+
version: 1.26.3
|
74
74
|
type: :development
|
75
75
|
prerelease: false
|
76
76
|
version_requirements: !ruby/object:Gem::Requirement
|
77
77
|
requirements:
|
78
78
|
- - "~>"
|
79
79
|
- !ruby/object:Gem::Version
|
80
|
-
version: 1.26.
|
80
|
+
version: 1.26.3
|
81
81
|
- !ruby/object:Gem::Dependency
|
82
82
|
name: minitest
|
83
83
|
requirement: !ruby/object:Gem::Requirement
|
@@ -192,11 +192,17 @@ files:
|
|
192
192
|
- README.md
|
193
193
|
- lib/google-cloud-document_ai-v1beta3.rb
|
194
194
|
- lib/google/cloud/document_ai/v1beta3.rb
|
195
|
+
- lib/google/cloud/document_ai/v1beta3/bindings_override.rb
|
195
196
|
- lib/google/cloud/document_ai/v1beta3/document_processor_service.rb
|
196
197
|
- lib/google/cloud/document_ai/v1beta3/document_processor_service/client.rb
|
197
198
|
- lib/google/cloud/document_ai/v1beta3/document_processor_service/credentials.rb
|
198
199
|
- lib/google/cloud/document_ai/v1beta3/document_processor_service/operations.rb
|
199
200
|
- lib/google/cloud/document_ai/v1beta3/document_processor_service/paths.rb
|
201
|
+
- lib/google/cloud/document_ai/v1beta3/document_processor_service/rest.rb
|
202
|
+
- lib/google/cloud/document_ai/v1beta3/document_processor_service/rest/client.rb
|
203
|
+
- lib/google/cloud/document_ai/v1beta3/document_processor_service/rest/operations.rb
|
204
|
+
- lib/google/cloud/document_ai/v1beta3/document_processor_service/rest/service_stub.rb
|
205
|
+
- lib/google/cloud/document_ai/v1beta3/rest.rb
|
200
206
|
- lib/google/cloud/document_ai/v1beta3/version.rb
|
201
207
|
- lib/google/cloud/documentai/v1beta3/barcode_pb.rb
|
202
208
|
- lib/google/cloud/documentai/v1beta3/document_io_pb.rb
|
@@ -259,5 +265,7 @@ requirements: []
|
|
259
265
|
rubygems_version: 3.4.2
|
260
266
|
signing_key:
|
261
267
|
specification_version: 4
|
262
|
-
summary:
|
268
|
+
summary: Service to parse structured information from unstructured or semi-structured
|
269
|
+
documents using state-of-the-art Google AI such as natural language, computer vision,
|
270
|
+
translation, and AutoML.
|
263
271
|
test_files: []
|