google-cloud-document_ai-v1 0.13.0 → 0.15.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 449e75a7a1b950ae4260619b686ba845cf7cf85787e39ccf958bf37ee0b924b6
4
- data.tar.gz: f8401aa0633d45d197c9b1cb047f1137262bbd6be99995a3b475495cb57dd1af
3
+ metadata.gz: 2bf1832c0a94a66e87bac647e6997bdb97316d83ff3adc522e06f0ea39ca5f94
4
+ data.tar.gz: 5c54924001385ed39f927896a04984b9049ff4b8f1f64874d18c702f4c9adeb2
5
5
  SHA512:
6
- metadata.gz: 7515548ea2fee15be368e028f4ae0781b743409b2124df389428e12296f2d2dd7f854ee96392aed7f81531d435b2ef5865287b44c3b863e5f316c9806036cd5d
7
- data.tar.gz: 7b0be4d480ded4b18eaafc6bc02ede7308c886416794df30a823acc1ce0584c89b24c1a526b3ac1b9e71ec72f120d159f92f98f6b5f4b27a85313c9bf53e69d4
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
  #