google-cloud-document_ai-v1beta3 0.12.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/lib/google/cloud/document_ai/v1beta3/document_processor_service/client.rb +1407 -153
- data/lib/google/cloud/document_ai/v1beta3/document_processor_service/paths.rb +44 -0
- data/lib/google/cloud/document_ai/v1beta3/version.rb +1 -1
- data/lib/google/cloud/documentai/v1beta3/barcode_pb.rb +24 -0
- data/lib/google/cloud/documentai/v1beta3/document_io_pb.rb +2 -1
- data/lib/google/cloud/documentai/v1beta3/document_pb.rb +25 -1
- data/lib/google/cloud/documentai/v1beta3/document_processor_service_pb.rb +142 -0
- data/lib/google/cloud/documentai/v1beta3/document_processor_service_services_pb.rb +32 -1
- data/lib/google/cloud/documentai/v1beta3/document_schema_pb.rb +60 -0
- data/lib/google/cloud/documentai/v1beta3/evaluation_pb.rb +72 -0
- data/lib/google/cloud/documentai/v1beta3/geometry_pb.rb +0 -2
- data/lib/google/cloud/documentai/v1beta3/operation_metadata_pb.rb +1 -1
- data/lib/google/cloud/documentai/v1beta3/processor_pb.rb +29 -2
- data/lib/google/cloud/documentai/v1beta3/processor_type_pb.rb +2 -1
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/cloud/documentai/v1beta3/barcode.rb +73 -0
- data/proto_docs/google/cloud/documentai/v1beta3/document.rb +162 -145
- data/proto_docs/google/cloud/documentai/v1beta3/document_io.rb +7 -2
- data/proto_docs/google/cloud/documentai/v1beta3/document_processor_service.rb +382 -10
- data/proto_docs/google/cloud/documentai/v1beta3/document_schema.rb +155 -0
- data/proto_docs/google/cloud/documentai/v1beta3/evaluation.rb +181 -0
- data/proto_docs/google/cloud/documentai/v1beta3/operation_metadata.rb +3 -0
- data/proto_docs/google/cloud/documentai/v1beta3/processor.rb +97 -9
- data/proto_docs/google/cloud/documentai/v1beta3/processor_type.rb +9 -6
- data/proto_docs/google/protobuf/empty.rb +0 -2
- metadata +32 -4
@@ -24,6 +24,29 @@ module Google
|
|
24
24
|
module DocumentProcessorService
|
25
25
|
# Path helper methods for the DocumentProcessorService API.
|
26
26
|
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Evaluation resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}/evaluations/{evaluation}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
# @param location [String]
|
36
|
+
# @param processor [String]
|
37
|
+
# @param processor_version [String]
|
38
|
+
# @param evaluation [String]
|
39
|
+
#
|
40
|
+
# @return [::String]
|
41
|
+
def evaluation_path project:, location:, processor:, processor_version:, evaluation:
|
42
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
43
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
44
|
+
raise ::ArgumentError, "processor cannot contain /" if processor.to_s.include? "/"
|
45
|
+
raise ::ArgumentError, "processor_version cannot contain /" if processor_version.to_s.include? "/"
|
46
|
+
|
47
|
+
"projects/#{project}/locations/#{location}/processors/#{processor}/processorVersions/#{processor_version}/evaluations/#{evaluation}"
|
48
|
+
end
|
49
|
+
|
27
50
|
##
|
28
51
|
# Create a fully-qualified HumanReviewConfig resource string.
|
29
52
|
#
|
@@ -79,6 +102,27 @@ module Google
|
|
79
102
|
"projects/#{project}/locations/#{location}/processors/#{processor}"
|
80
103
|
end
|
81
104
|
|
105
|
+
##
|
106
|
+
# Create a fully-qualified ProcessorVersion resource string.
|
107
|
+
#
|
108
|
+
# The resource will be in the following format:
|
109
|
+
#
|
110
|
+
# `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}`
|
111
|
+
#
|
112
|
+
# @param project [String]
|
113
|
+
# @param location [String]
|
114
|
+
# @param processor [String]
|
115
|
+
# @param processor_version [String]
|
116
|
+
#
|
117
|
+
# @return [::String]
|
118
|
+
def processor_version_path project:, location:, processor:, processor_version:
|
119
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
120
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
121
|
+
raise ::ArgumentError, "processor cannot contain /" if processor.to_s.include? "/"
|
122
|
+
|
123
|
+
"projects/#{project}/locations/#{location}/processors/#{processor}/processorVersions/#{processor_version}"
|
124
|
+
end
|
125
|
+
|
82
126
|
extend self
|
83
127
|
end
|
84
128
|
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/documentai/v1beta3/barcode.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("google/cloud/documentai/v1beta3/barcode.proto", :syntax => :proto3) do
|
8
|
+
add_message "google.cloud.documentai.v1beta3.Barcode" do
|
9
|
+
optional :format, :string, 1
|
10
|
+
optional :value_format, :string, 2
|
11
|
+
optional :raw_value, :string, 3
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
module Google
|
17
|
+
module Cloud
|
18
|
+
module DocumentAI
|
19
|
+
module V1beta3
|
20
|
+
Barcode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Barcode").msgclass
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
|
-
require 'google/
|
6
|
+
require 'google/protobuf/field_mask_pb'
|
7
7
|
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
9
|
add_file("google/cloud/documentai/v1beta3/document_io.proto", :syntax => :proto3) do
|
@@ -34,6 +34,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
34
34
|
end
|
35
35
|
add_message "google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig" do
|
36
36
|
optional :gcs_uri, :string, 1
|
37
|
+
optional :field_mask, :message, 2, "google.protobuf.FieldMask"
|
37
38
|
end
|
38
39
|
end
|
39
40
|
end
|
@@ -3,8 +3,8 @@
|
|
3
3
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
|
-
require 'google/api/annotations_pb'
|
7
6
|
require 'google/api/field_behavior_pb'
|
7
|
+
require 'google/cloud/documentai/v1beta3/barcode_pb'
|
8
8
|
require 'google/cloud/documentai/v1beta3/geometry_pb'
|
9
9
|
require 'google/protobuf/timestamp_pb'
|
10
10
|
require 'google/rpc/status_pb'
|
@@ -45,6 +45,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
45
45
|
optional :text_style, :string, 5
|
46
46
|
optional :text_decoration, :string, 6
|
47
47
|
optional :font_size, :message, 7, "google.cloud.documentai.v1beta3.Document.Style.FontSize"
|
48
|
+
optional :font_family, :string, 8
|
48
49
|
end
|
49
50
|
add_message "google.cloud.documentai.v1beta3.Document.Style.FontSize" do
|
50
51
|
optional :size, :float, 1
|
@@ -65,6 +66,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
65
66
|
repeated :tables, :message, 10, "google.cloud.documentai.v1beta3.Document.Page.Table"
|
66
67
|
repeated :form_fields, :message, 11, "google.cloud.documentai.v1beta3.Document.Page.FormField"
|
67
68
|
repeated :symbols, :message, 12, "google.cloud.documentai.v1beta3.Document.Page.Symbol"
|
69
|
+
repeated :detected_barcodes, :message, 15, "google.cloud.documentai.v1beta3.Document.Page.DetectedBarcode"
|
70
|
+
optional :image_quality_scores, :message, 17, "google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores"
|
68
71
|
optional :provenance, :message, 16, "google.cloud.documentai.v1beta3.Document.Provenance"
|
69
72
|
end
|
70
73
|
add_message "google.cloud.documentai.v1beta3.Document.Page.Dimension" do
|
@@ -141,6 +144,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
141
144
|
repeated :header_rows, :message, 2, "google.cloud.documentai.v1beta3.Document.Page.Table.TableRow"
|
142
145
|
repeated :body_rows, :message, 3, "google.cloud.documentai.v1beta3.Document.Page.Table.TableRow"
|
143
146
|
repeated :detected_languages, :message, 4, "google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage"
|
147
|
+
optional :provenance, :message, 5, "google.cloud.documentai.v1beta3.Document.Provenance"
|
144
148
|
end
|
145
149
|
add_message "google.cloud.documentai.v1beta3.Document.Page.Table.TableRow" do
|
146
150
|
repeated :cells, :message, 1, "google.cloud.documentai.v1beta3.Document.Page.Table.TableCell"
|
@@ -157,12 +161,26 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
157
161
|
repeated :name_detected_languages, :message, 3, "google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage"
|
158
162
|
repeated :value_detected_languages, :message, 4, "google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage"
|
159
163
|
optional :value_type, :string, 5
|
164
|
+
optional :corrected_key_text, :string, 6
|
165
|
+
optional :corrected_value_text, :string, 7
|
160
166
|
optional :provenance, :message, 8, "google.cloud.documentai.v1beta3.Document.Provenance"
|
161
167
|
end
|
168
|
+
add_message "google.cloud.documentai.v1beta3.Document.Page.DetectedBarcode" do
|
169
|
+
optional :layout, :message, 1, "google.cloud.documentai.v1beta3.Document.Page.Layout"
|
170
|
+
optional :barcode, :message, 2, "google.cloud.documentai.v1beta3.Barcode"
|
171
|
+
end
|
162
172
|
add_message "google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage" do
|
163
173
|
optional :language_code, :string, 1
|
164
174
|
optional :confidence, :float, 2
|
165
175
|
end
|
176
|
+
add_message "google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores" do
|
177
|
+
optional :quality_score, :float, 1
|
178
|
+
repeated :detected_defects, :message, 2, "google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores.DetectedDefect"
|
179
|
+
end
|
180
|
+
add_message "google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores.DetectedDefect" do
|
181
|
+
optional :type, :string, 1
|
182
|
+
optional :confidence, :float, 2
|
183
|
+
end
|
166
184
|
add_message "google.cloud.documentai.v1beta3.Document.Entity" do
|
167
185
|
optional :text_anchor, :message, 1, "google.cloud.documentai.v1beta3.Document.TextAnchor"
|
168
186
|
optional :type, :string, 2
|
@@ -184,6 +202,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
184
202
|
optional :datetime_value, :message, 4, "google.type.DateTime"
|
185
203
|
optional :address_value, :message, 5, "google.type.PostalAddress"
|
186
204
|
optional :boolean_value, :bool, 6
|
205
|
+
optional :integer_value, :int32, 7
|
206
|
+
optional :float_value, :float, 8
|
187
207
|
end
|
188
208
|
end
|
189
209
|
add_message "google.cloud.documentai.v1beta3.Document.EntityRelation" do
|
@@ -242,6 +262,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
242
262
|
add_message "google.cloud.documentai.v1beta3.Document.Revision" do
|
243
263
|
optional :id, :string, 1
|
244
264
|
repeated :parent, :int32, 2
|
265
|
+
repeated :parent_ids, :string, 7
|
245
266
|
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
246
267
|
optional :human_review, :message, 6, "google.cloud.documentai.v1beta3.Document.Revision.HumanReview"
|
247
268
|
oneof :source do
|
@@ -287,7 +308,10 @@ module Google
|
|
287
308
|
Document::Page::Table::TableRow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.Page.Table.TableRow").msgclass
|
288
309
|
Document::Page::Table::TableCell = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.Page.Table.TableCell").msgclass
|
289
310
|
Document::Page::FormField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.Page.FormField").msgclass
|
311
|
+
Document::Page::DetectedBarcode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.Page.DetectedBarcode").msgclass
|
290
312
|
Document::Page::DetectedLanguage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage").msgclass
|
313
|
+
Document::Page::ImageQualityScores = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores").msgclass
|
314
|
+
Document::Page::ImageQualityScores::DetectedDefect = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores.DetectedDefect").msgclass
|
291
315
|
Document::Entity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.Entity").msgclass
|
292
316
|
Document::Entity::NormalizedValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.Entity.NormalizedValue").msgclass
|
293
317
|
Document::EntityRelation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.EntityRelation").msgclass
|
@@ -9,6 +9,8 @@ require 'google/api/field_behavior_pb'
|
|
9
9
|
require 'google/api/resource_pb'
|
10
10
|
require 'google/cloud/documentai/v1beta3/document_pb'
|
11
11
|
require 'google/cloud/documentai/v1beta3/document_io_pb'
|
12
|
+
require 'google/cloud/documentai/v1beta3/document_schema_pb'
|
13
|
+
require 'google/cloud/documentai/v1beta3/evaluation_pb'
|
12
14
|
require 'google/cloud/documentai/v1beta3/operation_metadata_pb'
|
13
15
|
require 'google/cloud/documentai/v1beta3/processor_pb'
|
14
16
|
require 'google/cloud/documentai/v1beta3/processor_type_pb'
|
@@ -23,6 +25,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
23
25
|
optional :name, :string, 1
|
24
26
|
optional :document, :message, 2, "google.cloud.documentai.v1beta3.Document"
|
25
27
|
optional :skip_human_review, :bool, 3
|
28
|
+
optional :field_mask, :message, 6, "google.protobuf.FieldMask"
|
26
29
|
oneof :source do
|
27
30
|
optional :inline_document, :message, 4, "google.cloud.documentai.v1beta3.Document"
|
28
31
|
optional :raw_document, :message, 5, "google.cloud.documentai.v1beta3.RawDocument"
|
@@ -91,6 +94,15 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
91
94
|
add_message "google.cloud.documentai.v1beta3.FetchProcessorTypesResponse" do
|
92
95
|
repeated :processor_types, :message, 1, "google.cloud.documentai.v1beta3.ProcessorType"
|
93
96
|
end
|
97
|
+
add_message "google.cloud.documentai.v1beta3.ListProcessorTypesRequest" do
|
98
|
+
optional :parent, :string, 1
|
99
|
+
optional :page_size, :int32, 2
|
100
|
+
optional :page_token, :string, 3
|
101
|
+
end
|
102
|
+
add_message "google.cloud.documentai.v1beta3.ListProcessorTypesResponse" do
|
103
|
+
repeated :processor_types, :message, 1, "google.cloud.documentai.v1beta3.ProcessorType"
|
104
|
+
optional :next_page_token, :string, 2
|
105
|
+
end
|
94
106
|
add_message "google.cloud.documentai.v1beta3.ListProcessorsRequest" do
|
95
107
|
optional :parent, :string, 1
|
96
108
|
optional :page_size, :int32, 2
|
@@ -100,6 +112,43 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
100
112
|
repeated :processors, :message, 1, "google.cloud.documentai.v1beta3.Processor"
|
101
113
|
optional :next_page_token, :string, 2
|
102
114
|
end
|
115
|
+
add_message "google.cloud.documentai.v1beta3.GetProcessorRequest" do
|
116
|
+
optional :name, :string, 1
|
117
|
+
end
|
118
|
+
add_message "google.cloud.documentai.v1beta3.GetProcessorVersionRequest" do
|
119
|
+
optional :name, :string, 1
|
120
|
+
end
|
121
|
+
add_message "google.cloud.documentai.v1beta3.ListProcessorVersionsRequest" do
|
122
|
+
optional :parent, :string, 1
|
123
|
+
optional :page_size, :int32, 2
|
124
|
+
optional :page_token, :string, 3
|
125
|
+
end
|
126
|
+
add_message "google.cloud.documentai.v1beta3.ListProcessorVersionsResponse" do
|
127
|
+
repeated :processor_versions, :message, 1, "google.cloud.documentai.v1beta3.ProcessorVersion"
|
128
|
+
optional :next_page_token, :string, 2
|
129
|
+
end
|
130
|
+
add_message "google.cloud.documentai.v1beta3.DeleteProcessorVersionRequest" do
|
131
|
+
optional :name, :string, 1
|
132
|
+
end
|
133
|
+
add_message "google.cloud.documentai.v1beta3.DeleteProcessorVersionMetadata" do
|
134
|
+
optional :common_metadata, :message, 1, "google.cloud.documentai.v1beta3.CommonOperationMetadata"
|
135
|
+
end
|
136
|
+
add_message "google.cloud.documentai.v1beta3.DeployProcessorVersionRequest" do
|
137
|
+
optional :name, :string, 1
|
138
|
+
end
|
139
|
+
add_message "google.cloud.documentai.v1beta3.DeployProcessorVersionResponse" do
|
140
|
+
end
|
141
|
+
add_message "google.cloud.documentai.v1beta3.DeployProcessorVersionMetadata" do
|
142
|
+
optional :common_metadata, :message, 1, "google.cloud.documentai.v1beta3.CommonOperationMetadata"
|
143
|
+
end
|
144
|
+
add_message "google.cloud.documentai.v1beta3.UndeployProcessorVersionRequest" do
|
145
|
+
optional :name, :string, 1
|
146
|
+
end
|
147
|
+
add_message "google.cloud.documentai.v1beta3.UndeployProcessorVersionResponse" do
|
148
|
+
end
|
149
|
+
add_message "google.cloud.documentai.v1beta3.UndeployProcessorVersionMetadata" do
|
150
|
+
optional :common_metadata, :message, 1, "google.cloud.documentai.v1beta3.CommonOperationMetadata"
|
151
|
+
end
|
103
152
|
add_message "google.cloud.documentai.v1beta3.CreateProcessorRequest" do
|
104
153
|
optional :parent, :string, 1
|
105
154
|
optional :processor, :message, 2, "google.cloud.documentai.v1beta3.Processor"
|
@@ -126,11 +175,46 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
126
175
|
add_message "google.cloud.documentai.v1beta3.DisableProcessorMetadata" do
|
127
176
|
optional :common_metadata, :message, 5, "google.cloud.documentai.v1beta3.CommonOperationMetadata"
|
128
177
|
end
|
178
|
+
add_message "google.cloud.documentai.v1beta3.SetDefaultProcessorVersionRequest" do
|
179
|
+
optional :processor, :string, 1
|
180
|
+
optional :default_processor_version, :string, 2
|
181
|
+
end
|
182
|
+
add_message "google.cloud.documentai.v1beta3.SetDefaultProcessorVersionResponse" do
|
183
|
+
end
|
184
|
+
add_message "google.cloud.documentai.v1beta3.SetDefaultProcessorVersionMetadata" do
|
185
|
+
optional :common_metadata, :message, 1, "google.cloud.documentai.v1beta3.CommonOperationMetadata"
|
186
|
+
end
|
187
|
+
add_message "google.cloud.documentai.v1beta3.TrainProcessorVersionRequest" do
|
188
|
+
optional :parent, :string, 1
|
189
|
+
optional :processor_version, :message, 2, "google.cloud.documentai.v1beta3.ProcessorVersion"
|
190
|
+
optional :document_schema, :message, 10, "google.cloud.documentai.v1beta3.DocumentSchema"
|
191
|
+
optional :input_data, :message, 4, "google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.InputData"
|
192
|
+
optional :base_processor_version, :string, 8
|
193
|
+
end
|
194
|
+
add_message "google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.InputData" do
|
195
|
+
optional :training_documents, :message, 3, "google.cloud.documentai.v1beta3.BatchDocumentsInputConfig"
|
196
|
+
optional :test_documents, :message, 4, "google.cloud.documentai.v1beta3.BatchDocumentsInputConfig"
|
197
|
+
end
|
198
|
+
add_message "google.cloud.documentai.v1beta3.TrainProcessorVersionResponse" do
|
199
|
+
optional :processor_version, :string, 1
|
200
|
+
end
|
201
|
+
add_message "google.cloud.documentai.v1beta3.TrainProcessorVersionMetadata" do
|
202
|
+
optional :common_metadata, :message, 1, "google.cloud.documentai.v1beta3.CommonOperationMetadata"
|
203
|
+
optional :training_dataset_validation, :message, 2, "google.cloud.documentai.v1beta3.TrainProcessorVersionMetadata.DatasetValidation"
|
204
|
+
optional :test_dataset_validation, :message, 3, "google.cloud.documentai.v1beta3.TrainProcessorVersionMetadata.DatasetValidation"
|
205
|
+
end
|
206
|
+
add_message "google.cloud.documentai.v1beta3.TrainProcessorVersionMetadata.DatasetValidation" do
|
207
|
+
optional :document_error_count, :int32, 3
|
208
|
+
optional :dataset_error_count, :int32, 4
|
209
|
+
repeated :document_errors, :message, 1, "google.rpc.Status"
|
210
|
+
repeated :dataset_errors, :message, 2, "google.rpc.Status"
|
211
|
+
end
|
129
212
|
add_message "google.cloud.documentai.v1beta3.ReviewDocumentRequest" do
|
130
213
|
optional :human_review_config, :string, 1
|
131
214
|
optional :document, :message, 2, "google.cloud.documentai.v1beta3.Document"
|
132
215
|
optional :enable_schema_validation, :bool, 3
|
133
216
|
optional :priority, :enum, 5, "google.cloud.documentai.v1beta3.ReviewDocumentRequest.Priority"
|
217
|
+
optional :document_schema, :message, 6, "google.cloud.documentai.v1beta3.DocumentSchema"
|
134
218
|
oneof :source do
|
135
219
|
optional :inline_document, :message, 4, "google.cloud.documentai.v1beta3.Document"
|
136
220
|
end
|
@@ -141,6 +225,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
141
225
|
end
|
142
226
|
add_message "google.cloud.documentai.v1beta3.ReviewDocumentResponse" do
|
143
227
|
optional :gcs_destination, :string, 1
|
228
|
+
optional :state, :enum, 2, "google.cloud.documentai.v1beta3.ReviewDocumentResponse.State"
|
229
|
+
optional :rejection_reason, :string, 3
|
230
|
+
end
|
231
|
+
add_enum "google.cloud.documentai.v1beta3.ReviewDocumentResponse.State" do
|
232
|
+
value :STATE_UNSPECIFIED, 0
|
233
|
+
value :REJECTED, 1
|
234
|
+
value :SUCCEEDED, 2
|
144
235
|
end
|
145
236
|
add_message "google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata" do
|
146
237
|
optional :state, :enum, 1, "google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata.State"
|
@@ -158,6 +249,28 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
158
249
|
value :FAILED, 4
|
159
250
|
value :CANCELLED, 5
|
160
251
|
end
|
252
|
+
add_message "google.cloud.documentai.v1beta3.EvaluateProcessorVersionRequest" do
|
253
|
+
optional :processor_version, :string, 1
|
254
|
+
optional :evaluation_documents, :message, 3, "google.cloud.documentai.v1beta3.BatchDocumentsInputConfig"
|
255
|
+
end
|
256
|
+
add_message "google.cloud.documentai.v1beta3.EvaluateProcessorVersionMetadata" do
|
257
|
+
optional :common_metadata, :message, 1, "google.cloud.documentai.v1beta3.CommonOperationMetadata"
|
258
|
+
end
|
259
|
+
add_message "google.cloud.documentai.v1beta3.EvaluateProcessorVersionResponse" do
|
260
|
+
optional :evaluation, :string, 2
|
261
|
+
end
|
262
|
+
add_message "google.cloud.documentai.v1beta3.GetEvaluationRequest" do
|
263
|
+
optional :name, :string, 1
|
264
|
+
end
|
265
|
+
add_message "google.cloud.documentai.v1beta3.ListEvaluationsRequest" do
|
266
|
+
optional :parent, :string, 1
|
267
|
+
optional :page_size, :int32, 2
|
268
|
+
optional :page_token, :string, 3
|
269
|
+
end
|
270
|
+
add_message "google.cloud.documentai.v1beta3.ListEvaluationsResponse" do
|
271
|
+
repeated :evaluations, :message, 1, "google.cloud.documentai.v1beta3.Evaluation"
|
272
|
+
optional :next_page_token, :string, 2
|
273
|
+
end
|
161
274
|
end
|
162
275
|
end
|
163
276
|
|
@@ -178,8 +291,22 @@ module Google
|
|
178
291
|
BatchProcessMetadata::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.BatchProcessMetadata.State").enummodule
|
179
292
|
FetchProcessorTypesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.FetchProcessorTypesRequest").msgclass
|
180
293
|
FetchProcessorTypesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.FetchProcessorTypesResponse").msgclass
|
294
|
+
ListProcessorTypesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ListProcessorTypesRequest").msgclass
|
295
|
+
ListProcessorTypesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ListProcessorTypesResponse").msgclass
|
181
296
|
ListProcessorsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ListProcessorsRequest").msgclass
|
182
297
|
ListProcessorsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ListProcessorsResponse").msgclass
|
298
|
+
GetProcessorRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.GetProcessorRequest").msgclass
|
299
|
+
GetProcessorVersionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.GetProcessorVersionRequest").msgclass
|
300
|
+
ListProcessorVersionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ListProcessorVersionsRequest").msgclass
|
301
|
+
ListProcessorVersionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ListProcessorVersionsResponse").msgclass
|
302
|
+
DeleteProcessorVersionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.DeleteProcessorVersionRequest").msgclass
|
303
|
+
DeleteProcessorVersionMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.DeleteProcessorVersionMetadata").msgclass
|
304
|
+
DeployProcessorVersionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.DeployProcessorVersionRequest").msgclass
|
305
|
+
DeployProcessorVersionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.DeployProcessorVersionResponse").msgclass
|
306
|
+
DeployProcessorVersionMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.DeployProcessorVersionMetadata").msgclass
|
307
|
+
UndeployProcessorVersionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.UndeployProcessorVersionRequest").msgclass
|
308
|
+
UndeployProcessorVersionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.UndeployProcessorVersionResponse").msgclass
|
309
|
+
UndeployProcessorVersionMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.UndeployProcessorVersionMetadata").msgclass
|
183
310
|
CreateProcessorRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.CreateProcessorRequest").msgclass
|
184
311
|
DeleteProcessorRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.DeleteProcessorRequest").msgclass
|
185
312
|
DeleteProcessorMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.DeleteProcessorMetadata").msgclass
|
@@ -189,11 +316,26 @@ module Google
|
|
189
316
|
DisableProcessorRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.DisableProcessorRequest").msgclass
|
190
317
|
DisableProcessorResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.DisableProcessorResponse").msgclass
|
191
318
|
DisableProcessorMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.DisableProcessorMetadata").msgclass
|
319
|
+
SetDefaultProcessorVersionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.SetDefaultProcessorVersionRequest").msgclass
|
320
|
+
SetDefaultProcessorVersionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.SetDefaultProcessorVersionResponse").msgclass
|
321
|
+
SetDefaultProcessorVersionMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.SetDefaultProcessorVersionMetadata").msgclass
|
322
|
+
TrainProcessorVersionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.TrainProcessorVersionRequest").msgclass
|
323
|
+
TrainProcessorVersionRequest::InputData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.InputData").msgclass
|
324
|
+
TrainProcessorVersionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.TrainProcessorVersionResponse").msgclass
|
325
|
+
TrainProcessorVersionMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.TrainProcessorVersionMetadata").msgclass
|
326
|
+
TrainProcessorVersionMetadata::DatasetValidation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.TrainProcessorVersionMetadata.DatasetValidation").msgclass
|
192
327
|
ReviewDocumentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ReviewDocumentRequest").msgclass
|
193
328
|
ReviewDocumentRequest::Priority = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ReviewDocumentRequest.Priority").enummodule
|
194
329
|
ReviewDocumentResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ReviewDocumentResponse").msgclass
|
330
|
+
ReviewDocumentResponse::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ReviewDocumentResponse.State").enummodule
|
195
331
|
ReviewDocumentOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata").msgclass
|
196
332
|
ReviewDocumentOperationMetadata::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata.State").enummodule
|
333
|
+
EvaluateProcessorVersionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.EvaluateProcessorVersionRequest").msgclass
|
334
|
+
EvaluateProcessorVersionMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.EvaluateProcessorVersionMetadata").msgclass
|
335
|
+
EvaluateProcessorVersionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.EvaluateProcessorVersionResponse").msgclass
|
336
|
+
GetEvaluationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.GetEvaluationRequest").msgclass
|
337
|
+
ListEvaluationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ListEvaluationsRequest").msgclass
|
338
|
+
ListEvaluationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ListEvaluationsResponse").msgclass
|
197
339
|
end
|
198
340
|
end
|
199
341
|
end
|
@@ -41,10 +41,30 @@ module Google
|
|
41
41
|
# LRO endpoint to batch process many documents. The output is written
|
42
42
|
# to Cloud Storage as JSON in the [Document] format.
|
43
43
|
rpc :BatchProcessDocuments, ::Google::Cloud::DocumentAI::V1beta3::BatchProcessRequest, ::Google::Longrunning::Operation
|
44
|
-
# Fetches processor types.
|
44
|
+
# Fetches processor types. Note that we do not use ListProcessorTypes here
|
45
|
+
# because it is not paginated.
|
45
46
|
rpc :FetchProcessorTypes, ::Google::Cloud::DocumentAI::V1beta3::FetchProcessorTypesRequest, ::Google::Cloud::DocumentAI::V1beta3::FetchProcessorTypesResponse
|
47
|
+
# Lists the processor types that exist.
|
48
|
+
rpc :ListProcessorTypes, ::Google::Cloud::DocumentAI::V1beta3::ListProcessorTypesRequest, ::Google::Cloud::DocumentAI::V1beta3::ListProcessorTypesResponse
|
46
49
|
# Lists all processors which belong to this project.
|
47
50
|
rpc :ListProcessors, ::Google::Cloud::DocumentAI::V1beta3::ListProcessorsRequest, ::Google::Cloud::DocumentAI::V1beta3::ListProcessorsResponse
|
51
|
+
# Gets a processor detail.
|
52
|
+
rpc :GetProcessor, ::Google::Cloud::DocumentAI::V1beta3::GetProcessorRequest, ::Google::Cloud::DocumentAI::V1beta3::Processor
|
53
|
+
# Trains a new processor version.
|
54
|
+
# Operation metadata is returned as
|
55
|
+
# cloud_documentai_core.TrainProcessorVersionMetadata.
|
56
|
+
rpc :TrainProcessorVersion, ::Google::Cloud::DocumentAI::V1beta3::TrainProcessorVersionRequest, ::Google::Longrunning::Operation
|
57
|
+
# Gets a processor version detail.
|
58
|
+
rpc :GetProcessorVersion, ::Google::Cloud::DocumentAI::V1beta3::GetProcessorVersionRequest, ::Google::Cloud::DocumentAI::V1beta3::ProcessorVersion
|
59
|
+
# Lists all versions of a processor.
|
60
|
+
rpc :ListProcessorVersions, ::Google::Cloud::DocumentAI::V1beta3::ListProcessorVersionsRequest, ::Google::Cloud::DocumentAI::V1beta3::ListProcessorVersionsResponse
|
61
|
+
# Deletes the processor version, all artifacts under the processor version
|
62
|
+
# will be deleted.
|
63
|
+
rpc :DeleteProcessorVersion, ::Google::Cloud::DocumentAI::V1beta3::DeleteProcessorVersionRequest, ::Google::Longrunning::Operation
|
64
|
+
# Deploys the processor version.
|
65
|
+
rpc :DeployProcessorVersion, ::Google::Cloud::DocumentAI::V1beta3::DeployProcessorVersionRequest, ::Google::Longrunning::Operation
|
66
|
+
# Undeploys the processor version.
|
67
|
+
rpc :UndeployProcessorVersion, ::Google::Cloud::DocumentAI::V1beta3::UndeployProcessorVersionRequest, ::Google::Longrunning::Operation
|
48
68
|
# Creates a processor from the type processor that the user chose.
|
49
69
|
# The processor will be at "ENABLED" state by default after its creation.
|
50
70
|
rpc :CreateProcessor, ::Google::Cloud::DocumentAI::V1beta3::CreateProcessorRequest, ::Google::Cloud::DocumentAI::V1beta3::Processor
|
@@ -55,9 +75,20 @@ module Google
|
|
55
75
|
rpc :EnableProcessor, ::Google::Cloud::DocumentAI::V1beta3::EnableProcessorRequest, ::Google::Longrunning::Operation
|
56
76
|
# Disables a processor
|
57
77
|
rpc :DisableProcessor, ::Google::Cloud::DocumentAI::V1beta3::DisableProcessorRequest, ::Google::Longrunning::Operation
|
78
|
+
# Set the default (active) version of a [Processor][google.cloud.documentai.v1beta3.Processor] that will be used in
|
79
|
+
# [ProcessDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ProcessDocument] and
|
80
|
+
# [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments].
|
81
|
+
rpc :SetDefaultProcessorVersion, ::Google::Cloud::DocumentAI::V1beta3::SetDefaultProcessorVersionRequest, ::Google::Longrunning::Operation
|
58
82
|
# Send a document for Human Review. The input document should be processed by
|
59
83
|
# the specified processor.
|
60
84
|
rpc :ReviewDocument, ::Google::Cloud::DocumentAI::V1beta3::ReviewDocumentRequest, ::Google::Longrunning::Operation
|
85
|
+
# Evaluates a ProcessorVersion against annotated documents, producing an
|
86
|
+
# Evaluation.
|
87
|
+
rpc :EvaluateProcessorVersion, ::Google::Cloud::DocumentAI::V1beta3::EvaluateProcessorVersionRequest, ::Google::Longrunning::Operation
|
88
|
+
# Retrieves a specific evaluation.
|
89
|
+
rpc :GetEvaluation, ::Google::Cloud::DocumentAI::V1beta3::GetEvaluationRequest, ::Google::Cloud::DocumentAI::V1beta3::Evaluation
|
90
|
+
# Retrieves a set of evaluations for a given processor version.
|
91
|
+
rpc :ListEvaluations, ::Google::Cloud::DocumentAI::V1beta3::ListEvaluationsRequest, ::Google::Cloud::DocumentAI::V1beta3::ListEvaluationsResponse
|
61
92
|
end
|
62
93
|
|
63
94
|
Stub = Service.rpc_stub_class
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/documentai/v1beta3/document_schema.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("google/cloud/documentai/v1beta3/document_schema.proto", :syntax => :proto3) do
|
8
|
+
add_message "google.cloud.documentai.v1beta3.DocumentSchema" do
|
9
|
+
optional :display_name, :string, 1
|
10
|
+
optional :description, :string, 2
|
11
|
+
repeated :entity_types, :message, 3, "google.cloud.documentai.v1beta3.DocumentSchema.EntityType"
|
12
|
+
optional :metadata, :message, 4, "google.cloud.documentai.v1beta3.DocumentSchema.Metadata"
|
13
|
+
end
|
14
|
+
add_message "google.cloud.documentai.v1beta3.DocumentSchema.EntityType" do
|
15
|
+
optional :display_name, :string, 13
|
16
|
+
optional :name, :string, 1
|
17
|
+
repeated :base_types, :string, 2
|
18
|
+
repeated :properties, :message, 6, "google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property"
|
19
|
+
oneof :value_source do
|
20
|
+
optional :enum_values, :message, 14, "google.cloud.documentai.v1beta3.DocumentSchema.EntityType.EnumValues"
|
21
|
+
end
|
22
|
+
end
|
23
|
+
add_message "google.cloud.documentai.v1beta3.DocumentSchema.EntityType.EnumValues" do
|
24
|
+
repeated :values, :string, 1
|
25
|
+
end
|
26
|
+
add_message "google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property" do
|
27
|
+
optional :name, :string, 1
|
28
|
+
optional :value_type, :string, 2
|
29
|
+
optional :occurrence_type, :enum, 3, "google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property.OccurrenceType"
|
30
|
+
end
|
31
|
+
add_enum "google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property.OccurrenceType" do
|
32
|
+
value :OCCURRENCE_TYPE_UNSPECIFIED, 0
|
33
|
+
value :OPTIONAL_ONCE, 1
|
34
|
+
value :OPTIONAL_MULTIPLE, 2
|
35
|
+
value :REQUIRED_ONCE, 3
|
36
|
+
value :REQUIRED_MULTIPLE, 4
|
37
|
+
end
|
38
|
+
add_message "google.cloud.documentai.v1beta3.DocumentSchema.Metadata" do
|
39
|
+
optional :document_splitter, :bool, 1
|
40
|
+
optional :document_allow_multiple_labels, :bool, 2
|
41
|
+
optional :prefixed_naming_on_properties, :bool, 6
|
42
|
+
optional :skip_naming_validation, :bool, 7
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
module Google
|
48
|
+
module Cloud
|
49
|
+
module DocumentAI
|
50
|
+
module V1beta3
|
51
|
+
DocumentSchema = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.DocumentSchema").msgclass
|
52
|
+
DocumentSchema::EntityType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.DocumentSchema.EntityType").msgclass
|
53
|
+
DocumentSchema::EntityType::EnumValues = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.DocumentSchema.EntityType.EnumValues").msgclass
|
54
|
+
DocumentSchema::EntityType::Property = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property").msgclass
|
55
|
+
DocumentSchema::EntityType::Property::OccurrenceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property.OccurrenceType").enummodule
|
56
|
+
DocumentSchema::Metadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.DocumentSchema.Metadata").msgclass
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
@@ -0,0 +1,72 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/documentai/v1beta3/evaluation.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/resource_pb'
|
7
|
+
require 'google/protobuf/timestamp_pb'
|
8
|
+
|
9
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
|
+
add_file("google/cloud/documentai/v1beta3/evaluation.proto", :syntax => :proto3) do
|
11
|
+
add_message "google.cloud.documentai.v1beta3.Evaluation" do
|
12
|
+
optional :name, :string, 1
|
13
|
+
optional :create_time, :message, 2, "google.protobuf.Timestamp"
|
14
|
+
optional :document_counters, :message, 5, "google.cloud.documentai.v1beta3.Evaluation.Counters"
|
15
|
+
optional :all_entities_metrics, :message, 3, "google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics"
|
16
|
+
map :entity_metrics, :string, :message, 4, "google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics"
|
17
|
+
optional :kms_key_name, :string, 6
|
18
|
+
optional :kms_key_version_name, :string, 7
|
19
|
+
end
|
20
|
+
add_message "google.cloud.documentai.v1beta3.Evaluation.Counters" do
|
21
|
+
optional :input_documents_count, :int32, 1
|
22
|
+
optional :invalid_documents_count, :int32, 2
|
23
|
+
optional :failed_documents_count, :int32, 3
|
24
|
+
optional :evaluated_documents_count, :int32, 4
|
25
|
+
end
|
26
|
+
add_message "google.cloud.documentai.v1beta3.Evaluation.Metrics" do
|
27
|
+
optional :precision, :float, 1
|
28
|
+
optional :recall, :float, 2
|
29
|
+
optional :f1_score, :float, 3
|
30
|
+
optional :predicted_occurrences_count, :int32, 4
|
31
|
+
optional :ground_truth_occurrences_count, :int32, 5
|
32
|
+
optional :predicted_document_count, :int32, 10
|
33
|
+
optional :ground_truth_document_count, :int32, 11
|
34
|
+
optional :true_positives_count, :int32, 6
|
35
|
+
optional :false_positives_count, :int32, 7
|
36
|
+
optional :false_negatives_count, :int32, 8
|
37
|
+
optional :total_documents_count, :int32, 9
|
38
|
+
end
|
39
|
+
add_message "google.cloud.documentai.v1beta3.Evaluation.ConfidenceLevelMetrics" do
|
40
|
+
optional :confidence_level, :float, 1
|
41
|
+
optional :metrics, :message, 2, "google.cloud.documentai.v1beta3.Evaluation.Metrics"
|
42
|
+
end
|
43
|
+
add_message "google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics" do
|
44
|
+
repeated :confidence_level_metrics, :message, 1, "google.cloud.documentai.v1beta3.Evaluation.ConfidenceLevelMetrics"
|
45
|
+
repeated :confidence_level_metrics_exact, :message, 4, "google.cloud.documentai.v1beta3.Evaluation.ConfidenceLevelMetrics"
|
46
|
+
optional :auprc, :float, 2
|
47
|
+
optional :estimated_calibration_error, :float, 3
|
48
|
+
optional :auprc_exact, :float, 5
|
49
|
+
optional :estimated_calibration_error_exact, :float, 6
|
50
|
+
optional :metrics_type, :enum, 7, "google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics.MetricsType"
|
51
|
+
end
|
52
|
+
add_enum "google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics.MetricsType" do
|
53
|
+
value :METRICS_TYPE_UNSPECIFIED, 0
|
54
|
+
value :AGGREGATE, 1
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
module Google
|
60
|
+
module Cloud
|
61
|
+
module DocumentAI
|
62
|
+
module V1beta3
|
63
|
+
Evaluation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Evaluation").msgclass
|
64
|
+
Evaluation::Counters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Evaluation.Counters").msgclass
|
65
|
+
Evaluation::Metrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Evaluation.Metrics").msgclass
|
66
|
+
Evaluation::ConfidenceLevelMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Evaluation.ConfidenceLevelMetrics").msgclass
|
67
|
+
Evaluation::MultiConfidenceMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics").msgclass
|
68
|
+
Evaluation::MultiConfidenceMetrics::MetricsType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics.MetricsType").enummodule
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
@@ -3,8 +3,6 @@
|
|
3
3
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
|
-
require 'google/api/annotations_pb'
|
7
|
-
|
8
6
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
7
|
add_file("google/cloud/documentai/v1beta3/geometry.proto", :syntax => :proto3) do
|
10
8
|
add_message "google.cloud.documentai.v1beta3.Vertex" do
|
@@ -4,13 +4,13 @@
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
6
|
require 'google/protobuf/timestamp_pb'
|
7
|
-
require 'google/api/annotations_pb'
|
8
7
|
|
9
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
9
|
add_file("google/cloud/documentai/v1beta3/operation_metadata.proto", :syntax => :proto3) do
|
11
10
|
add_message "google.cloud.documentai.v1beta3.CommonOperationMetadata" do
|
12
11
|
optional :state, :enum, 1, "google.cloud.documentai.v1beta3.CommonOperationMetadata.State"
|
13
12
|
optional :state_message, :string, 2
|
13
|
+
optional :resource, :string, 5
|
14
14
|
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
15
15
|
optional :update_time, :message, 4, "google.protobuf.Timestamp"
|
16
16
|
end
|