google-cloud-document_ai-v1beta3 0.12.0 → 0.13.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/lib/google/cloud/document_ai/v1beta3/document_processor_service/client.rb +957 -123
- data/lib/google/cloud/document_ai/v1beta3/document_processor_service/paths.rb +21 -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 +0 -2
- data/lib/google/cloud/documentai/v1beta3/document_pb.rb +12 -1
- data/lib/google/cloud/documentai/v1beta3/document_processor_service_pb.rb +83 -0
- data/lib/google/cloud/documentai/v1beta3/document_processor_service_services_pb.rb +21 -1
- data/lib/google/cloud/documentai/v1beta3/document_schema_pb.rb +60 -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 +27 -2
- data/lib/google/cloud/documentai/v1beta3/processor_type_pb.rb +2 -1
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/cloud/documentai/v1beta3/barcode.rb +71 -0
- data/proto_docs/google/cloud/documentai/v1beta3/document.rb +111 -138
- data/proto_docs/google/cloud/documentai/v1beta3/document_processor_service.rb +223 -10
- data/proto_docs/google/cloud/documentai/v1beta3/document_schema.rb +154 -0
- data/proto_docs/google/cloud/documentai/v1beta3/operation_metadata.rb +3 -0
- data/proto_docs/google/cloud/documentai/v1beta3/processor.rb +92 -7
- data/proto_docs/google/cloud/documentai/v1beta3/processor_type.rb +9 -6
- data/proto_docs/google/protobuf/empty.rb +0 -2
- metadata +27 -2
@@ -79,6 +79,27 @@ module Google
|
|
79
79
|
"projects/#{project}/locations/#{location}/processors/#{processor}"
|
80
80
|
end
|
81
81
|
|
82
|
+
##
|
83
|
+
# Create a fully-qualified ProcessorVersion resource string.
|
84
|
+
#
|
85
|
+
# The resource will be in the following format:
|
86
|
+
#
|
87
|
+
# `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}`
|
88
|
+
#
|
89
|
+
# @param project [String]
|
90
|
+
# @param location [String]
|
91
|
+
# @param processor [String]
|
92
|
+
# @param processor_version [String]
|
93
|
+
#
|
94
|
+
# @return [::String]
|
95
|
+
def processor_version_path project:, location:, processor:, processor_version:
|
96
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
97
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
98
|
+
raise ::ArgumentError, "processor cannot contain /" if processor.to_s.include? "/"
|
99
|
+
|
100
|
+
"projects/#{project}/locations/#{location}/processors/#{processor}/processorVersions/#{processor_version}"
|
101
|
+
end
|
102
|
+
|
82
103
|
extend self
|
83
104
|
end
|
84
105
|
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,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/document_io.proto", :syntax => :proto3) do
|
10
8
|
add_message "google.cloud.documentai.v1beta3.RawDocument" do
|
@@ -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'
|
@@ -65,6 +65,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
65
65
|
repeated :tables, :message, 10, "google.cloud.documentai.v1beta3.Document.Page.Table"
|
66
66
|
repeated :form_fields, :message, 11, "google.cloud.documentai.v1beta3.Document.Page.FormField"
|
67
67
|
repeated :symbols, :message, 12, "google.cloud.documentai.v1beta3.Document.Page.Symbol"
|
68
|
+
repeated :detected_barcodes, :message, 15, "google.cloud.documentai.v1beta3.Document.Page.DetectedBarcode"
|
68
69
|
optional :provenance, :message, 16, "google.cloud.documentai.v1beta3.Document.Provenance"
|
69
70
|
end
|
70
71
|
add_message "google.cloud.documentai.v1beta3.Document.Page.Dimension" do
|
@@ -157,8 +158,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
157
158
|
repeated :name_detected_languages, :message, 3, "google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage"
|
158
159
|
repeated :value_detected_languages, :message, 4, "google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage"
|
159
160
|
optional :value_type, :string, 5
|
161
|
+
optional :corrected_key_text, :string, 6
|
162
|
+
optional :corrected_value_text, :string, 7
|
160
163
|
optional :provenance, :message, 8, "google.cloud.documentai.v1beta3.Document.Provenance"
|
161
164
|
end
|
165
|
+
add_message "google.cloud.documentai.v1beta3.Document.Page.DetectedBarcode" do
|
166
|
+
optional :layout, :message, 1, "google.cloud.documentai.v1beta3.Document.Page.Layout"
|
167
|
+
optional :barcode, :message, 2, "google.cloud.documentai.v1beta3.Barcode"
|
168
|
+
end
|
162
169
|
add_message "google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage" do
|
163
170
|
optional :language_code, :string, 1
|
164
171
|
optional :confidence, :float, 2
|
@@ -184,6 +191,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
184
191
|
optional :datetime_value, :message, 4, "google.type.DateTime"
|
185
192
|
optional :address_value, :message, 5, "google.type.PostalAddress"
|
186
193
|
optional :boolean_value, :bool, 6
|
194
|
+
optional :integer_value, :int32, 7
|
195
|
+
optional :float_value, :float, 8
|
187
196
|
end
|
188
197
|
end
|
189
198
|
add_message "google.cloud.documentai.v1beta3.Document.EntityRelation" do
|
@@ -242,6 +251,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
242
251
|
add_message "google.cloud.documentai.v1beta3.Document.Revision" do
|
243
252
|
optional :id, :string, 1
|
244
253
|
repeated :parent, :int32, 2
|
254
|
+
repeated :parent_ids, :string, 7
|
245
255
|
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
246
256
|
optional :human_review, :message, 6, "google.cloud.documentai.v1beta3.Document.Revision.HumanReview"
|
247
257
|
oneof :source do
|
@@ -287,6 +297,7 @@ module Google
|
|
287
297
|
Document::Page::Table::TableRow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.Page.Table.TableRow").msgclass
|
288
298
|
Document::Page::Table::TableCell = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.Page.Table.TableCell").msgclass
|
289
299
|
Document::Page::FormField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.Page.FormField").msgclass
|
300
|
+
Document::Page::DetectedBarcode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.Page.DetectedBarcode").msgclass
|
290
301
|
Document::Page::DetectedLanguage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage").msgclass
|
291
302
|
Document::Entity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.Entity").msgclass
|
292
303
|
Document::Entity::NormalizedValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.Entity.NormalizedValue").msgclass
|
@@ -9,6 +9,7 @@ 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'
|
12
13
|
require 'google/cloud/documentai/v1beta3/operation_metadata_pb'
|
13
14
|
require 'google/cloud/documentai/v1beta3/processor_pb'
|
14
15
|
require 'google/cloud/documentai/v1beta3/processor_type_pb'
|
@@ -23,6 +24,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
23
24
|
optional :name, :string, 1
|
24
25
|
optional :document, :message, 2, "google.cloud.documentai.v1beta3.Document"
|
25
26
|
optional :skip_human_review, :bool, 3
|
27
|
+
optional :field_mask, :message, 6, "google.protobuf.FieldMask"
|
26
28
|
oneof :source do
|
27
29
|
optional :inline_document, :message, 4, "google.cloud.documentai.v1beta3.Document"
|
28
30
|
optional :raw_document, :message, 5, "google.cloud.documentai.v1beta3.RawDocument"
|
@@ -91,6 +93,15 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
91
93
|
add_message "google.cloud.documentai.v1beta3.FetchProcessorTypesResponse" do
|
92
94
|
repeated :processor_types, :message, 1, "google.cloud.documentai.v1beta3.ProcessorType"
|
93
95
|
end
|
96
|
+
add_message "google.cloud.documentai.v1beta3.ListProcessorTypesRequest" do
|
97
|
+
optional :parent, :string, 1
|
98
|
+
optional :page_size, :int32, 2
|
99
|
+
optional :page_token, :string, 3
|
100
|
+
end
|
101
|
+
add_message "google.cloud.documentai.v1beta3.ListProcessorTypesResponse" do
|
102
|
+
repeated :processor_types, :message, 1, "google.cloud.documentai.v1beta3.ProcessorType"
|
103
|
+
optional :next_page_token, :string, 2
|
104
|
+
end
|
94
105
|
add_message "google.cloud.documentai.v1beta3.ListProcessorsRequest" do
|
95
106
|
optional :parent, :string, 1
|
96
107
|
optional :page_size, :int32, 2
|
@@ -100,6 +111,43 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
100
111
|
repeated :processors, :message, 1, "google.cloud.documentai.v1beta3.Processor"
|
101
112
|
optional :next_page_token, :string, 2
|
102
113
|
end
|
114
|
+
add_message "google.cloud.documentai.v1beta3.GetProcessorRequest" do
|
115
|
+
optional :name, :string, 1
|
116
|
+
end
|
117
|
+
add_message "google.cloud.documentai.v1beta3.GetProcessorVersionRequest" do
|
118
|
+
optional :name, :string, 1
|
119
|
+
end
|
120
|
+
add_message "google.cloud.documentai.v1beta3.ListProcessorVersionsRequest" do
|
121
|
+
optional :parent, :string, 1
|
122
|
+
optional :page_size, :int32, 2
|
123
|
+
optional :page_token, :string, 3
|
124
|
+
end
|
125
|
+
add_message "google.cloud.documentai.v1beta3.ListProcessorVersionsResponse" do
|
126
|
+
repeated :processor_versions, :message, 1, "google.cloud.documentai.v1beta3.ProcessorVersion"
|
127
|
+
optional :next_page_token, :string, 2
|
128
|
+
end
|
129
|
+
add_message "google.cloud.documentai.v1beta3.DeleteProcessorVersionRequest" do
|
130
|
+
optional :name, :string, 1
|
131
|
+
end
|
132
|
+
add_message "google.cloud.documentai.v1beta3.DeleteProcessorVersionMetadata" do
|
133
|
+
optional :common_metadata, :message, 1, "google.cloud.documentai.v1beta3.CommonOperationMetadata"
|
134
|
+
end
|
135
|
+
add_message "google.cloud.documentai.v1beta3.DeployProcessorVersionRequest" do
|
136
|
+
optional :name, :string, 1
|
137
|
+
end
|
138
|
+
add_message "google.cloud.documentai.v1beta3.DeployProcessorVersionResponse" do
|
139
|
+
end
|
140
|
+
add_message "google.cloud.documentai.v1beta3.DeployProcessorVersionMetadata" do
|
141
|
+
optional :common_metadata, :message, 1, "google.cloud.documentai.v1beta3.CommonOperationMetadata"
|
142
|
+
end
|
143
|
+
add_message "google.cloud.documentai.v1beta3.UndeployProcessorVersionRequest" do
|
144
|
+
optional :name, :string, 1
|
145
|
+
end
|
146
|
+
add_message "google.cloud.documentai.v1beta3.UndeployProcessorVersionResponse" do
|
147
|
+
end
|
148
|
+
add_message "google.cloud.documentai.v1beta3.UndeployProcessorVersionMetadata" do
|
149
|
+
optional :common_metadata, :message, 1, "google.cloud.documentai.v1beta3.CommonOperationMetadata"
|
150
|
+
end
|
103
151
|
add_message "google.cloud.documentai.v1beta3.CreateProcessorRequest" do
|
104
152
|
optional :parent, :string, 1
|
105
153
|
optional :processor, :message, 2, "google.cloud.documentai.v1beta3.Processor"
|
@@ -126,11 +174,21 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
126
174
|
add_message "google.cloud.documentai.v1beta3.DisableProcessorMetadata" do
|
127
175
|
optional :common_metadata, :message, 5, "google.cloud.documentai.v1beta3.CommonOperationMetadata"
|
128
176
|
end
|
177
|
+
add_message "google.cloud.documentai.v1beta3.SetDefaultProcessorVersionRequest" do
|
178
|
+
optional :processor, :string, 1
|
179
|
+
optional :default_processor_version, :string, 2
|
180
|
+
end
|
181
|
+
add_message "google.cloud.documentai.v1beta3.SetDefaultProcessorVersionResponse" do
|
182
|
+
end
|
183
|
+
add_message "google.cloud.documentai.v1beta3.SetDefaultProcessorVersionMetadata" do
|
184
|
+
optional :common_metadata, :message, 1, "google.cloud.documentai.v1beta3.CommonOperationMetadata"
|
185
|
+
end
|
129
186
|
add_message "google.cloud.documentai.v1beta3.ReviewDocumentRequest" do
|
130
187
|
optional :human_review_config, :string, 1
|
131
188
|
optional :document, :message, 2, "google.cloud.documentai.v1beta3.Document"
|
132
189
|
optional :enable_schema_validation, :bool, 3
|
133
190
|
optional :priority, :enum, 5, "google.cloud.documentai.v1beta3.ReviewDocumentRequest.Priority"
|
191
|
+
optional :document_schema, :message, 6, "google.cloud.documentai.v1beta3.DocumentSchema"
|
134
192
|
oneof :source do
|
135
193
|
optional :inline_document, :message, 4, "google.cloud.documentai.v1beta3.Document"
|
136
194
|
end
|
@@ -141,6 +199,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
141
199
|
end
|
142
200
|
add_message "google.cloud.documentai.v1beta3.ReviewDocumentResponse" do
|
143
201
|
optional :gcs_destination, :string, 1
|
202
|
+
optional :state, :enum, 2, "google.cloud.documentai.v1beta3.ReviewDocumentResponse.State"
|
203
|
+
optional :rejection_reason, :string, 3
|
204
|
+
end
|
205
|
+
add_enum "google.cloud.documentai.v1beta3.ReviewDocumentResponse.State" do
|
206
|
+
value :STATE_UNSPECIFIED, 0
|
207
|
+
value :REJECTED, 1
|
208
|
+
value :SUCCEEDED, 2
|
144
209
|
end
|
145
210
|
add_message "google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata" do
|
146
211
|
optional :state, :enum, 1, "google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata.State"
|
@@ -178,8 +243,22 @@ module Google
|
|
178
243
|
BatchProcessMetadata::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.BatchProcessMetadata.State").enummodule
|
179
244
|
FetchProcessorTypesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.FetchProcessorTypesRequest").msgclass
|
180
245
|
FetchProcessorTypesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.FetchProcessorTypesResponse").msgclass
|
246
|
+
ListProcessorTypesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ListProcessorTypesRequest").msgclass
|
247
|
+
ListProcessorTypesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ListProcessorTypesResponse").msgclass
|
181
248
|
ListProcessorsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ListProcessorsRequest").msgclass
|
182
249
|
ListProcessorsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ListProcessorsResponse").msgclass
|
250
|
+
GetProcessorRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.GetProcessorRequest").msgclass
|
251
|
+
GetProcessorVersionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.GetProcessorVersionRequest").msgclass
|
252
|
+
ListProcessorVersionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ListProcessorVersionsRequest").msgclass
|
253
|
+
ListProcessorVersionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ListProcessorVersionsResponse").msgclass
|
254
|
+
DeleteProcessorVersionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.DeleteProcessorVersionRequest").msgclass
|
255
|
+
DeleteProcessorVersionMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.DeleteProcessorVersionMetadata").msgclass
|
256
|
+
DeployProcessorVersionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.DeployProcessorVersionRequest").msgclass
|
257
|
+
DeployProcessorVersionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.DeployProcessorVersionResponse").msgclass
|
258
|
+
DeployProcessorVersionMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.DeployProcessorVersionMetadata").msgclass
|
259
|
+
UndeployProcessorVersionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.UndeployProcessorVersionRequest").msgclass
|
260
|
+
UndeployProcessorVersionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.UndeployProcessorVersionResponse").msgclass
|
261
|
+
UndeployProcessorVersionMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.UndeployProcessorVersionMetadata").msgclass
|
183
262
|
CreateProcessorRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.CreateProcessorRequest").msgclass
|
184
263
|
DeleteProcessorRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.DeleteProcessorRequest").msgclass
|
185
264
|
DeleteProcessorMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.DeleteProcessorMetadata").msgclass
|
@@ -189,9 +268,13 @@ module Google
|
|
189
268
|
DisableProcessorRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.DisableProcessorRequest").msgclass
|
190
269
|
DisableProcessorResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.DisableProcessorResponse").msgclass
|
191
270
|
DisableProcessorMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.DisableProcessorMetadata").msgclass
|
271
|
+
SetDefaultProcessorVersionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.SetDefaultProcessorVersionRequest").msgclass
|
272
|
+
SetDefaultProcessorVersionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.SetDefaultProcessorVersionResponse").msgclass
|
273
|
+
SetDefaultProcessorVersionMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.SetDefaultProcessorVersionMetadata").msgclass
|
192
274
|
ReviewDocumentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ReviewDocumentRequest").msgclass
|
193
275
|
ReviewDocumentRequest::Priority = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ReviewDocumentRequest.Priority").enummodule
|
194
276
|
ReviewDocumentResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ReviewDocumentResponse").msgclass
|
277
|
+
ReviewDocumentResponse::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ReviewDocumentResponse.State").enummodule
|
195
278
|
ReviewDocumentOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata").msgclass
|
196
279
|
ReviewDocumentOperationMetadata::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata.State").enummodule
|
197
280
|
end
|
@@ -41,10 +41,26 @@ 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
|
+
# Gets a processor version detail.
|
54
|
+
rpc :GetProcessorVersion, ::Google::Cloud::DocumentAI::V1beta3::GetProcessorVersionRequest, ::Google::Cloud::DocumentAI::V1beta3::ProcessorVersion
|
55
|
+
# Lists all versions of a processor.
|
56
|
+
rpc :ListProcessorVersions, ::Google::Cloud::DocumentAI::V1beta3::ListProcessorVersionsRequest, ::Google::Cloud::DocumentAI::V1beta3::ListProcessorVersionsResponse
|
57
|
+
# Deletes the processor version, all artifacts under the processor version
|
58
|
+
# will be deleted.
|
59
|
+
rpc :DeleteProcessorVersion, ::Google::Cloud::DocumentAI::V1beta3::DeleteProcessorVersionRequest, ::Google::Longrunning::Operation
|
60
|
+
# Deploys the processor version.
|
61
|
+
rpc :DeployProcessorVersion, ::Google::Cloud::DocumentAI::V1beta3::DeployProcessorVersionRequest, ::Google::Longrunning::Operation
|
62
|
+
# Undeploys the processor version.
|
63
|
+
rpc :UndeployProcessorVersion, ::Google::Cloud::DocumentAI::V1beta3::UndeployProcessorVersionRequest, ::Google::Longrunning::Operation
|
48
64
|
# Creates a processor from the type processor that the user chose.
|
49
65
|
# The processor will be at "ENABLED" state by default after its creation.
|
50
66
|
rpc :CreateProcessor, ::Google::Cloud::DocumentAI::V1beta3::CreateProcessorRequest, ::Google::Cloud::DocumentAI::V1beta3::Processor
|
@@ -55,6 +71,10 @@ module Google
|
|
55
71
|
rpc :EnableProcessor, ::Google::Cloud::DocumentAI::V1beta3::EnableProcessorRequest, ::Google::Longrunning::Operation
|
56
72
|
# Disables a processor
|
57
73
|
rpc :DisableProcessor, ::Google::Cloud::DocumentAI::V1beta3::DisableProcessorRequest, ::Google::Longrunning::Operation
|
74
|
+
# Set the default (active) version of a [Processor][google.cloud.documentai.v1beta3.Processor] that will be used in
|
75
|
+
# [ProcessDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ProcessDocument] and
|
76
|
+
# [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments].
|
77
|
+
rpc :SetDefaultProcessorVersion, ::Google::Cloud::DocumentAI::V1beta3::SetDefaultProcessorVersionRequest, ::Google::Longrunning::Operation
|
58
78
|
# Send a document for Human Review. The input document should be processed by
|
59
79
|
# the specified processor.
|
60
80
|
rpc :ReviewDocument, ::Google::Cloud::DocumentAI::V1beta3::ReviewDocumentRequest, ::Google::Longrunning::Operation
|
@@ -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
|
@@ -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
|
@@ -5,12 +5,34 @@ require 'google/protobuf'
|
|
5
5
|
|
6
6
|
require 'google/api/field_behavior_pb'
|
7
7
|
require 'google/api/resource_pb'
|
8
|
-
require 'google/cloud/documentai/v1beta3/document_io_pb'
|
9
8
|
require 'google/protobuf/timestamp_pb'
|
10
|
-
require 'google/api/annotations_pb'
|
11
9
|
|
12
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
11
|
add_file("google/cloud/documentai/v1beta3/processor.proto", :syntax => :proto3) do
|
12
|
+
add_message "google.cloud.documentai.v1beta3.ProcessorVersion" do
|
13
|
+
optional :name, :string, 1
|
14
|
+
optional :display_name, :string, 2
|
15
|
+
optional :state, :enum, 6, "google.cloud.documentai.v1beta3.ProcessorVersion.State"
|
16
|
+
optional :create_time, :message, 7, "google.protobuf.Timestamp"
|
17
|
+
optional :kms_key_name, :string, 9
|
18
|
+
optional :kms_key_version_name, :string, 10
|
19
|
+
optional :google_managed, :bool, 11
|
20
|
+
optional :deprecation_info, :message, 13, "google.cloud.documentai.v1beta3.ProcessorVersion.DeprecationInfo"
|
21
|
+
end
|
22
|
+
add_message "google.cloud.documentai.v1beta3.ProcessorVersion.DeprecationInfo" do
|
23
|
+
optional :deprecation_time, :message, 1, "google.protobuf.Timestamp"
|
24
|
+
optional :replacement_processor_version, :string, 2
|
25
|
+
end
|
26
|
+
add_enum "google.cloud.documentai.v1beta3.ProcessorVersion.State" do
|
27
|
+
value :STATE_UNSPECIFIED, 0
|
28
|
+
value :DEPLOYED, 1
|
29
|
+
value :DEPLOYING, 2
|
30
|
+
value :UNDEPLOYED, 3
|
31
|
+
value :UNDEPLOYING, 4
|
32
|
+
value :CREATING, 5
|
33
|
+
value :DELETING, 6
|
34
|
+
value :FAILED, 7
|
35
|
+
end
|
14
36
|
add_message "google.cloud.documentai.v1beta3.Processor" do
|
15
37
|
optional :name, :string, 1
|
16
38
|
optional :type, :string, 2
|
@@ -38,6 +60,9 @@ module Google
|
|
38
60
|
module Cloud
|
39
61
|
module DocumentAI
|
40
62
|
module V1beta3
|
63
|
+
ProcessorVersion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ProcessorVersion").msgclass
|
64
|
+
ProcessorVersion::DeprecationInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ProcessorVersion.DeprecationInfo").msgclass
|
65
|
+
ProcessorVersion::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ProcessorVersion.State").enummodule
|
41
66
|
Processor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Processor").msgclass
|
42
67
|
Processor::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Processor.State").enummodule
|
43
68
|
end
|
@@ -3,8 +3,8 @@
|
|
3
3
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
|
+
require 'google/api/launch_stage_pb'
|
6
7
|
require 'google/api/resource_pb'
|
7
|
-
require 'google/api/annotations_pb'
|
8
8
|
|
9
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
10
|
add_file("google/cloud/documentai/v1beta3/processor_type.proto", :syntax => :proto3) do
|
@@ -14,6 +14,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
14
14
|
optional :category, :string, 3
|
15
15
|
repeated :available_locations, :message, 4, "google.cloud.documentai.v1beta3.ProcessorType.LocationInfo"
|
16
16
|
optional :allow_creation, :bool, 6
|
17
|
+
optional :launch_stage, :enum, 8, "google.api.LaunchStage"
|
17
18
|
end
|
18
19
|
add_message "google.cloud.documentai.v1beta3.ProcessorType.LocationInfo" do
|
19
20
|
optional :location_id, :string, 1
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 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
|
+
|
20
|
+
module Google
|
21
|
+
module Api
|
22
|
+
# The launch stage as defined by [Google Cloud Platform
|
23
|
+
# Launch Stages](http://cloud.google.com/terms/launch-stages).
|
24
|
+
module LaunchStage
|
25
|
+
# Do not use this default value.
|
26
|
+
LAUNCH_STAGE_UNSPECIFIED = 0
|
27
|
+
|
28
|
+
# The feature is not yet implemented. Users can not use it.
|
29
|
+
UNIMPLEMENTED = 6
|
30
|
+
|
31
|
+
# Prelaunch features are hidden from users and are only visible internally.
|
32
|
+
PRELAUNCH = 7
|
33
|
+
|
34
|
+
# Early Access features are limited to a closed group of testers. To use
|
35
|
+
# these features, you must sign up in advance and sign a Trusted Tester
|
36
|
+
# agreement (which includes confidentiality provisions). These features may
|
37
|
+
# be unstable, changed in backward-incompatible ways, and are not
|
38
|
+
# guaranteed to be released.
|
39
|
+
EARLY_ACCESS = 1
|
40
|
+
|
41
|
+
# Alpha is a limited availability test for releases before they are cleared
|
42
|
+
# for widespread use. By Alpha, all significant design issues are resolved
|
43
|
+
# and we are in the process of verifying functionality. Alpha customers
|
44
|
+
# need to apply for access, agree to applicable terms, and have their
|
45
|
+
# projects allowlisted. Alpha releases don’t have to be feature complete,
|
46
|
+
# no SLAs are provided, and there are no technical support obligations, but
|
47
|
+
# they will be far enough along that customers can actually use them in
|
48
|
+
# test environments or for limited-use tests -- just like they would in
|
49
|
+
# normal production cases.
|
50
|
+
ALPHA = 2
|
51
|
+
|
52
|
+
# Beta is the point at which we are ready to open a release for any
|
53
|
+
# customer to use. There are no SLA or technical support obligations in a
|
54
|
+
# Beta release. Products will be complete from a feature perspective, but
|
55
|
+
# may have some open outstanding issues. Beta releases are suitable for
|
56
|
+
# limited production use cases.
|
57
|
+
BETA = 3
|
58
|
+
|
59
|
+
# GA features are open to all developers and are considered stable and
|
60
|
+
# fully qualified for production use.
|
61
|
+
GA = 4
|
62
|
+
|
63
|
+
# Deprecated features are scheduled to be shut down and removed. For more
|
64
|
+
# information, see the “Deprecation Policy” section of our [Terms of
|
65
|
+
# Service](https://cloud.google.com/terms/)
|
66
|
+
# and the [Google Cloud Platform Subject to the Deprecation
|
67
|
+
# Policy](https://cloud.google.com/terms/deprecation) documentation.
|
68
|
+
DEPRECATED = 5
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 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
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module DocumentAI
|
23
|
+
module V1beta3
|
24
|
+
# Encodes the detailed information of a barcode.
|
25
|
+
# @!attribute [rw] format
|
26
|
+
# @return [::String]
|
27
|
+
# Format of a barcode.
|
28
|
+
# The supported formats are:
|
29
|
+
# CODE_128: Code 128 type.
|
30
|
+
# CODE_39: Code 39 type.
|
31
|
+
# CODE_93: Code 93 type.
|
32
|
+
# CODABAR: Codabar type.
|
33
|
+
# DATA_MATRIX: 2D Data Matrix type.
|
34
|
+
# ITF: ITF type.
|
35
|
+
# EAN_13: EAN-13 type.
|
36
|
+
# EAN_8: EAN-8 type.
|
37
|
+
# QR_CODE: 2D QR code type.
|
38
|
+
# UPC_A: UPC-A type.
|
39
|
+
# UPC_E: UPC-E type.
|
40
|
+
# PDF417: PDF417 type.
|
41
|
+
# AZTEC: 2D Aztec code type.
|
42
|
+
# DATABAR: GS1 DataBar code type.
|
43
|
+
# @!attribute [rw] value_format
|
44
|
+
# @return [::String]
|
45
|
+
# Value format describes the format of the value that a barcode
|
46
|
+
# encodes.
|
47
|
+
# The supported formats are:
|
48
|
+
# CONTACT_INFO: Contact information.
|
49
|
+
# EMAIL: Email address.
|
50
|
+
# ISBN: ISBN identifier.
|
51
|
+
# PHONE: Phone number.
|
52
|
+
# PRODUCT: Product.
|
53
|
+
# SMS: SMS message.
|
54
|
+
# TEXT: Text string.
|
55
|
+
# URL: URL address.
|
56
|
+
# WIFI: Wifi information.
|
57
|
+
# GEO: Geo-localization.
|
58
|
+
# CALENDAR_EVENT: Calendar event.
|
59
|
+
# DRIVER_LICENSE: Driver's license.
|
60
|
+
# @!attribute [rw] raw_value
|
61
|
+
# @return [::String]
|
62
|
+
# Raw value encoded in the barcode.
|
63
|
+
# For example, 'MEBKM:TITLE:Google;URL:https://www.google.com;;'.
|
64
|
+
class Barcode
|
65
|
+
include ::Google::Protobuf::MessageExts
|
66
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|