google-cloud-document_ai-v1beta3 0.10.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.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -5
  3. data/lib/google/cloud/document_ai/v1beta3/document_processor_service/client.rb +957 -123
  4. data/lib/google/cloud/document_ai/v1beta3/document_processor_service/operations.rb +3 -0
  5. data/lib/google/cloud/document_ai/v1beta3/document_processor_service/paths.rb +21 -0
  6. data/lib/google/cloud/document_ai/v1beta3/version.rb +1 -1
  7. data/lib/google/cloud/document_ai/v1beta3.rb +2 -0
  8. data/lib/google/cloud/documentai/v1beta3/barcode_pb.rb +24 -0
  9. data/lib/google/cloud/documentai/v1beta3/document_io_pb.rb +0 -1
  10. data/lib/google/cloud/documentai/v1beta3/document_pb.rb +20 -2
  11. data/lib/google/cloud/documentai/v1beta3/document_processor_service_pb.rb +85 -1
  12. data/lib/google/cloud/documentai/v1beta3/document_processor_service_services_pb.rb +21 -1
  13. data/lib/google/cloud/documentai/v1beta3/document_schema_pb.rb +60 -0
  14. data/lib/google/cloud/documentai/v1beta3/geometry_pb.rb +0 -1
  15. data/lib/google/cloud/documentai/v1beta3/operation_metadata_pb.rb +3 -2
  16. data/lib/google/cloud/documentai/v1beta3/processor_pb.rb +29 -3
  17. data/lib/google/cloud/documentai/v1beta3/processor_type_pb.rb +4 -2
  18. data/proto_docs/google/api/launch_stage.rb +71 -0
  19. data/proto_docs/google/cloud/documentai/v1beta3/barcode.rb +71 -0
  20. data/proto_docs/google/cloud/documentai/v1beta3/document.rb +87 -31
  21. data/proto_docs/google/cloud/documentai/v1beta3/document_processor_service.rb +223 -10
  22. data/proto_docs/google/cloud/documentai/v1beta3/document_schema.rb +154 -0
  23. data/proto_docs/google/cloud/documentai/v1beta3/operation_metadata.rb +3 -0
  24. data/proto_docs/google/cloud/documentai/v1beta3/processor.rb +92 -7
  25. data/proto_docs/google/cloud/documentai/v1beta3/processor_type.rb +9 -6
  26. data/proto_docs/google/protobuf/any.rb +3 -3
  27. data/proto_docs/google/protobuf/empty.rb +0 -2
  28. metadata +37 -12
@@ -95,6 +95,9 @@ module Google
95
95
  channel_args: @config.channel_args,
96
96
  interceptors: @config.interceptors
97
97
  )
98
+
99
+ # Used by an LRO wrapper for some methods of this service
100
+ @operations_client = self
98
101
  end
99
102
 
100
103
  # Service calls
@@ -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
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module DocumentAI
23
23
  module V1beta3
24
- VERSION = "0.10.0"
24
+ VERSION = "0.13.0"
25
25
  end
26
26
  end
27
27
  end
@@ -25,6 +25,8 @@ module Google
25
25
  ##
26
26
  # To load this package, including all its services, and instantiate a client:
27
27
  #
28
+ # @example
29
+ #
28
30
  # require "google/cloud/document_ai/v1beta3"
29
31
  # client = ::Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Client.new
30
32
  #
@@ -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
@@ -1,7 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/documentai/v1beta3/document_io.proto
3
3
 
4
- require 'google/api/annotations_pb'
5
4
  require 'google/protobuf'
6
5
 
7
6
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -1,7 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/documentai/v1beta3/document.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/field_behavior_pb'
7
+ require 'google/cloud/documentai/v1beta3/barcode_pb'
5
8
  require 'google/cloud/documentai/v1beta3/geometry_pb'
6
9
  require 'google/protobuf/timestamp_pb'
7
10
  require 'google/rpc/status_pb'
@@ -10,8 +13,6 @@ require 'google/type/date_pb'
10
13
  require 'google/type/datetime_pb'
11
14
  require 'google/type/money_pb'
12
15
  require 'google/type/postal_address_pb'
13
- require 'google/api/annotations_pb'
14
- require 'google/protobuf'
15
16
 
16
17
  Google::Protobuf::DescriptorPool.generated_pool.build do
17
18
  add_file("google/cloud/documentai/v1beta3/document.proto", :syntax => :proto3) do
@@ -63,6 +64,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
63
64
  repeated :visual_elements, :message, 9, "google.cloud.documentai.v1beta3.Document.Page.VisualElement"
64
65
  repeated :tables, :message, 10, "google.cloud.documentai.v1beta3.Document.Page.Table"
65
66
  repeated :form_fields, :message, 11, "google.cloud.documentai.v1beta3.Document.Page.FormField"
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"
66
69
  optional :provenance, :message, 16, "google.cloud.documentai.v1beta3.Document.Provenance"
67
70
  end
68
71
  add_message "google.cloud.documentai.v1beta3.Document.Page.Dimension" do
@@ -125,6 +128,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
125
128
  value :WIDE_SPACE, 2
126
129
  value :HYPHEN, 3
127
130
  end
131
+ add_message "google.cloud.documentai.v1beta3.Document.Page.Symbol" do
132
+ optional :layout, :message, 1, "google.cloud.documentai.v1beta3.Document.Page.Layout"
133
+ repeated :detected_languages, :message, 2, "google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage"
134
+ end
128
135
  add_message "google.cloud.documentai.v1beta3.Document.Page.VisualElement" do
129
136
  optional :layout, :message, 1, "google.cloud.documentai.v1beta3.Document.Page.Layout"
130
137
  optional :type, :string, 2
@@ -151,8 +158,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
151
158
  repeated :name_detected_languages, :message, 3, "google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage"
152
159
  repeated :value_detected_languages, :message, 4, "google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage"
153
160
  optional :value_type, :string, 5
161
+ optional :corrected_key_text, :string, 6
162
+ optional :corrected_value_text, :string, 7
154
163
  optional :provenance, :message, 8, "google.cloud.documentai.v1beta3.Document.Provenance"
155
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
156
169
  add_message "google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage" do
157
170
  optional :language_code, :string, 1
158
171
  optional :confidence, :float, 2
@@ -178,6 +191,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
178
191
  optional :datetime_value, :message, 4, "google.type.DateTime"
179
192
  optional :address_value, :message, 5, "google.type.PostalAddress"
180
193
  optional :boolean_value, :bool, 6
194
+ optional :integer_value, :int32, 7
195
+ optional :float_value, :float, 8
181
196
  end
182
197
  end
183
198
  add_message "google.cloud.documentai.v1beta3.Document.EntityRelation" do
@@ -236,6 +251,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
236
251
  add_message "google.cloud.documentai.v1beta3.Document.Revision" do
237
252
  optional :id, :string, 1
238
253
  repeated :parent, :int32, 2
254
+ repeated :parent_ids, :string, 7
239
255
  optional :create_time, :message, 3, "google.protobuf.Timestamp"
240
256
  optional :human_review, :message, 6, "google.cloud.documentai.v1beta3.Document.Revision.HumanReview"
241
257
  oneof :source do
@@ -275,11 +291,13 @@ module Google
275
291
  Document::Page::Token = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.Page.Token").msgclass
276
292
  Document::Page::Token::DetectedBreak = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak").msgclass
277
293
  Document::Page::Token::DetectedBreak::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak.Type").enummodule
294
+ Document::Page::Symbol = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.Page.Symbol").msgclass
278
295
  Document::Page::VisualElement = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.Page.VisualElement").msgclass
279
296
  Document::Page::Table = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.Page.Table").msgclass
280
297
  Document::Page::Table::TableRow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.Page.Table.TableRow").msgclass
281
298
  Document::Page::Table::TableCell = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.Page.Table.TableCell").msgclass
282
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
283
301
  Document::Page::DetectedLanguage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage").msgclass
284
302
  Document::Entity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.Entity").msgclass
285
303
  Document::Entity::NormalizedValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Document.Entity.NormalizedValue").msgclass
@@ -1,12 +1,15 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/documentai/v1beta3/document_processor_service.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/annotations_pb'
5
7
  require 'google/api/client_pb'
6
8
  require 'google/api/field_behavior_pb'
7
9
  require 'google/api/resource_pb'
8
10
  require 'google/cloud/documentai/v1beta3/document_pb'
9
11
  require 'google/cloud/documentai/v1beta3/document_io_pb'
12
+ require 'google/cloud/documentai/v1beta3/document_schema_pb'
10
13
  require 'google/cloud/documentai/v1beta3/operation_metadata_pb'
11
14
  require 'google/cloud/documentai/v1beta3/processor_pb'
12
15
  require 'google/cloud/documentai/v1beta3/processor_type_pb'
@@ -14,7 +17,6 @@ require 'google/longrunning/operations_pb'
14
17
  require 'google/protobuf/field_mask_pb'
15
18
  require 'google/protobuf/timestamp_pb'
16
19
  require 'google/rpc/status_pb'
17
- require 'google/protobuf'
18
20
 
19
21
  Google::Protobuf::DescriptorPool.generated_pool.build do
20
22
  add_file("google/cloud/documentai/v1beta3/document_processor_service.proto", :syntax => :proto3) do
@@ -22,6 +24,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
22
24
  optional :name, :string, 1
23
25
  optional :document, :message, 2, "google.cloud.documentai.v1beta3.Document"
24
26
  optional :skip_human_review, :bool, 3
27
+ optional :field_mask, :message, 6, "google.protobuf.FieldMask"
25
28
  oneof :source do
26
29
  optional :inline_document, :message, 4, "google.cloud.documentai.v1beta3.Document"
27
30
  optional :raw_document, :message, 5, "google.cloud.documentai.v1beta3.RawDocument"
@@ -90,6 +93,15 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
90
93
  add_message "google.cloud.documentai.v1beta3.FetchProcessorTypesResponse" do
91
94
  repeated :processor_types, :message, 1, "google.cloud.documentai.v1beta3.ProcessorType"
92
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
93
105
  add_message "google.cloud.documentai.v1beta3.ListProcessorsRequest" do
94
106
  optional :parent, :string, 1
95
107
  optional :page_size, :int32, 2
@@ -99,6 +111,43 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
99
111
  repeated :processors, :message, 1, "google.cloud.documentai.v1beta3.Processor"
100
112
  optional :next_page_token, :string, 2
101
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
102
151
  add_message "google.cloud.documentai.v1beta3.CreateProcessorRequest" do
103
152
  optional :parent, :string, 1
104
153
  optional :processor, :message, 2, "google.cloud.documentai.v1beta3.Processor"
@@ -125,11 +174,21 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
125
174
  add_message "google.cloud.documentai.v1beta3.DisableProcessorMetadata" do
126
175
  optional :common_metadata, :message, 5, "google.cloud.documentai.v1beta3.CommonOperationMetadata"
127
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
128
186
  add_message "google.cloud.documentai.v1beta3.ReviewDocumentRequest" do
129
187
  optional :human_review_config, :string, 1
130
188
  optional :document, :message, 2, "google.cloud.documentai.v1beta3.Document"
131
189
  optional :enable_schema_validation, :bool, 3
132
190
  optional :priority, :enum, 5, "google.cloud.documentai.v1beta3.ReviewDocumentRequest.Priority"
191
+ optional :document_schema, :message, 6, "google.cloud.documentai.v1beta3.DocumentSchema"
133
192
  oneof :source do
134
193
  optional :inline_document, :message, 4, "google.cloud.documentai.v1beta3.Document"
135
194
  end
@@ -140,6 +199,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
140
199
  end
141
200
  add_message "google.cloud.documentai.v1beta3.ReviewDocumentResponse" do
142
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
143
209
  end
144
210
  add_message "google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata" do
145
211
  optional :state, :enum, 1, "google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata.State"
@@ -177,8 +243,22 @@ module Google
177
243
  BatchProcessMetadata::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.BatchProcessMetadata.State").enummodule
178
244
  FetchProcessorTypesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.FetchProcessorTypesRequest").msgclass
179
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
180
248
  ListProcessorsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ListProcessorsRequest").msgclass
181
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
182
262
  CreateProcessorRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.CreateProcessorRequest").msgclass
183
263
  DeleteProcessorRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.DeleteProcessorRequest").msgclass
184
264
  DeleteProcessorMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.DeleteProcessorMetadata").msgclass
@@ -188,9 +268,13 @@ module Google
188
268
  DisableProcessorRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.DisableProcessorRequest").msgclass
189
269
  DisableProcessorResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.DisableProcessorResponse").msgclass
190
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
191
274
  ReviewDocumentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ReviewDocumentRequest").msgclass
192
275
  ReviewDocumentRequest::Priority = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ReviewDocumentRequest.Priority").enummodule
193
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
194
278
  ReviewDocumentOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata").msgclass
195
279
  ReviewDocumentOperationMetadata::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata.State").enummodule
196
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
@@ -1,7 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/documentai/v1beta3/geometry.proto
3
3
 
4
- require 'google/api/annotations_pb'
5
4
  require 'google/protobuf'
6
5
 
7
6
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -1,15 +1,16 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/documentai/v1beta3/operation_metadata.proto
3
3
 
4
- require 'google/protobuf/timestamp_pb'
5
- require 'google/api/annotations_pb'
6
4
  require 'google/protobuf'
7
5
 
6
+ require 'google/protobuf/timestamp_pb'
7
+
8
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
9
  add_file("google/cloud/documentai/v1beta3/operation_metadata.proto", :syntax => :proto3) do
10
10
  add_message "google.cloud.documentai.v1beta3.CommonOperationMetadata" do
11
11
  optional :state, :enum, 1, "google.cloud.documentai.v1beta3.CommonOperationMetadata.State"
12
12
  optional :state_message, :string, 2
13
+ optional :resource, :string, 5
13
14
  optional :create_time, :message, 3, "google.protobuf.Timestamp"
14
15
  optional :update_time, :message, 4, "google.protobuf.Timestamp"
15
16
  end
@@ -1,15 +1,38 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/documentai/v1beta3/processor.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/field_behavior_pb'
5
7
  require 'google/api/resource_pb'
6
- require 'google/cloud/documentai/v1beta3/document_io_pb'
7
8
  require 'google/protobuf/timestamp_pb'
8
- require 'google/api/annotations_pb'
9
- require 'google/protobuf'
10
9
 
11
10
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
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
13
36
  add_message "google.cloud.documentai.v1beta3.Processor" do
14
37
  optional :name, :string, 1
15
38
  optional :type, :string, 2
@@ -37,6 +60,9 @@ module Google
37
60
  module Cloud
38
61
  module DocumentAI
39
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
40
66
  Processor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Processor").msgclass
41
67
  Processor::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.Processor.State").enummodule
42
68
  end
@@ -1,10 +1,11 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/documentai/v1beta3/processor_type.proto
3
3
 
4
- require 'google/api/resource_pb'
5
- require 'google/api/annotations_pb'
6
4
  require 'google/protobuf'
7
5
 
6
+ require 'google/api/launch_stage_pb'
7
+ require 'google/api/resource_pb'
8
+
8
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
10
  add_file("google/cloud/documentai/v1beta3/processor_type.proto", :syntax => :proto3) do
10
11
  add_message "google.cloud.documentai.v1beta3.ProcessorType" do
@@ -13,6 +14,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
13
14
  optional :category, :string, 3
14
15
  repeated :available_locations, :message, 4, "google.cloud.documentai.v1beta3.ProcessorType.LocationInfo"
15
16
  optional :allow_creation, :bool, 6
17
+ optional :launch_stage, :enum, 8, "google.api.LaunchStage"
16
18
  end
17
19
  add_message "google.cloud.documentai.v1beta3.ProcessorType.LocationInfo" do
18
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