google-cloud-document_ai-v1beta3 0.15.0 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ad4ca96ad626154109db9e3a966c9d516e5f9540230fd23090a3c01a1ce7065
4
- data.tar.gz: 82b66404f4d7c6adc4744ed5845effe3a77f4b5196de9c032b03484c098941fa
3
+ metadata.gz: bfa52d5924549d5d80c5599d2b07b9126b03c7e371aacc0a96c20970c0a328a8
4
+ data.tar.gz: e386aadb70609fccaa37882632c0809743b36b0e42e0b3399f00eaf90e77f318
5
5
  SHA512:
6
- metadata.gz: 72c584f654b2560eec5ddf5e3bd6fdf865e9e413b52d982f0e98066a14e0648b05e5f7a2dda818297caa789e15263391d184c6fbd7d1771ce266a7ce44b1166f
7
- data.tar.gz: 6e0d0789c421814d61c6cfeedf987dac95aa22b55f3dc7459a2fc995116c2ad5d64c49675f5d6df183da955f053229e9d6a44a46c8d0fd6c0a9e30bb462125b2
6
+ metadata.gz: faf4467fea5af59eccfaaf5db65798d0c54bcdaf8f764d50db300432e762d3d947730e59e02bc8233a5b7feaa55e166c70d1a451109514494779185076b1da6a
7
+ data.tar.gz: cc6090b810b843e2eb2e31ae58314cd6bd037db6992a5ece0fa66f5281431891a427aa7abbbc4f1333694c4786556c625ef2e8077328cbe2f8fa124a39e1a988
@@ -202,7 +202,7 @@ module Google
202
202
  # @param options [::Gapic::CallOptions, ::Hash]
203
203
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
204
204
  #
205
- # @overload process_document(inline_document: nil, raw_document: nil, name: nil, document: nil, skip_human_review: nil, field_mask: nil)
205
+ # @overload process_document(inline_document: nil, raw_document: nil, name: nil, document: nil, skip_human_review: nil, field_mask: nil, process_options: nil)
206
206
  # Pass arguments to `process_document` via keyword arguments. Note that at
207
207
  # least one keyword argument is required. To specify no parameters, or to keep all
208
208
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -212,11 +212,15 @@ module Google
212
212
  # @param raw_document [::Google::Cloud::DocumentAI::V1beta3::RawDocument, ::Hash]
213
213
  # A raw document content (bytes).
214
214
  # @param name [::String]
215
- # Required. The resource name of the {::Google::Cloud::DocumentAI::V1beta3::Processor Processor} or
215
+ # Required. The resource name of the
216
+ # {::Google::Cloud::DocumentAI::V1beta3::Processor Processor} or
216
217
  # {::Google::Cloud::DocumentAI::V1beta3::ProcessorVersion ProcessorVersion}
217
- # to use for processing. If a {::Google::Cloud::DocumentAI::V1beta3::Processor Processor} is specified, the server will use
218
- # its {::Google::Cloud::DocumentAI::V1beta3::Processor#default_processor_version default version}. Format:
219
- # `projects/{project}/locations/{location}/processors/{processor}`, or
218
+ # to use for processing. If a
219
+ # {::Google::Cloud::DocumentAI::V1beta3::Processor Processor} is specified, the
220
+ # server will use its [default
221
+ # version][google.cloud.documentai.v1beta3.Processor.default_processor_version].
222
+ # Format: `projects/{project}/locations/{location}/processors/{processor}`,
223
+ # or
220
224
  # `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`
221
225
  # @param document [::Google::Cloud::DocumentAI::V1beta3::Document, ::Hash]
222
226
  # The document payload, the [content] and [mime_type] fields must be set.
@@ -227,6 +231,8 @@ module Google
227
231
  # Specifies which fields to include in ProcessResponse's document.
228
232
  # Only supports top level document and pages field so it must be in the form
229
233
  # of `{document_field_name}` or `pages.{page_field_name}`.
234
+ # @param process_options [::Google::Cloud::DocumentAI::V1beta3::ProcessOptions, ::Hash]
235
+ # Inference-time options for the process API
230
236
  #
231
237
  # @yield [response, operation] Access the result along with the RPC operation
232
238
  # @yieldparam response [::Google::Cloud::DocumentAI::V1beta3::ProcessResponse]
@@ -306,13 +312,14 @@ module Google
306
312
  # @param options [::Gapic::CallOptions, ::Hash]
307
313
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
308
314
  #
309
- # @overload batch_process_documents(name: nil, input_configs: nil, output_config: nil, input_documents: nil, document_output_config: nil, skip_human_review: nil)
315
+ # @overload batch_process_documents(name: nil, input_configs: nil, output_config: nil, input_documents: nil, document_output_config: nil, skip_human_review: nil, process_options: nil)
310
316
  # Pass arguments to `batch_process_documents` via keyword arguments. Note that at
311
317
  # least one keyword argument is required. To specify no parameters, or to keep all
312
318
  # the default parameter values, pass an empty Hash as a request object (see above).
313
319
  #
314
320
  # @param name [::String]
315
- # Required. The resource name of {::Google::Cloud::DocumentAI::V1beta3::Processor Processor} or
321
+ # Required. The resource name of
322
+ # {::Google::Cloud::DocumentAI::V1beta3::Processor Processor} or
316
323
  # {::Google::Cloud::DocumentAI::V1beta3::ProcessorVersion ProcessorVersion}.
317
324
  # Format: `projects/{project}/locations/{location}/processors/{processor}`,
318
325
  # or
@@ -328,6 +335,8 @@ module Google
328
335
  # @param skip_human_review [::Boolean]
329
336
  # Whether Human Review feature should be skipped for this request. Default to
330
337
  # false.
338
+ # @param process_options [::Google::Cloud::DocumentAI::V1beta3::ProcessOptions, ::Hash]
339
+ # Inference-time options for the process API
331
340
  #
332
341
  # @yield [response, operation] Access the result along with the RPC operation
333
342
  # @yieldparam response [::Gapic::Operation]
@@ -589,6 +598,91 @@ module Google
589
598
  raise ::Google::Cloud::Error.from_error(e)
590
599
  end
591
600
 
601
+ ##
602
+ # Gets a processor type detail.
603
+ #
604
+ # @overload get_processor_type(request, options = nil)
605
+ # Pass arguments to `get_processor_type` via a request object, either of type
606
+ # {::Google::Cloud::DocumentAI::V1beta3::GetProcessorTypeRequest} or an equivalent Hash.
607
+ #
608
+ # @param request [::Google::Cloud::DocumentAI::V1beta3::GetProcessorTypeRequest, ::Hash]
609
+ # A request object representing the call parameters. Required. To specify no
610
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
611
+ # @param options [::Gapic::CallOptions, ::Hash]
612
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
613
+ #
614
+ # @overload get_processor_type(name: nil)
615
+ # Pass arguments to `get_processor_type` via keyword arguments. Note that at
616
+ # least one keyword argument is required. To specify no parameters, or to keep all
617
+ # the default parameter values, pass an empty Hash as a request object (see above).
618
+ #
619
+ # @param name [::String]
620
+ # Required. The processor type resource name.
621
+ #
622
+ # @yield [response, operation] Access the result along with the RPC operation
623
+ # @yieldparam response [::Google::Cloud::DocumentAI::V1beta3::ProcessorType]
624
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
625
+ #
626
+ # @return [::Google::Cloud::DocumentAI::V1beta3::ProcessorType]
627
+ #
628
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
629
+ #
630
+ # @example Basic example
631
+ # require "google/cloud/document_ai/v1beta3"
632
+ #
633
+ # # Create a client object. The client can be reused for multiple calls.
634
+ # client = Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Client.new
635
+ #
636
+ # # Create a request. To set request fields, pass in keyword arguments.
637
+ # request = Google::Cloud::DocumentAI::V1beta3::GetProcessorTypeRequest.new
638
+ #
639
+ # # Call the get_processor_type method.
640
+ # result = client.get_processor_type request
641
+ #
642
+ # # The returned object is of type Google::Cloud::DocumentAI::V1beta3::ProcessorType.
643
+ # p result
644
+ #
645
+ def get_processor_type request, options = nil
646
+ raise ::ArgumentError, "request must be provided" if request.nil?
647
+
648
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DocumentAI::V1beta3::GetProcessorTypeRequest
649
+
650
+ # Converts hash and nil to an options object
651
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
652
+
653
+ # Customize the options with defaults
654
+ metadata = @config.rpcs.get_processor_type.metadata.to_h
655
+
656
+ # Set x-goog-api-client and x-goog-user-project headers
657
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
658
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
659
+ gapic_version: ::Google::Cloud::DocumentAI::V1beta3::VERSION
660
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
661
+
662
+ header_params = {}
663
+ if request.name
664
+ header_params["name"] = request.name
665
+ end
666
+
667
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
668
+ metadata[:"x-goog-request-params"] ||= request_params_header
669
+
670
+ options.apply_defaults timeout: @config.rpcs.get_processor_type.timeout,
671
+ metadata: metadata,
672
+ retry_policy: @config.rpcs.get_processor_type.retry_policy
673
+
674
+ options.apply_defaults timeout: @config.timeout,
675
+ metadata: @config.metadata,
676
+ retry_policy: @config.retry_policy
677
+
678
+ @document_processor_service_stub.call_rpc :get_processor_type, request, options: options do |response, operation|
679
+ yield response, operation if block_given?
680
+ return response
681
+ end
682
+ rescue ::GRPC::BadStatus => e
683
+ raise ::Google::Cloud::Error.from_error(e)
684
+ end
685
+
592
686
  ##
593
687
  # Lists all processors which belong to this project.
594
688
  #
@@ -608,8 +702,8 @@ module Google
608
702
  # the default parameter values, pass an empty Hash as a request object (see above).
609
703
  #
610
704
  # @param parent [::String]
611
- # Required. The parent (project and location) which owns this collection of Processors.
612
- # Format: `projects/{project}/locations/{location}`
705
+ # Required. The parent (project and location) which owns this collection of
706
+ # Processors. Format: `projects/{project}/locations/{location}`
613
707
  # @param page_size [::Integer]
614
708
  # The maximum number of processors to return.
615
709
  # If unspecified, at most 50 processors will be returned.
@@ -795,8 +889,9 @@ module Google
795
889
  # the default parameter values, pass an empty Hash as a request object (see above).
796
890
  #
797
891
  # @param parent [::String]
798
- # Required. The parent (project, location and processor) to create the new version for.
799
- # Format: `projects/{project}/locations/{location}/processors/{processor}`.
892
+ # Required. The parent (project, location and processor) to create the new
893
+ # version for. Format:
894
+ # `projects/{project}/locations/{location}/processors/{processor}`.
800
895
  # @param processor_version [::Google::Cloud::DocumentAI::V1beta3::ProcessorVersion, ::Hash]
801
896
  # Required. The processor version to be created.
802
897
  # @param document_schema [::Google::Cloud::DocumentAI::V1beta3::DocumentSchema, ::Hash]
@@ -804,8 +899,8 @@ module Google
804
899
  # @param input_data [::Google::Cloud::DocumentAI::V1beta3::TrainProcessorVersionRequest::InputData, ::Hash]
805
900
  # Optional. The input data used to train the `ProcessorVersion`.
806
901
  # @param base_processor_version [::String]
807
- # Optional. The processor version to use as a base for training. This processor version
808
- # must be a child of `parent`. Format:
902
+ # Optional. The processor version to use as a base for training. This
903
+ # processor version must be a child of `parent`. Format:
809
904
  # `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`.
810
905
  #
811
906
  # @yield [response, operation] Access the result along with the RPC operation
@@ -984,8 +1079,9 @@ module Google
984
1079
  # the default parameter values, pass an empty Hash as a request object (see above).
985
1080
  #
986
1081
  # @param parent [::String]
987
- # Required. The parent (project, location and processor) to list all versions.
988
- # Format: `projects/{project}/locations/{location}/processors/{processor}`
1082
+ # Required. The parent (project, location and processor) to list all
1083
+ # versions. Format:
1084
+ # `projects/{project}/locations/{location}/processors/{processor}`
989
1085
  # @param page_size [::Integer]
990
1086
  # The maximum number of processor versions to return.
991
1087
  # If unspecified, at most 10 processor versions will be returned.
@@ -1365,11 +1461,12 @@ module Google
1365
1461
  # the default parameter values, pass an empty Hash as a request object (see above).
1366
1462
  #
1367
1463
  # @param parent [::String]
1368
- # Required. The parent (project and location) under which to create the processor.
1369
- # Format: `projects/{project}/locations/{location}`
1464
+ # Required. The parent (project and location) under which to create the
1465
+ # processor. Format: `projects/{project}/locations/{location}`
1370
1466
  # @param processor [::Google::Cloud::DocumentAI::V1beta3::Processor, ::Hash]
1371
- # Required. The processor to be created, requires [processor_type] and [display_name]
1372
- # to be set. Also, the processor is under CMEK if CMEK fields are set.
1467
+ # Required. The processor to be created, requires [processor_type] and
1468
+ # [display_name] to be set. Also, the processor is under CMEK if CMEK fields
1469
+ # are set.
1373
1470
  #
1374
1471
  # @yield [response, operation] Access the result along with the RPC operation
1375
1472
  # @yieldparam response [::Google::Cloud::DocumentAI::V1beta3::Processor]
@@ -1716,8 +1813,10 @@ module Google
1716
1813
  end
1717
1814
 
1718
1815
  ##
1719
- # Set the default (active) version of a {::Google::Cloud::DocumentAI::V1beta3::Processor Processor} that will be used in
1720
- # {::Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Client#process_document ProcessDocument} and
1816
+ # Set the default (active) version of a
1817
+ # {::Google::Cloud::DocumentAI::V1beta3::Processor Processor} that will be used in
1818
+ # {::Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Client#process_document ProcessDocument}
1819
+ # and
1721
1820
  # {::Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Client#batch_process_documents BatchProcessDocuments}.
1722
1821
  #
1723
1822
  # @overload set_default_processor_version(request, options = nil)
@@ -1736,10 +1835,13 @@ module Google
1736
1835
  # the default parameter values, pass an empty Hash as a request object (see above).
1737
1836
  #
1738
1837
  # @param processor [::String]
1739
- # Required. The resource name of the {::Google::Cloud::DocumentAI::V1beta3::Processor Processor} to change default version.
1838
+ # Required. The resource name of the
1839
+ # {::Google::Cloud::DocumentAI::V1beta3::Processor Processor} to change default
1840
+ # version.
1740
1841
  # @param default_processor_version [::String]
1741
- # Required. The resource name of child {::Google::Cloud::DocumentAI::V1beta3::ProcessorVersion ProcessorVersion} to use as default.
1742
- # Format:
1842
+ # Required. The resource name of child
1843
+ # {::Google::Cloud::DocumentAI::V1beta3::ProcessorVersion ProcessorVersion} to use
1844
+ # as default. Format:
1743
1845
  # `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{version}`
1744
1846
  #
1745
1847
  # @yield [response, operation] Access the result along with the RPC operation
@@ -1836,8 +1938,8 @@ module Google
1836
1938
  # @param inline_document [::Google::Cloud::DocumentAI::V1beta3::Document, ::Hash]
1837
1939
  # An inline document proto.
1838
1940
  # @param human_review_config [::String]
1839
- # Required. The resource name of the HumanReviewConfig that the document will be
1840
- # reviewed with.
1941
+ # Required. The resource name of the HumanReviewConfig that the document will
1942
+ # be reviewed with.
1841
1943
  # @param document [::Google::Cloud::DocumentAI::V1beta3::Document, ::Hash]
1842
1944
  # The document that needs human review.
1843
1945
  # @param enable_schema_validation [::Boolean]
@@ -1939,11 +2041,13 @@ module Google
1939
2041
  # the default parameter values, pass an empty Hash as a request object (see above).
1940
2042
  #
1941
2043
  # @param processor_version [::String]
1942
- # Required. The resource name of the {::Google::Cloud::DocumentAI::V1beta3::ProcessorVersion ProcessorVersion} to evaluate.
2044
+ # Required. The resource name of the
2045
+ # {::Google::Cloud::DocumentAI::V1beta3::ProcessorVersion ProcessorVersion} to
2046
+ # evaluate.
1943
2047
  # `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`
1944
2048
  # @param evaluation_documents [::Google::Cloud::DocumentAI::V1beta3::BatchDocumentsInputConfig, ::Hash]
1945
- # Optional. The documents used in the evaluation. If unspecified, use the processor's
1946
- # dataset as evaluation input.
2049
+ # Optional. The documents used in the evaluation. If unspecified, use the
2050
+ # processor's dataset as evaluation input.
1947
2051
  #
1948
2052
  # @yield [response, operation] Access the result along with the RPC operation
1949
2053
  # @yieldparam response [::Gapic::Operation]
@@ -2036,7 +2140,8 @@ module Google
2036
2140
  # the default parameter values, pass an empty Hash as a request object (see above).
2037
2141
  #
2038
2142
  # @param name [::String]
2039
- # Required. The resource name of the {::Google::Cloud::DocumentAI::V1beta3::Evaluation Evaluation} to get.
2143
+ # Required. The resource name of the
2144
+ # {::Google::Cloud::DocumentAI::V1beta3::Evaluation Evaluation} to get.
2040
2145
  # `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}/evaluations/{evaluation}`
2041
2146
  #
2042
2147
  # @yield [response, operation] Access the result along with the RPC operation
@@ -2122,7 +2227,9 @@ module Google
2122
2227
  # the default parameter values, pass an empty Hash as a request object (see above).
2123
2228
  #
2124
2229
  # @param parent [::String]
2125
- # Required. The resource name of the {::Google::Cloud::DocumentAI::V1beta3::ProcessorVersion ProcessorVersion} to list evaluations for.
2230
+ # Required. The resource name of the
2231
+ # {::Google::Cloud::DocumentAI::V1beta3::ProcessorVersion ProcessorVersion} to
2232
+ # list evaluations for.
2126
2233
  # `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`
2127
2234
  # @param page_size [::Integer]
2128
2235
  # The standard list page size.
@@ -2359,6 +2466,11 @@ module Google
2359
2466
  #
2360
2467
  attr_reader :list_processor_types
2361
2468
  ##
2469
+ # RPC-specific configuration for `get_processor_type`
2470
+ # @return [::Gapic::Config::Method]
2471
+ #
2472
+ attr_reader :get_processor_type
2473
+ ##
2362
2474
  # RPC-specific configuration for `list_processors`
2363
2475
  # @return [::Gapic::Config::Method]
2364
2476
  #
@@ -2454,6 +2566,8 @@ module Google
2454
2566
  @fetch_processor_types = ::Gapic::Config::Method.new fetch_processor_types_config
2455
2567
  list_processor_types_config = parent_rpcs.list_processor_types if parent_rpcs.respond_to? :list_processor_types
2456
2568
  @list_processor_types = ::Gapic::Config::Method.new list_processor_types_config
2569
+ get_processor_type_config = parent_rpcs.get_processor_type if parent_rpcs.respond_to? :get_processor_type
2570
+ @get_processor_type = ::Gapic::Config::Method.new get_processor_type_config
2457
2571
  list_processors_config = parent_rpcs.list_processors if parent_rpcs.respond_to? :list_processors
2458
2572
  @list_processors = ::Gapic::Config::Method.new list_processors_config
2459
2573
  get_processor_config = parent_rpcs.get_processor if parent_rpcs.respond_to? :get_processor
@@ -102,6 +102,25 @@ module Google
102
102
  "projects/#{project}/locations/#{location}/processors/#{processor}"
103
103
  end
104
104
 
105
+ ##
106
+ # Create a fully-qualified ProcessorType resource string.
107
+ #
108
+ # The resource will be in the following format:
109
+ #
110
+ # `projects/{project}/locations/{location}/processorTypes/{processor_type}`
111
+ #
112
+ # @param project [String]
113
+ # @param location [String]
114
+ # @param processor_type [String]
115
+ #
116
+ # @return [::String]
117
+ def processor_type_path project:, location:, processor_type:
118
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
119
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
120
+
121
+ "projects/#{project}/locations/#{location}/processorTypes/#{processor_type}"
122
+ end
123
+
105
124
  ##
106
125
  # Create a fully-qualified ProcessorVersion resource string.
107
126
  #
@@ -37,7 +37,7 @@ module Google
37
37
  # AI such as natural language, computer vision, and translation to extract
38
38
  # structured information from unstructured or semi-structured documents.
39
39
  #
40
- # To load this service and instantiate a client:
40
+ # @example Load this service and instantiate a gRPC client
41
41
  #
42
42
  # require "google/cloud/document_ai/v1beta3/document_processor_service"
43
43
  # client = ::Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Client.new
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module DocumentAI
23
23
  module V1beta3
24
- VERSION = "0.15.0"
24
+ VERSION = "0.17.0"
25
25
  end
26
26
  end
27
27
  end
@@ -23,9 +23,9 @@ module Google
23
23
  module Cloud
24
24
  module DocumentAI
25
25
  ##
26
- # To load this package, including all its services, and instantiate a client:
26
+ # API client module.
27
27
  #
28
- # @example
28
+ # @example Load this package, including all its services, and instantiate a gRPC client
29
29
  #
30
30
  # require "google/cloud/document_ai/v1beta3"
31
31
  # client = ::Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Client.new
@@ -41,6 +41,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
41
41
  optional :pages_per_shard, :int32, 1
42
42
  optional :pages_overlap, :int32, 2
43
43
  end
44
+ add_message "google.cloud.documentai.v1beta3.OcrConfig" do
45
+ optional :enable_native_pdf_parsing, :bool, 3
46
+ end
44
47
  end
45
48
  end
46
49
 
@@ -56,6 +59,7 @@ module Google
56
59
  DocumentOutputConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.DocumentOutputConfig").msgclass
57
60
  DocumentOutputConfig::GcsOutputConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig").msgclass
58
61
  DocumentOutputConfig::GcsOutputConfig::ShardingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig.ShardingConfig").msgclass
62
+ OcrConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.OcrConfig").msgclass
59
63
  end
60
64
  end
61
65
  end
@@ -21,11 +21,15 @@ require 'google/rpc/status_pb'
21
21
 
22
22
  Google::Protobuf::DescriptorPool.generated_pool.build do
23
23
  add_file("google/cloud/documentai/v1beta3/document_processor_service.proto", :syntax => :proto3) do
24
+ add_message "google.cloud.documentai.v1beta3.ProcessOptions" do
25
+ optional :ocr_config, :message, 1, "google.cloud.documentai.v1beta3.OcrConfig"
26
+ end
24
27
  add_message "google.cloud.documentai.v1beta3.ProcessRequest" do
25
28
  optional :name, :string, 1
26
29
  optional :document, :message, 2, "google.cloud.documentai.v1beta3.Document"
27
30
  optional :skip_human_review, :bool, 3
28
31
  optional :field_mask, :message, 6, "google.protobuf.FieldMask"
32
+ optional :process_options, :message, 7, "google.cloud.documentai.v1beta3.ProcessOptions"
29
33
  oneof :source do
30
34
  optional :inline_document, :message, 4, "google.cloud.documentai.v1beta3.Document"
31
35
  optional :raw_document, :message, 5, "google.cloud.documentai.v1beta3.RawDocument"
@@ -55,6 +59,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
55
59
  optional :input_documents, :message, 5, "google.cloud.documentai.v1beta3.BatchDocumentsInputConfig"
56
60
  optional :document_output_config, :message, 6, "google.cloud.documentai.v1beta3.DocumentOutputConfig"
57
61
  optional :skip_human_review, :bool, 4
62
+ optional :process_options, :message, 7, "google.cloud.documentai.v1beta3.ProcessOptions"
58
63
  end
59
64
  add_message "google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig" do
60
65
  optional :gcs_source, :string, 1
@@ -112,6 +117,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
112
117
  repeated :processors, :message, 1, "google.cloud.documentai.v1beta3.Processor"
113
118
  optional :next_page_token, :string, 2
114
119
  end
120
+ add_message "google.cloud.documentai.v1beta3.GetProcessorTypeRequest" do
121
+ optional :name, :string, 1
122
+ end
115
123
  add_message "google.cloud.documentai.v1beta3.GetProcessorRequest" do
116
124
  optional :name, :string, 1
117
125
  end
@@ -278,6 +286,7 @@ module Google
278
286
  module Cloud
279
287
  module DocumentAI
280
288
  module V1beta3
289
+ ProcessOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ProcessOptions").msgclass
281
290
  ProcessRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ProcessRequest").msgclass
282
291
  HumanReviewStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.HumanReviewStatus").msgclass
283
292
  HumanReviewStatus::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.HumanReviewStatus.State").enummodule
@@ -295,6 +304,7 @@ module Google
295
304
  ListProcessorTypesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ListProcessorTypesResponse").msgclass
296
305
  ListProcessorsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ListProcessorsRequest").msgclass
297
306
  ListProcessorsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ListProcessorsResponse").msgclass
307
+ GetProcessorTypeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.GetProcessorTypeRequest").msgclass
298
308
  GetProcessorRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.GetProcessorRequest").msgclass
299
309
  GetProcessorVersionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.GetProcessorVersionRequest").msgclass
300
310
  ListProcessorVersionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ListProcessorVersionsRequest").msgclass
@@ -46,6 +46,8 @@ module Google
46
46
  rpc :FetchProcessorTypes, ::Google::Cloud::DocumentAI::V1beta3::FetchProcessorTypesRequest, ::Google::Cloud::DocumentAI::V1beta3::FetchProcessorTypesResponse
47
47
  # Lists the processor types that exist.
48
48
  rpc :ListProcessorTypes, ::Google::Cloud::DocumentAI::V1beta3::ListProcessorTypesRequest, ::Google::Cloud::DocumentAI::V1beta3::ListProcessorTypesResponse
49
+ # Gets a processor type detail.
50
+ rpc :GetProcessorType, ::Google::Cloud::DocumentAI::V1beta3::GetProcessorTypeRequest, ::Google::Cloud::DocumentAI::V1beta3::ProcessorType
49
51
  # Lists all processors which belong to this project.
50
52
  rpc :ListProcessors, ::Google::Cloud::DocumentAI::V1beta3::ListProcessorsRequest, ::Google::Cloud::DocumentAI::V1beta3::ListProcessorsResponse
51
53
  # Gets a processor detail.
@@ -75,8 +77,10 @@ module Google
75
77
  rpc :EnableProcessor, ::Google::Cloud::DocumentAI::V1beta3::EnableProcessorRequest, ::Google::Longrunning::Operation
76
78
  # Disables a processor
77
79
  rpc :DisableProcessor, ::Google::Cloud::DocumentAI::V1beta3::DisableProcessorRequest, ::Google::Longrunning::Operation
78
- # Set the default (active) version of a [Processor][google.cloud.documentai.v1beta3.Processor] that will be used in
79
- # [ProcessDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ProcessDocument] and
80
+ # Set the default (active) version of a
81
+ # [Processor][google.cloud.documentai.v1beta3.Processor] that will be used in
82
+ # [ProcessDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ProcessDocument]
83
+ # and
80
84
  # [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments].
81
85
  rpc :SetDefaultProcessorVersion, ::Google::Cloud::DocumentAI::V1beta3::SetDefaultProcessorVersionRequest, ::Google::Longrunning::Operation
82
86
  # Send a document for Human Review. The input document should be processed by
@@ -15,6 +15,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
15
15
  repeated :available_locations, :message, 4, "google.cloud.documentai.v1beta3.ProcessorType.LocationInfo"
16
16
  optional :allow_creation, :bool, 6
17
17
  optional :launch_stage, :enum, 8, "google.api.LaunchStage"
18
+ repeated :sample_document_uris, :string, 9
18
19
  end
19
20
  add_message "google.cloud.documentai.v1beta3.ProcessorType.LocationInfo" do
20
21
  optional :location_id, :string, 1