google-cloud-document_ai-v1 0.13.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/document_ai/v1/document_processor_service/client.rb +21 -4
- data/lib/google/cloud/document_ai/v1/document_processor_service/operations.rb +10 -1
- data/lib/google/cloud/document_ai/v1/document_processor_service/rest/client.rb +456 -3
- data/lib/google/cloud/document_ai/v1/document_processor_service/rest/operations.rb +75 -0
- data/lib/google/cloud/document_ai/v1/version.rb +1 -1
- data/lib/google/cloud/documentai/v1/document_io_pb.rb +3 -1
- data/lib/google/cloud/documentai/v1/document_processor_service_pb.rb +5 -2
- data/lib/google/cloud/documentai/v1/processor_pb.rb +2 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/cloud/documentai/v1/document_io.rb +55 -0
- data/proto_docs/google/cloud/documentai/v1/document_processor_service.rb +42 -0
- data/proto_docs/google/cloud/documentai/v1/processor.rb +17 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2bf1832c0a94a66e87bac647e6997bdb97316d83ff3adc522e06f0ea39ca5f94
|
4
|
+
data.tar.gz: 5c54924001385ed39f927896a04984b9049ff4b8f1f64874d18c702f4c9adeb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d587a6e772412af58395381068dad0fe71fc4e1a55c9983eaad680528c3cfc0a0cdc33667e452cc5048cd6acf70fd108a085ef7e85a12b3538878f610484eb5
|
7
|
+
data.tar.gz: 26863ebdf7be7746aefdb83087a8556e929253e9b579e1bcb701f24dbee5eae94b85241ea5660df114f73227f15526437972a27c7481dbe213bc80f2944b7316
|
@@ -169,7 +169,8 @@ module Google
|
|
169
169
|
credentials: credentials,
|
170
170
|
endpoint: @config.endpoint,
|
171
171
|
channel_args: @config.channel_args,
|
172
|
-
interceptors: @config.interceptors
|
172
|
+
interceptors: @config.interceptors,
|
173
|
+
channel_pool_config: @config.channel_pool
|
173
174
|
)
|
174
175
|
end
|
175
176
|
|
@@ -202,7 +203,7 @@ module Google
|
|
202
203
|
# @param options [::Gapic::CallOptions, ::Hash]
|
203
204
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
204
205
|
#
|
205
|
-
# @overload process_document(inline_document: nil, raw_document: nil, name: nil, skip_human_review: nil, field_mask: nil)
|
206
|
+
# @overload process_document(inline_document: nil, raw_document: nil, gcs_document: nil, name: nil, skip_human_review: nil, field_mask: nil, process_options: nil)
|
206
207
|
# Pass arguments to `process_document` via keyword arguments. Note that at
|
207
208
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
208
209
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -211,6 +212,8 @@ module Google
|
|
211
212
|
# An inline document proto.
|
212
213
|
# @param raw_document [::Google::Cloud::DocumentAI::V1::RawDocument, ::Hash]
|
213
214
|
# A raw document content (bytes).
|
215
|
+
# @param gcs_document [::Google::Cloud::DocumentAI::V1::GcsDocument, ::Hash]
|
216
|
+
# A raw document on Google Cloud Storage.
|
214
217
|
# @param name [::String]
|
215
218
|
# Required. The resource name of the
|
216
219
|
# {::Google::Cloud::DocumentAI::V1::Processor Processor} or
|
@@ -230,6 +233,8 @@ module Google
|
|
230
233
|
# {::Google::Cloud::DocumentAI::V1::ProcessResponse#document ProcessResponse.document}
|
231
234
|
# output. Only supports top-level document and pages field, so it must be in
|
232
235
|
# the form of `{document_field_name}` or `pages.{page_field_name}`.
|
236
|
+
# @param process_options [::Google::Cloud::DocumentAI::V1::ProcessOptions, ::Hash]
|
237
|
+
# Inference-time options for the process API
|
233
238
|
#
|
234
239
|
# @yield [response, operation] Access the result along with the RPC operation
|
235
240
|
# @yieldparam response [::Google::Cloud::DocumentAI::V1::ProcessResponse]
|
@@ -309,7 +314,7 @@ module Google
|
|
309
314
|
# @param options [::Gapic::CallOptions, ::Hash]
|
310
315
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
311
316
|
#
|
312
|
-
# @overload batch_process_documents(name: nil, input_documents: nil, document_output_config: nil, skip_human_review: nil)
|
317
|
+
# @overload batch_process_documents(name: nil, input_documents: nil, document_output_config: nil, skip_human_review: nil, process_options: nil)
|
313
318
|
# Pass arguments to `batch_process_documents` via keyword arguments. Note that at
|
314
319
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
315
320
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -332,6 +337,8 @@ module Google
|
|
332
337
|
# @param skip_human_review [::Boolean]
|
333
338
|
# Whether human review should be skipped for this request. Default to
|
334
339
|
# `false`.
|
340
|
+
# @param process_options [::Google::Cloud::DocumentAI::V1::ProcessOptions, ::Hash]
|
341
|
+
# Inference-time options for the process API
|
335
342
|
#
|
336
343
|
# @yield [response, operation] Access the result along with the RPC operation
|
337
344
|
# @yieldparam response [::Gapic::Operation]
|
@@ -873,11 +880,13 @@ module Google
|
|
873
880
|
# @param options [::Gapic::CallOptions, ::Hash]
|
874
881
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
875
882
|
#
|
876
|
-
# @overload train_processor_version(parent: nil, processor_version: nil, document_schema: nil, input_data: nil, base_processor_version: nil)
|
883
|
+
# @overload train_processor_version(custom_document_extraction_options: nil, parent: nil, processor_version: nil, document_schema: nil, input_data: nil, base_processor_version: nil)
|
877
884
|
# Pass arguments to `train_processor_version` via keyword arguments. Note that at
|
878
885
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
879
886
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
880
887
|
#
|
888
|
+
# @param custom_document_extraction_options [::Google::Cloud::DocumentAI::V1::TrainProcessorVersionRequest::CustomDocumentExtractionOptions, ::Hash]
|
889
|
+
# Options to control Custom Document Extraction (CDE) Processor.
|
881
890
|
# @param parent [::String]
|
882
891
|
# Required. The parent (project, location and processor) to create the new
|
883
892
|
# version for. Format:
|
@@ -2418,6 +2427,14 @@ module Google
|
|
2418
2427
|
end
|
2419
2428
|
end
|
2420
2429
|
|
2430
|
+
##
|
2431
|
+
# Configuration for the channel pool
|
2432
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
2433
|
+
#
|
2434
|
+
def channel_pool
|
2435
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
2436
|
+
end
|
2437
|
+
|
2421
2438
|
##
|
2422
2439
|
# Configuration RPC class for the DocumentProcessorService API.
|
2423
2440
|
#
|
@@ -93,7 +93,8 @@ module Google
|
|
93
93
|
credentials: credentials,
|
94
94
|
endpoint: @config.endpoint,
|
95
95
|
channel_args: @config.channel_args,
|
96
|
-
interceptors: @config.interceptors
|
96
|
+
interceptors: @config.interceptors,
|
97
|
+
channel_pool_config: @config.channel_pool
|
97
98
|
)
|
98
99
|
|
99
100
|
# Used by an LRO wrapper for some methods of this service
|
@@ -701,6 +702,14 @@ module Google
|
|
701
702
|
end
|
702
703
|
end
|
703
704
|
|
705
|
+
##
|
706
|
+
# Configuration for the channel pool
|
707
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
708
|
+
#
|
709
|
+
def channel_pool
|
710
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
711
|
+
end
|
712
|
+
|
704
713
|
##
|
705
714
|
# Configuration RPC class for the Operations API.
|
706
715
|
#
|