google-cloud-document_ai-v1 0.20.0 → 0.21.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 +37 -60
- data/lib/google/cloud/document_ai/v1/document_processor_service/rest/client.rb +37 -60
- data/lib/google/cloud/document_ai/v1/version.rb +1 -1
- data/lib/google/cloud/documentai/v1/document_processor_service_pb.rb +2 -1
- data/lib/google/cloud/documentai/v1/document_processor_service_services_pb.rb +5 -9
- data/proto_docs/google/api/client.rb +4 -0
- data/proto_docs/google/cloud/documentai/v1/document.rb +72 -132
- data/proto_docs/google/cloud/documentai/v1/document_io.rb +1 -3
- data/proto_docs/google/cloud/documentai/v1/document_processor_service.rb +89 -122
- data/proto_docs/google/cloud/documentai/v1/processor.rb +1 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f9e899b9f7e7956bedbd128a09dd04c0f209cae415f12ab1d343ed2aa4fd7ce
|
4
|
+
data.tar.gz: f01dabca3b8863bdd422161d82f7862be2c94fe073182f8622d4b2b4d0ca332c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4413f20a94b710fed4053d565fcf8b6e4108fecc1c823e8c85f3b65ad98f2a585e393c9a747fc5d929eb17bc3ec7a682b5742295235cf1cef06ece965cf47a4
|
7
|
+
data.tar.gz: 947a7128b4cd5dd9cd55bf1719069b70b58ba200dfa4160d02321babfdabc267d3878b86dd0b17a0e78d50356174a8e81b7bc819527a0b3adc0429a2213965cb
|
@@ -232,22 +232,17 @@ module Google
|
|
232
232
|
# @param gcs_document [::Google::Cloud::DocumentAI::V1::GcsDocument, ::Hash]
|
233
233
|
# A raw document on Google Cloud Storage.
|
234
234
|
# @param name [::String]
|
235
|
-
# Required. The resource name of the
|
236
|
-
# {::Google::Cloud::DocumentAI::V1::Processor Processor} or
|
235
|
+
# Required. The resource name of the {::Google::Cloud::DocumentAI::V1::Processor Processor} or
|
237
236
|
# {::Google::Cloud::DocumentAI::V1::ProcessorVersion ProcessorVersion}
|
238
|
-
# to use for processing. If a
|
239
|
-
# {::Google::Cloud::DocumentAI::V1::Processor
|
240
|
-
#
|
241
|
-
# version][google.cloud.documentai.v1.Processor.default_processor_version].
|
242
|
-
# Format: `projects/{project}/locations/{location}/processors/{processor}`,
|
243
|
-
# or
|
237
|
+
# to use for processing. If a {::Google::Cloud::DocumentAI::V1::Processor Processor} is specified, the server will use
|
238
|
+
# its {::Google::Cloud::DocumentAI::V1::Processor#default_processor_version default version}. Format:
|
239
|
+
# `projects/{project}/locations/{location}/processors/{processor}`, or
|
244
240
|
# `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`
|
245
241
|
# @param skip_human_review [::Boolean]
|
246
242
|
# Whether human review should be skipped for this request. Default to
|
247
243
|
# `false`.
|
248
244
|
# @param field_mask [::Google::Protobuf::FieldMask, ::Hash]
|
249
|
-
# Specifies which fields to include in the
|
250
|
-
# {::Google::Cloud::DocumentAI::V1::ProcessResponse#document ProcessResponse.document}
|
245
|
+
# Specifies which fields to include in the {::Google::Cloud::DocumentAI::V1::ProcessResponse#document ProcessResponse.document}
|
251
246
|
# output. Only supports top-level document and pages field, so it must be in
|
252
247
|
# the form of `{document_field_name}` or `pages.{page_field_name}`.
|
253
248
|
# @param process_options [::Google::Cloud::DocumentAI::V1::ProcessOptions, ::Hash]
|
@@ -344,8 +339,7 @@ module Google
|
|
344
339
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
345
340
|
#
|
346
341
|
# @param name [::String]
|
347
|
-
# Required. The resource name of
|
348
|
-
# {::Google::Cloud::DocumentAI::V1::Processor Processor} or
|
342
|
+
# Required. The resource name of {::Google::Cloud::DocumentAI::V1::Processor Processor} or
|
349
343
|
# {::Google::Cloud::DocumentAI::V1::ProcessorVersion ProcessorVersion}.
|
350
344
|
# Format: `projects/{project}/locations/{location}/processors/{processor}`,
|
351
345
|
# or
|
@@ -444,8 +438,7 @@ module Google
|
|
444
438
|
end
|
445
439
|
|
446
440
|
##
|
447
|
-
# Fetches processor types. Note that we don't use
|
448
|
-
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#list_processor_types ListProcessorTypes}
|
441
|
+
# Fetches processor types. Note that we don't use {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#list_processor_types ListProcessorTypes}
|
449
442
|
# here, because it isn't paginated.
|
450
443
|
#
|
451
444
|
# @overload fetch_processor_types(request, options = nil)
|
@@ -732,8 +725,8 @@ module Google
|
|
732
725
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
733
726
|
#
|
734
727
|
# @param parent [::String]
|
735
|
-
# Required. The parent (project and location) which owns this collection of
|
736
|
-
#
|
728
|
+
# Required. The parent (project and location) which owns this collection of Processors.
|
729
|
+
# Format: `projects/{project}/locations/{location}`
|
737
730
|
# @param page_size [::Integer]
|
738
731
|
# The maximum number of processors to return.
|
739
732
|
# If unspecified, at most `50` processors will be returned.
|
@@ -911,27 +904,27 @@ module Google
|
|
911
904
|
# @param options [::Gapic::CallOptions, ::Hash]
|
912
905
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
913
906
|
#
|
914
|
-
# @overload train_processor_version(custom_document_extraction_options: nil, parent: nil, processor_version: nil, document_schema: nil, input_data: nil, base_processor_version: nil)
|
907
|
+
# @overload train_processor_version(custom_document_extraction_options: nil, foundation_model_tuning_options: nil, parent: nil, processor_version: nil, document_schema: nil, input_data: nil, base_processor_version: nil)
|
915
908
|
# Pass arguments to `train_processor_version` via keyword arguments. Note that at
|
916
909
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
917
910
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
918
911
|
#
|
919
912
|
# @param custom_document_extraction_options [::Google::Cloud::DocumentAI::V1::TrainProcessorVersionRequest::CustomDocumentExtractionOptions, ::Hash]
|
920
913
|
# Options to control Custom Document Extraction (CDE) Processor.
|
914
|
+
# @param foundation_model_tuning_options [::Google::Cloud::DocumentAI::V1::TrainProcessorVersionRequest::FoundationModelTuningOptions, ::Hash]
|
915
|
+
# Options to control foundation model tuning of a processor.
|
921
916
|
# @param parent [::String]
|
922
|
-
# Required. The parent (project, location and processor) to create the new
|
923
|
-
#
|
924
|
-
# `projects/{project}/locations/{location}/processors/{processor}`.
|
917
|
+
# Required. The parent (project, location and processor) to create the new version for.
|
918
|
+
# Format: `projects/{project}/locations/{location}/processors/{processor}`.
|
925
919
|
# @param processor_version [::Google::Cloud::DocumentAI::V1::ProcessorVersion, ::Hash]
|
926
920
|
# Required. The processor version to be created.
|
927
921
|
# @param document_schema [::Google::Cloud::DocumentAI::V1::DocumentSchema, ::Hash]
|
928
922
|
# Optional. The schema the processor version will be trained with.
|
929
923
|
# @param input_data [::Google::Cloud::DocumentAI::V1::TrainProcessorVersionRequest::InputData, ::Hash]
|
930
|
-
# Optional. The input data used to train the
|
931
|
-
# {::Google::Cloud::DocumentAI::V1::ProcessorVersion ProcessorVersion}.
|
924
|
+
# Optional. The input data used to train the {::Google::Cloud::DocumentAI::V1::ProcessorVersion ProcessorVersion}.
|
932
925
|
# @param base_processor_version [::String]
|
933
|
-
# Optional. The processor version to use as a base for training. This
|
934
|
-
#
|
926
|
+
# Optional. The processor version to use as a base for training. This processor version
|
927
|
+
# must be a child of `parent`. Format:
|
935
928
|
# `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`.
|
936
929
|
#
|
937
930
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -1110,9 +1103,8 @@ module Google
|
|
1110
1103
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1111
1104
|
#
|
1112
1105
|
# @param parent [::String]
|
1113
|
-
# Required. The parent (project, location and processor) to list all
|
1114
|
-
#
|
1115
|
-
# `projects/{project}/locations/{location}/processors/{processor}`
|
1106
|
+
# Required. The parent (project, location and processor) to list all versions.
|
1107
|
+
# Format: `projects/{project}/locations/{location}/processors/{processor}`
|
1116
1108
|
# @param page_size [::Integer]
|
1117
1109
|
# The maximum number of processor versions to return.
|
1118
1110
|
# If unspecified, at most `10` processor versions will be returned.
|
@@ -1471,9 +1463,8 @@ module Google
|
|
1471
1463
|
end
|
1472
1464
|
|
1473
1465
|
##
|
1474
|
-
# Creates a processor from the
|
1475
|
-
#
|
1476
|
-
# processor will be at `ENABLED` state by default after its creation.
|
1466
|
+
# Creates a processor from the {::Google::Cloud::DocumentAI::V1::ProcessorType ProcessorType} provided.
|
1467
|
+
# The processor will be at `ENABLED` state by default after its creation.
|
1477
1468
|
#
|
1478
1469
|
# @overload create_processor(request, options = nil)
|
1479
1470
|
# Pass arguments to `create_processor` via a request object, either of type
|
@@ -1491,14 +1482,11 @@ module Google
|
|
1491
1482
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1492
1483
|
#
|
1493
1484
|
# @param parent [::String]
|
1494
|
-
# Required. The parent (project and location) under which to create the
|
1495
|
-
#
|
1485
|
+
# Required. The parent (project and location) under which to create the processor.
|
1486
|
+
# Format: `projects/{project}/locations/{location}`
|
1496
1487
|
# @param processor [::Google::Cloud::DocumentAI::V1::Processor, ::Hash]
|
1497
|
-
# Required. The processor to be created, requires
|
1498
|
-
# {::Google::Cloud::DocumentAI::V1::Processor#
|
1499
|
-
# {::Google::Cloud::DocumentAI::V1::Processor#display_name Processor.display_name}
|
1500
|
-
# to be set. Also, the
|
1501
|
-
# {::Google::Cloud::DocumentAI::V1::Processor#kms_key_name Processor.kms_key_name}
|
1488
|
+
# Required. The processor to be created, requires {::Google::Cloud::DocumentAI::V1::Processor#type Processor.type} and
|
1489
|
+
# {::Google::Cloud::DocumentAI::V1::Processor#display_name Processor.display_name} to be set. Also, the {::Google::Cloud::DocumentAI::V1::Processor#kms_key_name Processor.kms_key_name}
|
1502
1490
|
# field must be set if the processor is under CMEK.
|
1503
1491
|
#
|
1504
1492
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -1846,10 +1834,8 @@ module Google
|
|
1846
1834
|
end
|
1847
1835
|
|
1848
1836
|
##
|
1849
|
-
# Set the default (active) version of a
|
1850
|
-
# {::Google::Cloud::DocumentAI::V1::
|
1851
|
-
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#process_document ProcessDocument}
|
1852
|
-
# and
|
1837
|
+
# Set the default (active) version of a {::Google::Cloud::DocumentAI::V1::Processor Processor} that will be used in
|
1838
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#process_document ProcessDocument} and
|
1853
1839
|
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#batch_process_documents BatchProcessDocuments}.
|
1854
1840
|
#
|
1855
1841
|
# @overload set_default_processor_version(request, options = nil)
|
@@ -1868,13 +1854,10 @@ module Google
|
|
1868
1854
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1869
1855
|
#
|
1870
1856
|
# @param processor [::String]
|
1871
|
-
# Required. The resource name of the
|
1872
|
-
# {::Google::Cloud::DocumentAI::V1::Processor Processor} to change default
|
1873
|
-
# version.
|
1857
|
+
# Required. The resource name of the {::Google::Cloud::DocumentAI::V1::Processor Processor} to change default version.
|
1874
1858
|
# @param default_processor_version [::String]
|
1875
|
-
# Required. The resource name of child
|
1876
|
-
#
|
1877
|
-
# default. Format:
|
1859
|
+
# Required. The resource name of child {::Google::Cloud::DocumentAI::V1::ProcessorVersion ProcessorVersion} to use as default.
|
1860
|
+
# Format:
|
1878
1861
|
# `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{version}`
|
1879
1862
|
#
|
1880
1863
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -1971,9 +1954,8 @@ module Google
|
|
1971
1954
|
# @param inline_document [::Google::Cloud::DocumentAI::V1::Document, ::Hash]
|
1972
1955
|
# An inline document proto.
|
1973
1956
|
# @param human_review_config [::String]
|
1974
|
-
# Required. The resource name of the
|
1975
|
-
#
|
1976
|
-
# document will be reviewed with.
|
1957
|
+
# Required. The resource name of the [HumanReviewConfig][google.cloud.documentai.v1.HumanReviewConfig] that the document will be
|
1958
|
+
# reviewed with.
|
1977
1959
|
# @param enable_schema_validation [::Boolean]
|
1978
1960
|
# Whether the validation should be performed on the ad-hoc review request.
|
1979
1961
|
# @param priority [::Google::Cloud::DocumentAI::V1::ReviewDocumentRequest::Priority]
|
@@ -2073,13 +2055,11 @@ module Google
|
|
2073
2055
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2074
2056
|
#
|
2075
2057
|
# @param processor_version [::String]
|
2076
|
-
# Required. The resource name of the
|
2077
|
-
# {::Google::Cloud::DocumentAI::V1::ProcessorVersion ProcessorVersion} to
|
2078
|
-
# evaluate.
|
2058
|
+
# Required. The resource name of the {::Google::Cloud::DocumentAI::V1::ProcessorVersion ProcessorVersion} to evaluate.
|
2079
2059
|
# `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`
|
2080
2060
|
# @param evaluation_documents [::Google::Cloud::DocumentAI::V1::BatchDocumentsInputConfig, ::Hash]
|
2081
|
-
# Optional. The documents used in the evaluation. If unspecified, use the
|
2082
|
-
#
|
2061
|
+
# Optional. The documents used in the evaluation. If unspecified, use the processor's
|
2062
|
+
# dataset as evaluation input.
|
2083
2063
|
#
|
2084
2064
|
# @yield [response, operation] Access the result along with the RPC operation
|
2085
2065
|
# @yieldparam response [::Gapic::Operation]
|
@@ -2172,8 +2152,7 @@ module Google
|
|
2172
2152
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2173
2153
|
#
|
2174
2154
|
# @param name [::String]
|
2175
|
-
# Required. The resource name of the
|
2176
|
-
# {::Google::Cloud::DocumentAI::V1::Evaluation Evaluation} to get.
|
2155
|
+
# Required. The resource name of the {::Google::Cloud::DocumentAI::V1::Evaluation Evaluation} to get.
|
2177
2156
|
# `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}/evaluations/{evaluation}`
|
2178
2157
|
#
|
2179
2158
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -2259,9 +2238,7 @@ module Google
|
|
2259
2238
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2260
2239
|
#
|
2261
2240
|
# @param parent [::String]
|
2262
|
-
# Required. The resource name of the
|
2263
|
-
# {::Google::Cloud::DocumentAI::V1::ProcessorVersion ProcessorVersion} to list
|
2264
|
-
# evaluations for.
|
2241
|
+
# Required. The resource name of the {::Google::Cloud::DocumentAI::V1::ProcessorVersion ProcessorVersion} to list evaluations for.
|
2265
2242
|
# `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`
|
2266
2243
|
# @param page_size [::Integer]
|
2267
2244
|
# The standard list page size.
|
@@ -226,22 +226,17 @@ module Google
|
|
226
226
|
# @param gcs_document [::Google::Cloud::DocumentAI::V1::GcsDocument, ::Hash]
|
227
227
|
# A raw document on Google Cloud Storage.
|
228
228
|
# @param name [::String]
|
229
|
-
# Required. The resource name of the
|
230
|
-
# {::Google::Cloud::DocumentAI::V1::Processor Processor} or
|
229
|
+
# Required. The resource name of the {::Google::Cloud::DocumentAI::V1::Processor Processor} or
|
231
230
|
# {::Google::Cloud::DocumentAI::V1::ProcessorVersion ProcessorVersion}
|
232
|
-
# to use for processing. If a
|
233
|
-
# {::Google::Cloud::DocumentAI::V1::Processor
|
234
|
-
#
|
235
|
-
# version][google.cloud.documentai.v1.Processor.default_processor_version].
|
236
|
-
# Format: `projects/{project}/locations/{location}/processors/{processor}`,
|
237
|
-
# or
|
231
|
+
# to use for processing. If a {::Google::Cloud::DocumentAI::V1::Processor Processor} is specified, the server will use
|
232
|
+
# its {::Google::Cloud::DocumentAI::V1::Processor#default_processor_version default version}. Format:
|
233
|
+
# `projects/{project}/locations/{location}/processors/{processor}`, or
|
238
234
|
# `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`
|
239
235
|
# @param skip_human_review [::Boolean]
|
240
236
|
# Whether human review should be skipped for this request. Default to
|
241
237
|
# `false`.
|
242
238
|
# @param field_mask [::Google::Protobuf::FieldMask, ::Hash]
|
243
|
-
# Specifies which fields to include in the
|
244
|
-
# {::Google::Cloud::DocumentAI::V1::ProcessResponse#document ProcessResponse.document}
|
239
|
+
# Specifies which fields to include in the {::Google::Cloud::DocumentAI::V1::ProcessResponse#document ProcessResponse.document}
|
245
240
|
# output. Only supports top-level document and pages field, so it must be in
|
246
241
|
# the form of `{document_field_name}` or `pages.{page_field_name}`.
|
247
242
|
# @param process_options [::Google::Cloud::DocumentAI::V1::ProcessOptions, ::Hash]
|
@@ -331,8 +326,7 @@ module Google
|
|
331
326
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
332
327
|
#
|
333
328
|
# @param name [::String]
|
334
|
-
# Required. The resource name of
|
335
|
-
# {::Google::Cloud::DocumentAI::V1::Processor Processor} or
|
329
|
+
# Required. The resource name of {::Google::Cloud::DocumentAI::V1::Processor Processor} or
|
336
330
|
# {::Google::Cloud::DocumentAI::V1::ProcessorVersion ProcessorVersion}.
|
337
331
|
# Format: `projects/{project}/locations/{location}/processors/{processor}`,
|
338
332
|
# or
|
@@ -424,8 +418,7 @@ module Google
|
|
424
418
|
end
|
425
419
|
|
426
420
|
##
|
427
|
-
# Fetches processor types. Note that we don't use
|
428
|
-
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Rest::Client#list_processor_types ListProcessorTypes}
|
421
|
+
# Fetches processor types. Note that we don't use {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Rest::Client#list_processor_types ListProcessorTypes}
|
429
422
|
# here, because it isn't paginated.
|
430
423
|
#
|
431
424
|
# @overload fetch_processor_types(request, options = nil)
|
@@ -691,8 +684,8 @@ module Google
|
|
691
684
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
692
685
|
#
|
693
686
|
# @param parent [::String]
|
694
|
-
# Required. The parent (project and location) which owns this collection of
|
695
|
-
#
|
687
|
+
# Required. The parent (project and location) which owns this collection of Processors.
|
688
|
+
# Format: `projects/{project}/locations/{location}`
|
696
689
|
# @param page_size [::Integer]
|
697
690
|
# The maximum number of processors to return.
|
698
691
|
# If unspecified, at most `50` processors will be returned.
|
@@ -856,27 +849,27 @@ module Google
|
|
856
849
|
# @param options [::Gapic::CallOptions, ::Hash]
|
857
850
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
858
851
|
#
|
859
|
-
# @overload train_processor_version(custom_document_extraction_options: nil, parent: nil, processor_version: nil, document_schema: nil, input_data: nil, base_processor_version: nil)
|
852
|
+
# @overload train_processor_version(custom_document_extraction_options: nil, foundation_model_tuning_options: nil, parent: nil, processor_version: nil, document_schema: nil, input_data: nil, base_processor_version: nil)
|
860
853
|
# Pass arguments to `train_processor_version` via keyword arguments. Note that at
|
861
854
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
862
855
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
863
856
|
#
|
864
857
|
# @param custom_document_extraction_options [::Google::Cloud::DocumentAI::V1::TrainProcessorVersionRequest::CustomDocumentExtractionOptions, ::Hash]
|
865
858
|
# Options to control Custom Document Extraction (CDE) Processor.
|
859
|
+
# @param foundation_model_tuning_options [::Google::Cloud::DocumentAI::V1::TrainProcessorVersionRequest::FoundationModelTuningOptions, ::Hash]
|
860
|
+
# Options to control foundation model tuning of a processor.
|
866
861
|
# @param parent [::String]
|
867
|
-
# Required. The parent (project, location and processor) to create the new
|
868
|
-
#
|
869
|
-
# `projects/{project}/locations/{location}/processors/{processor}`.
|
862
|
+
# Required. The parent (project, location and processor) to create the new version for.
|
863
|
+
# Format: `projects/{project}/locations/{location}/processors/{processor}`.
|
870
864
|
# @param processor_version [::Google::Cloud::DocumentAI::V1::ProcessorVersion, ::Hash]
|
871
865
|
# Required. The processor version to be created.
|
872
866
|
# @param document_schema [::Google::Cloud::DocumentAI::V1::DocumentSchema, ::Hash]
|
873
867
|
# Optional. The schema the processor version will be trained with.
|
874
868
|
# @param input_data [::Google::Cloud::DocumentAI::V1::TrainProcessorVersionRequest::InputData, ::Hash]
|
875
|
-
# Optional. The input data used to train the
|
876
|
-
# {::Google::Cloud::DocumentAI::V1::ProcessorVersion ProcessorVersion}.
|
869
|
+
# Optional. The input data used to train the {::Google::Cloud::DocumentAI::V1::ProcessorVersion ProcessorVersion}.
|
877
870
|
# @param base_processor_version [::String]
|
878
|
-
# Optional. The processor version to use as a base for training. This
|
879
|
-
#
|
871
|
+
# Optional. The processor version to use as a base for training. This processor version
|
872
|
+
# must be a child of `parent`. Format:
|
880
873
|
# `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`.
|
881
874
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
882
875
|
# @yieldparam result [::Gapic::Operation]
|
@@ -1041,9 +1034,8 @@ module Google
|
|
1041
1034
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1042
1035
|
#
|
1043
1036
|
# @param parent [::String]
|
1044
|
-
# Required. The parent (project, location and processor) to list all
|
1045
|
-
#
|
1046
|
-
# `projects/{project}/locations/{location}/processors/{processor}`
|
1037
|
+
# Required. The parent (project, location and processor) to list all versions.
|
1038
|
+
# Format: `projects/{project}/locations/{location}/processors/{processor}`
|
1047
1039
|
# @param page_size [::Integer]
|
1048
1040
|
# The maximum number of processor versions to return.
|
1049
1041
|
# If unspecified, at most `10` processor versions will be returned.
|
@@ -1374,9 +1366,8 @@ module Google
|
|
1374
1366
|
end
|
1375
1367
|
|
1376
1368
|
##
|
1377
|
-
# Creates a processor from the
|
1378
|
-
#
|
1379
|
-
# processor will be at `ENABLED` state by default after its creation.
|
1369
|
+
# Creates a processor from the {::Google::Cloud::DocumentAI::V1::ProcessorType ProcessorType} provided.
|
1370
|
+
# The processor will be at `ENABLED` state by default after its creation.
|
1380
1371
|
#
|
1381
1372
|
# @overload create_processor(request, options = nil)
|
1382
1373
|
# Pass arguments to `create_processor` via a request object, either of type
|
@@ -1394,14 +1385,11 @@ module Google
|
|
1394
1385
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1395
1386
|
#
|
1396
1387
|
# @param parent [::String]
|
1397
|
-
# Required. The parent (project and location) under which to create the
|
1398
|
-
#
|
1388
|
+
# Required. The parent (project and location) under which to create the processor.
|
1389
|
+
# Format: `projects/{project}/locations/{location}`
|
1399
1390
|
# @param processor [::Google::Cloud::DocumentAI::V1::Processor, ::Hash]
|
1400
|
-
# Required. The processor to be created, requires
|
1401
|
-
# {::Google::Cloud::DocumentAI::V1::Processor#
|
1402
|
-
# {::Google::Cloud::DocumentAI::V1::Processor#display_name Processor.display_name}
|
1403
|
-
# to be set. Also, the
|
1404
|
-
# {::Google::Cloud::DocumentAI::V1::Processor#kms_key_name Processor.kms_key_name}
|
1391
|
+
# Required. The processor to be created, requires {::Google::Cloud::DocumentAI::V1::Processor#type Processor.type} and
|
1392
|
+
# {::Google::Cloud::DocumentAI::V1::Processor#display_name Processor.display_name} to be set. Also, the {::Google::Cloud::DocumentAI::V1::Processor#kms_key_name Processor.kms_key_name}
|
1405
1393
|
# field must be set if the processor is under CMEK.
|
1406
1394
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
1407
1395
|
# @yieldparam result [::Google::Cloud::DocumentAI::V1::Processor]
|
@@ -1721,10 +1709,8 @@ module Google
|
|
1721
1709
|
end
|
1722
1710
|
|
1723
1711
|
##
|
1724
|
-
# Set the default (active) version of a
|
1725
|
-
# {::Google::Cloud::DocumentAI::V1::
|
1726
|
-
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Rest::Client#process_document ProcessDocument}
|
1727
|
-
# and
|
1712
|
+
# Set the default (active) version of a {::Google::Cloud::DocumentAI::V1::Processor Processor} that will be used in
|
1713
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Rest::Client#process_document ProcessDocument} and
|
1728
1714
|
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Rest::Client#batch_process_documents BatchProcessDocuments}.
|
1729
1715
|
#
|
1730
1716
|
# @overload set_default_processor_version(request, options = nil)
|
@@ -1743,13 +1729,10 @@ module Google
|
|
1743
1729
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1744
1730
|
#
|
1745
1731
|
# @param processor [::String]
|
1746
|
-
# Required. The resource name of the
|
1747
|
-
# {::Google::Cloud::DocumentAI::V1::Processor Processor} to change default
|
1748
|
-
# version.
|
1732
|
+
# Required. The resource name of the {::Google::Cloud::DocumentAI::V1::Processor Processor} to change default version.
|
1749
1733
|
# @param default_processor_version [::String]
|
1750
|
-
# Required. The resource name of child
|
1751
|
-
#
|
1752
|
-
# default. Format:
|
1734
|
+
# Required. The resource name of child {::Google::Cloud::DocumentAI::V1::ProcessorVersion ProcessorVersion} to use as default.
|
1735
|
+
# Format:
|
1753
1736
|
# `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{version}`
|
1754
1737
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
1755
1738
|
# @yieldparam result [::Gapic::Operation]
|
@@ -1839,9 +1822,8 @@ module Google
|
|
1839
1822
|
# @param inline_document [::Google::Cloud::DocumentAI::V1::Document, ::Hash]
|
1840
1823
|
# An inline document proto.
|
1841
1824
|
# @param human_review_config [::String]
|
1842
|
-
# Required. The resource name of the
|
1843
|
-
#
|
1844
|
-
# document will be reviewed with.
|
1825
|
+
# Required. The resource name of the [HumanReviewConfig][google.cloud.documentai.v1.HumanReviewConfig] that the document will be
|
1826
|
+
# reviewed with.
|
1845
1827
|
# @param enable_schema_validation [::Boolean]
|
1846
1828
|
# Whether the validation should be performed on the ad-hoc review request.
|
1847
1829
|
# @param priority [::Google::Cloud::DocumentAI::V1::ReviewDocumentRequest::Priority]
|
@@ -1934,13 +1916,11 @@ module Google
|
|
1934
1916
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1935
1917
|
#
|
1936
1918
|
# @param processor_version [::String]
|
1937
|
-
# Required. The resource name of the
|
1938
|
-
# {::Google::Cloud::DocumentAI::V1::ProcessorVersion ProcessorVersion} to
|
1939
|
-
# evaluate.
|
1919
|
+
# Required. The resource name of the {::Google::Cloud::DocumentAI::V1::ProcessorVersion ProcessorVersion} to evaluate.
|
1940
1920
|
# `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`
|
1941
1921
|
# @param evaluation_documents [::Google::Cloud::DocumentAI::V1::BatchDocumentsInputConfig, ::Hash]
|
1942
|
-
# Optional. The documents used in the evaluation. If unspecified, use the
|
1943
|
-
#
|
1922
|
+
# Optional. The documents used in the evaluation. If unspecified, use the processor's
|
1923
|
+
# dataset as evaluation input.
|
1944
1924
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
1945
1925
|
# @yieldparam result [::Gapic::Operation]
|
1946
1926
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -2026,8 +2006,7 @@ module Google
|
|
2026
2006
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2027
2007
|
#
|
2028
2008
|
# @param name [::String]
|
2029
|
-
# Required. The resource name of the
|
2030
|
-
# {::Google::Cloud::DocumentAI::V1::Evaluation Evaluation} to get.
|
2009
|
+
# Required. The resource name of the {::Google::Cloud::DocumentAI::V1::Evaluation Evaluation} to get.
|
2031
2010
|
# `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}/evaluations/{evaluation}`
|
2032
2011
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
2033
2012
|
# @yieldparam result [::Google::Cloud::DocumentAI::V1::Evaluation]
|
@@ -2106,9 +2085,7 @@ module Google
|
|
2106
2085
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2107
2086
|
#
|
2108
2087
|
# @param parent [::String]
|
2109
|
-
# Required. The resource name of the
|
2110
|
-
# {::Google::Cloud::DocumentAI::V1::ProcessorVersion ProcessorVersion} to list
|
2111
|
-
# evaluations for.
|
2088
|
+
# Required. The resource name of the {::Google::Cloud::DocumentAI::V1::ProcessorVersion ProcessorVersion} to list evaluations for.
|
2112
2089
|
# `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`
|
2113
2090
|
# @param page_size [::Integer]
|
2114
2091
|
# The standard list page size.
|
@@ -22,7 +22,7 @@ require 'google/protobuf/timestamp_pb'
|
|
22
22
|
require 'google/rpc/status_pb'
|
23
23
|
|
24
24
|
|
25
|
-
descriptor_data = "\n;google/cloud/documentai/v1/document_processor_service.proto\x12\x1agoogle.cloud.documentai.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a)google/cloud/documentai/v1/document.proto\x1a,google/cloud/documentai/v1/document_io.proto\x1a\x30google/cloud/documentai/v1/document_schema.proto\x1a+google/cloud/documentai/v1/evaluation.proto\x1a\x33google/cloud/documentai/v1/operation_metadata.proto\x1a*google/cloud/documentai/v1/processor.proto\x1a/google/cloud/documentai/v1/processor_type.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xe2\x02\n\x0eProcessOptions\x12\x65\n\x18individual_page_selector\x18\x05 \x01(\x0b\x32\x41.google.cloud.documentai.v1.ProcessOptions.IndividualPageSelectorH\x00\x12\x14\n\nfrom_start\x18\x06 \x01(\x05H\x00\x12\x12\n\x08\x66rom_end\x18\x07 \x01(\x05H\x00\x12\x39\n\nocr_config\x18\x01 \x01(\x0b\x32%.google.cloud.documentai.v1.OcrConfig\x12H\n\x0fschema_override\x18\x08 \x01(\x0b\x32*.google.cloud.documentai.v1.DocumentSchemaB\x03\xe0\x41\x01\x1a,\n\x16IndividualPageSelector\x12\x12\n\x05pages\x18\x01 \x03(\x05\x42\x03\xe0\x41\x01\x42\x0c\n\npage_range\"\x82\x04\n\x0eProcessRequest\x12?\n\x0finline_document\x18\x04 \x01(\x0b\x32$.google.cloud.documentai.v1.DocumentH\x00\x12?\n\x0craw_document\x18\x05 \x01(\x0b\x32\'.google.cloud.documentai.v1.RawDocumentH\x00\x12?\n\x0cgcs_document\x18\x08 \x01(\x0b\x32\'.google.cloud.documentai.v1.GcsDocumentH\x00\x12\x17\n\x04name\x18\x01 \x01(\tB\t\xe0\x41\x02\xfa\x41\x03\n\x01*\x12\x19\n\x11skip_human_review\x18\x03 \x01(\x08\x12.\n\nfield_mask\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x43\n\x0fprocess_options\x18\x07 \x01(\x0b\x32*.google.cloud.documentai.v1.ProcessOptions\x12K\n\x06labels\x18\n \x03(\x0b\x32\x36.google.cloud.documentai.v1.ProcessRequest.LabelsEntryB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x08\n\x06source\"\xee\x01\n\x11HumanReviewStatus\x12\x42\n\x05state\x18\x01 \x01(\x0e\x32\x33.google.cloud.documentai.v1.HumanReviewStatus.State\x12\x15\n\rstate_message\x18\x02 \x01(\t\x12\x1e\n\x16human_review_operation\x18\x03 \x01(\t\"^\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07SKIPPED\x10\x01\x12\x15\n\x11VALIDATION_PASSED\x10\x02\x12\x0f\n\x0bIN_PROGRESS\x10\x03\x12\t\n\x05\x45RROR\x10\x04\"\x95\x01\n\x0fProcessResponse\x12\x36\n\x08\x64ocument\x18\x01 \x01(\x0b\x32$.google.cloud.documentai.v1.Document\x12J\n\x13human_review_status\x18\x03 \x01(\x0b\x32-.google.cloud.documentai.v1.HumanReviewStatus\"\xb1\x03\n\x13\x42\x61tchProcessRequest\x12\x17\n\x04name\x18\x01 \x01(\tB\t\xe0\x41\x02\xfa\x41\x03\n\x01*\x12N\n\x0finput_documents\x18\x05 \x01(\x0b\x32\x35.google.cloud.documentai.v1.BatchDocumentsInputConfig\x12P\n\x16\x64ocument_output_config\x18\x06 \x01(\x0b\x32\x30.google.cloud.documentai.v1.DocumentOutputConfig\x12\x19\n\x11skip_human_review\x18\x04 \x01(\x08\x12\x43\n\x0fprocess_options\x18\x07 \x01(\x0b\x32*.google.cloud.documentai.v1.ProcessOptions\x12P\n\x06labels\x18\t \x03(\x0b\x32;.google.cloud.documentai.v1.BatchProcessRequest.LabelsEntryB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x16\n\x14\x42\x61tchProcessResponse\"\xff\x04\n\x14\x42\x61tchProcessMetadata\x12\x45\n\x05state\x18\x01 \x01(\x0e\x32\x36.google.cloud.documentai.v1.BatchProcessMetadata.State\x12\x15\n\rstate_message\x18\x02 \x01(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12m\n\x1bindividual_process_statuses\x18\x05 \x03(\x0b\x32H.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus\x1a\xc3\x01\n\x17IndividualProcessStatus\x12\x18\n\x10input_gcs_source\x18\x01 \x01(\t\x12\"\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\x12\x1e\n\x16output_gcs_destination\x18\x03 \x01(\t\x12J\n\x13human_review_status\x18\x05 \x01(\x0b\x32-.google.cloud.documentai.v1.HumanReviewStatus\"r\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07WAITING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\x0e\n\nCANCELLING\x10\x04\x12\r\n\tCANCELLED\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\"]\n\x1a\x46\x65tchProcessorTypesRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'documentai.googleapis.com/ProcessorType\"a\n\x1b\x46\x65tchProcessorTypesResponse\x12\x42\n\x0fprocessor_types\x18\x01 \x03(\x0b\x32).google.cloud.documentai.v1.ProcessorType\"\x83\x01\n\x19ListProcessorTypesRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'documentai.googleapis.com/ProcessorType\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"y\n\x1aListProcessorTypesResponse\x12\x42\n\x0fprocessor_types\x18\x01 \x03(\x0b\x32).google.cloud.documentai.v1.ProcessorType\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"{\n\x15ListProcessorsRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#documentai.googleapis.com/Processor\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"l\n\x16ListProcessorsResponse\x12\x39\n\nprocessors\x18\x01 \x03(\x0b\x32%.google.cloud.documentai.v1.Processor\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"X\n\x17GetProcessorTypeRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'documentai.googleapis.com/ProcessorType\"P\n\x13GetProcessorRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\"^\n\x1aGetProcessorVersionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"\x89\x01\n\x1cListProcessorVersionsRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*documentai.googleapis.com/ProcessorVersion\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x82\x01\n\x1dListProcessorVersionsResponse\x12H\n\x12processor_versions\x18\x01 \x03(\x0b\x32,.google.cloud.documentai.v1.ProcessorVersion\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"a\n\x1d\x44\x65leteProcessorVersionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"n\n\x1e\x44\x65leteProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"a\n\x1d\x44\x65ployProcessorVersionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\" \n\x1e\x44\x65ployProcessorVersionResponse\"n\n\x1e\x44\x65ployProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"c\n\x1fUndeployProcessorVersionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"\"\n UndeployProcessorVersionResponse\"p\n UndeployProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"\x94\x01\n\x16\x43reateProcessorRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#documentai.googleapis.com/Processor\x12=\n\tprocessor\x18\x02 \x01(\x0b\x32%.google.cloud.documentai.v1.ProcessorB\x03\xe0\x41\x02\"S\n\x16\x44\x65leteProcessorRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\"g\n\x17\x44\x65leteProcessorMetadata\x12L\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"S\n\x16\x45nableProcessorRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\"\x19\n\x17\x45nableProcessorResponse\"g\n\x17\x45nableProcessorMetadata\x12L\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"T\n\x17\x44isableProcessorRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\"\x1a\n\x18\x44isableProcessorResponse\"h\n\x18\x44isableProcessorMetadata\x12L\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"\xba\x01\n!SetDefaultProcessorVersionRequest\x12>\n\tprocessor\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\x12U\n\x19\x64\x65\x66\x61ult_processor_version\x18\x02 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"$\n\"SetDefaultProcessorVersionResponse\"r\n\"SetDefaultProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"\xc0\x07\n\x1cTrainProcessorVersionRequest\x12\x86\x01\n\"custom_document_extraction_options\x18\x05 \x01(\x0b\x32X.google.cloud.documentai.v1.TrainProcessorVersionRequest.CustomDocumentExtractionOptionsH\x00\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\x12L\n\x11processor_version\x18\x02 \x01(\x0b\x32,.google.cloud.documentai.v1.ProcessorVersionB\x03\xe0\x41\x02\x12H\n\x0f\x64ocument_schema\x18\n \x01(\x0b\x32*.google.cloud.documentai.v1.DocumentSchemaB\x03\xe0\x41\x01\x12[\n\ninput_data\x18\x04 \x01(\x0b\x32\x42.google.cloud.documentai.v1.TrainProcessorVersionRequest.InputDataB\x03\xe0\x41\x01\x12#\n\x16\x62\x61se_processor_version\x18\x08 \x01(\tB\x03\xe0\x41\x01\x1a\xad\x01\n\tInputData\x12Q\n\x12training_documents\x18\x03 \x01(\x0b\x32\x35.google.cloud.documentai.v1.BatchDocumentsInputConfig\x12M\n\x0etest_documents\x18\x04 \x01(\x0b\x32\x35.google.cloud.documentai.v1.BatchDocumentsInputConfig\x1a\xfc\x01\n\x1f\x43ustomDocumentExtractionOptions\x12\x80\x01\n\x0ftraining_method\x18\x03 \x01(\x0e\x32g.google.cloud.documentai.v1.TrainProcessorVersionRequest.CustomDocumentExtractionOptions.TrainingMethod\"V\n\x0eTrainingMethod\x12\x1f\n\x1bTRAINING_METHOD_UNSPECIFIED\x10\x00\x12\x0f\n\x0bMODEL_BASED\x10\x01\x12\x12\n\x0eTEMPLATE_BASED\x10\x02\x42\x11\n\x0fprocessor_flags\":\n\x1dTrainProcessorVersionResponse\x12\x19\n\x11processor_version\x18\x01 \x01(\t\"\xf7\x03\n\x1dTrainProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\x12p\n\x1btraining_dataset_validation\x18\x02 \x01(\x0b\x32K.google.cloud.documentai.v1.TrainProcessorVersionMetadata.DatasetValidation\x12l\n\x17test_dataset_validation\x18\x03 \x01(\x0b\x32K.google.cloud.documentai.v1.TrainProcessorVersionMetadata.DatasetValidation\x1a\xa7\x01\n\x11\x44\x61tasetValidation\x12\x1c\n\x14\x64ocument_error_count\x18\x03 \x01(\x05\x12\x1b\n\x13\x64\x61taset_error_count\x18\x04 \x01(\x05\x12+\n\x0f\x64ocument_errors\x18\x01 \x03(\x0b\x32\x12.google.rpc.Status\x12*\n\x0e\x64\x61taset_errors\x18\x02 \x03(\x0b\x32\x12.google.rpc.Status\"\x8e\x03\n\x15ReviewDocumentRequest\x12?\n\x0finline_document\x18\x04 \x01(\x0b\x32$.google.cloud.documentai.v1.DocumentH\x00\x12P\n\x13human_review_config\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+documentai.googleapis.com/HumanReviewConfig\x12 \n\x18\x65nable_schema_validation\x18\x03 \x01(\x08\x12L\n\x08priority\x18\x05 \x01(\x0e\x32:.google.cloud.documentai.v1.ReviewDocumentRequest.Priority\x12\x43\n\x0f\x64ocument_schema\x18\x06 \x01(\x0b\x32*.google.cloud.documentai.v1.DocumentSchema\"#\n\x08Priority\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x00\x12\n\n\x06URGENT\x10\x01\x42\x08\n\x06source\"\xd1\x01\n\x16ReviewDocumentResponse\x12\x17\n\x0fgcs_destination\x18\x01 \x01(\t\x12G\n\x05state\x18\x02 \x01(\x0e\x32\x38.google.cloud.documentai.v1.ReviewDocumentResponse.State\x12\x18\n\x10rejection_reason\x18\x03 \x01(\t\";\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08REJECTED\x10\x01\x12\r\n\tSUCCEEDED\x10\x02\"\x84\x01\n\x1fReviewDocumentOperationMetadata\x12L\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\x12\x13\n\x0bquestion_id\x18\x06 \x01(\t\"\xca\x01\n\x1f\x45valuateProcessorVersionRequest\x12M\n\x11processor_version\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\x12X\n\x14\x65valuation_documents\x18\x03 \x01(\x0b\x32\x35.google.cloud.documentai.v1.BatchDocumentsInputConfigB\x03\xe0\x41\x01\"p\n EvaluateProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"6\n EvaluateProcessorVersionResponse\x12\x12\n\nevaluation\x18\x02 \x01(\t\"R\n\x14GetEvaluationRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$documentai.googleapis.com/Evaluation\"\x83\x01\n\x16ListEvaluationsRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"o\n\x17ListEvaluationsResponse\x12;\n\x0b\x65valuations\x18\x01 \x03(\x0b\x32&.google.cloud.documentai.v1.Evaluation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\x9c*\n\x18\x44ocumentProcessorService\x12\x87\x02\n\x0fProcessDocument\x12*.google.cloud.documentai.v1.ProcessRequest\x1a+.google.cloud.documentai.v1.ProcessResponse\"\x9a\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\x8c\x01\"6/v1/{name=projects/*/locations/*/processors/*}:process:\x01*ZO\"J/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}:process:\x01*\x12\xbd\x02\n\x15\x42\x61tchProcessDocuments\x12/.google.cloud.documentai.v1.BatchProcessRequest\x1a\x1d.google.longrunning.Operation\"\xd3\x01\xca\x41,\n\x14\x42\x61tchProcessResponse\x12\x14\x42\x61tchProcessMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x96\x01\";/v1/{name=projects/*/locations/*/processors/*}:batchProcess:\x01*ZT\"O/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}:batchProcess:\x01*\x12\xd0\x01\n\x13\x46\x65tchProcessorTypes\x12\x36.google.cloud.documentai.v1.FetchProcessorTypesRequest\x1a\x37.google.cloud.documentai.v1.FetchProcessorTypesResponse\"H\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x39\x12\x37/v1/{parent=projects/*/locations/*}:fetchProcessorTypes\x12\xc8\x01\n\x12ListProcessorTypes\x12\x35.google.cloud.documentai.v1.ListProcessorTypesRequest\x1a\x36.google.cloud.documentai.v1.ListProcessorTypesResponse\"C\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{parent=projects/*/locations/*}/processorTypes\x12\xb5\x01\n\x10GetProcessorType\x12\x33.google.cloud.documentai.v1.GetProcessorTypeRequest\x1a).google.cloud.documentai.v1.ProcessorType\"A\xda\x41\x04name\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{name=projects/*/locations/*/processorTypes/*}\x12\xb8\x01\n\x0eListProcessors\x12\x31.google.cloud.documentai.v1.ListProcessorsRequest\x1a\x32.google.cloud.documentai.v1.ListProcessorsResponse\"?\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x30\x12./v1/{parent=projects/*/locations/*}/processors\x12\xa5\x01\n\x0cGetProcessor\x12/.google.cloud.documentai.v1.GetProcessorRequest\x1a%.google.cloud.documentai.v1.Processor\"=\xda\x41\x04name\x82\xd3\xe4\x93\x02\x30\x12./v1/{name=projects/*/locations/*/processors/*}\x12\xa2\x02\n\x15TrainProcessorVersion\x12\x38.google.cloud.documentai.v1.TrainProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xaf\x01\xca\x41>\n\x1dTrainProcessorVersionResponse\x12\x1dTrainProcessorVersionMetadata\xda\x41\x18parent,processor_version\x82\xd3\xe4\x93\x02M\"H/v1/{parent=projects/*/locations/*/processors/*}/processorVersions:train:\x01*\x12\xce\x01\n\x13GetProcessorVersion\x12\x36.google.cloud.documentai.v1.GetProcessorVersionRequest\x1a,.google.cloud.documentai.v1.ProcessorVersion\"Q\xda\x41\x04name\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}\x12\xe1\x01\n\x15ListProcessorVersions\x12\x38.google.cloud.documentai.v1.ListProcessorVersionsRequest\x1a\x39.google.cloud.documentai.v1.ListProcessorVersionsResponse\"S\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/{parent=projects/*/locations/*/processors/*}/processorVersions\x12\x80\x02\n\x16\x44\x65leteProcessorVersion\x12\x39.google.cloud.documentai.v1.DeleteProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\x8b\x01\xca\x41\x37\n\x15google.protobuf.Empty\x12\x1e\x44\x65leteProcessorVersionMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x44*B/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}\x12\x93\x02\n\x16\x44\x65ployProcessorVersion\x12\x39.google.cloud.documentai.v1.DeployProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\x9e\x01\xca\x41@\n\x1e\x44\x65ployProcessorVersionResponse\x12\x1e\x44\x65ployProcessorVersionMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02N\"I/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}:deploy:\x01*\x12\x9d\x02\n\x18UndeployProcessorVersion\x12;.google.cloud.documentai.v1.UndeployProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xa4\x01\xca\x41\x44\n UndeployProcessorVersionResponse\x12 UndeployProcessorVersionMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02P\"K/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}:undeploy:\x01*\x12\xc2\x01\n\x0f\x43reateProcessor\x12\x32.google.cloud.documentai.v1.CreateProcessorRequest\x1a%.google.cloud.documentai.v1.Processor\"T\xda\x41\x10parent,processor\x82\xd3\xe4\x93\x02;\"./v1/{parent=projects/*/locations/*}/processors:\tprocessor\x12\xd6\x01\n\x0f\x44\x65leteProcessor\x12\x32.google.cloud.documentai.v1.DeleteProcessorRequest\x1a\x1d.google.longrunning.Operation\"p\xca\x41\x30\n\x15google.protobuf.Empty\x12\x17\x44\x65leteProcessorMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x30*./v1/{name=projects/*/locations/*/processors/*}\x12\xdb\x01\n\x0f\x45nableProcessor\x12\x32.google.cloud.documentai.v1.EnableProcessorRequest\x1a\x1d.google.longrunning.Operation\"u\xca\x41\x32\n\x17\x45nableProcessorResponse\x12\x17\x45nableProcessorMetadata\x82\xd3\xe4\x93\x02:\"5/v1/{name=projects/*/locations/*/processors/*}:enable:\x01*\x12\xe0\x01\n\x10\x44isableProcessor\x12\x33.google.cloud.documentai.v1.DisableProcessorRequest\x1a\x1d.google.longrunning.Operation\"x\xca\x41\x34\n\x18\x44isableProcessorResponse\x12\x18\x44isableProcessorMetadata\x82\xd3\xe4\x93\x02;\"6/v1/{name=projects/*/locations/*/processors/*}:disable:\x01*\x12\xa1\x02\n\x1aSetDefaultProcessorVersion\x12=.google.cloud.documentai.v1.SetDefaultProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xa4\x01\xca\x41H\n\"SetDefaultProcessorVersionResponse\x12\"SetDefaultProcessorVersionMetadata\x82\xd3\xe4\x93\x02S\"N/v1/{processor=projects/*/locations/*/processors/*}:setDefaultProcessorVersion:\x01*\x12\xa0\x02\n\x0eReviewDocument\x12\x31.google.cloud.documentai.v1.ReviewDocumentRequest\x1a\x1d.google.longrunning.Operation\"\xbb\x01\xca\x41\x39\n\x16ReviewDocumentResponse\x12\x1fReviewDocumentOperationMetadata\xda\x41\x13human_review_config\x82\xd3\xe4\x93\x02\x63\"^/v1/{human_review_config=projects/*/locations/*/processors/*/humanReviewConfig}:reviewDocument:\x01*\x12\xc7\x02\n\x18\x45valuateProcessorVersion\x12;.google.cloud.documentai.v1.EvaluateProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xce\x01\xca\x41\x44\n EvaluateProcessorVersionResponse\x12 EvaluateProcessorVersionMetadata\xda\x41\x11processor_version\x82\xd3\xe4\x93\x02m\"h/v1/{processor_version=projects/*/locations/*/processors/*/processorVersions/*}:evaluateProcessorVersion:\x01*\x12\xca\x01\n\rGetEvaluation\x12\x30.google.cloud.documentai.v1.GetEvaluationRequest\x1a&.google.cloud.documentai.v1.Evaluation\"_\xda\x41\x04name\x82\xd3\xe4\x93\x02R\x12P/v1/{name=projects/*/locations/*/processors/*/processorVersions/*/evaluations/*}\x12\xdd\x01\n\x0fListEvaluations\x12\x32.google.cloud.documentai.v1.ListEvaluationsRequest\x1a\x33.google.cloud.documentai.v1.ListEvaluationsResponse\"a\xda\x41\x06parent\x82\xd3\xe4\x93\x02R\x12P/v1/{parent=projects/*/locations/*/processors/*/processorVersions/*}/evaluations\x1aM\xca\x41\x19\x64ocumentai.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xaa\x03\n\x1e\x63om.google.cloud.documentai.v1B\x1a\x44ocumentAiProcessorServiceP\x01Z>cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb\xaa\x02\x1aGoogle.Cloud.DocumentAI.V1\xca\x02\x1aGoogle\\Cloud\\DocumentAI\\V1\xea\x02\x1dGoogle::Cloud::DocumentAI::V1\xea\x41\x7f\n+documentai.googleapis.com/HumanReviewConfig\x12Pprojects/{project}/locations/{location}/processors/{processor}/humanReviewConfig\xea\x41M\n\"documentai.googleapis.com/Location\x12\'projects/{project}/locations/{location}b\x06proto3"
|
25
|
+
descriptor_data = "\n;google/cloud/documentai/v1/document_processor_service.proto\x12\x1agoogle.cloud.documentai.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a)google/cloud/documentai/v1/document.proto\x1a,google/cloud/documentai/v1/document_io.proto\x1a\x30google/cloud/documentai/v1/document_schema.proto\x1a+google/cloud/documentai/v1/evaluation.proto\x1a\x33google/cloud/documentai/v1/operation_metadata.proto\x1a*google/cloud/documentai/v1/processor.proto\x1a/google/cloud/documentai/v1/processor_type.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xe2\x02\n\x0eProcessOptions\x12\x65\n\x18individual_page_selector\x18\x05 \x01(\x0b\x32\x41.google.cloud.documentai.v1.ProcessOptions.IndividualPageSelectorH\x00\x12\x14\n\nfrom_start\x18\x06 \x01(\x05H\x00\x12\x12\n\x08\x66rom_end\x18\x07 \x01(\x05H\x00\x12\x39\n\nocr_config\x18\x01 \x01(\x0b\x32%.google.cloud.documentai.v1.OcrConfig\x12H\n\x0fschema_override\x18\x08 \x01(\x0b\x32*.google.cloud.documentai.v1.DocumentSchemaB\x03\xe0\x41\x01\x1a,\n\x16IndividualPageSelector\x12\x12\n\x05pages\x18\x01 \x03(\x05\x42\x03\xe0\x41\x01\x42\x0c\n\npage_range\"\x82\x04\n\x0eProcessRequest\x12?\n\x0finline_document\x18\x04 \x01(\x0b\x32$.google.cloud.documentai.v1.DocumentH\x00\x12?\n\x0craw_document\x18\x05 \x01(\x0b\x32\'.google.cloud.documentai.v1.RawDocumentH\x00\x12?\n\x0cgcs_document\x18\x08 \x01(\x0b\x32\'.google.cloud.documentai.v1.GcsDocumentH\x00\x12\x17\n\x04name\x18\x01 \x01(\tB\t\xe0\x41\x02\xfa\x41\x03\n\x01*\x12\x19\n\x11skip_human_review\x18\x03 \x01(\x08\x12.\n\nfield_mask\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x43\n\x0fprocess_options\x18\x07 \x01(\x0b\x32*.google.cloud.documentai.v1.ProcessOptions\x12K\n\x06labels\x18\n \x03(\x0b\x32\x36.google.cloud.documentai.v1.ProcessRequest.LabelsEntryB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x08\n\x06source\"\xee\x01\n\x11HumanReviewStatus\x12\x42\n\x05state\x18\x01 \x01(\x0e\x32\x33.google.cloud.documentai.v1.HumanReviewStatus.State\x12\x15\n\rstate_message\x18\x02 \x01(\t\x12\x1e\n\x16human_review_operation\x18\x03 \x01(\t\"^\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07SKIPPED\x10\x01\x12\x15\n\x11VALIDATION_PASSED\x10\x02\x12\x0f\n\x0bIN_PROGRESS\x10\x03\x12\t\n\x05\x45RROR\x10\x04\"\x95\x01\n\x0fProcessResponse\x12\x36\n\x08\x64ocument\x18\x01 \x01(\x0b\x32$.google.cloud.documentai.v1.Document\x12J\n\x13human_review_status\x18\x03 \x01(\x0b\x32-.google.cloud.documentai.v1.HumanReviewStatus\"\xb1\x03\n\x13\x42\x61tchProcessRequest\x12\x17\n\x04name\x18\x01 \x01(\tB\t\xe0\x41\x02\xfa\x41\x03\n\x01*\x12N\n\x0finput_documents\x18\x05 \x01(\x0b\x32\x35.google.cloud.documentai.v1.BatchDocumentsInputConfig\x12P\n\x16\x64ocument_output_config\x18\x06 \x01(\x0b\x32\x30.google.cloud.documentai.v1.DocumentOutputConfig\x12\x19\n\x11skip_human_review\x18\x04 \x01(\x08\x12\x43\n\x0fprocess_options\x18\x07 \x01(\x0b\x32*.google.cloud.documentai.v1.ProcessOptions\x12P\n\x06labels\x18\t \x03(\x0b\x32;.google.cloud.documentai.v1.BatchProcessRequest.LabelsEntryB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x16\n\x14\x42\x61tchProcessResponse\"\xff\x04\n\x14\x42\x61tchProcessMetadata\x12\x45\n\x05state\x18\x01 \x01(\x0e\x32\x36.google.cloud.documentai.v1.BatchProcessMetadata.State\x12\x15\n\rstate_message\x18\x02 \x01(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12m\n\x1bindividual_process_statuses\x18\x05 \x03(\x0b\x32H.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus\x1a\xc3\x01\n\x17IndividualProcessStatus\x12\x18\n\x10input_gcs_source\x18\x01 \x01(\t\x12\"\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\x12\x1e\n\x16output_gcs_destination\x18\x03 \x01(\t\x12J\n\x13human_review_status\x18\x05 \x01(\x0b\x32-.google.cloud.documentai.v1.HumanReviewStatus\"r\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07WAITING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\x0e\n\nCANCELLING\x10\x04\x12\r\n\tCANCELLED\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\"]\n\x1a\x46\x65tchProcessorTypesRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'documentai.googleapis.com/ProcessorType\"a\n\x1b\x46\x65tchProcessorTypesResponse\x12\x42\n\x0fprocessor_types\x18\x01 \x03(\x0b\x32).google.cloud.documentai.v1.ProcessorType\"\x83\x01\n\x19ListProcessorTypesRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'documentai.googleapis.com/ProcessorType\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"y\n\x1aListProcessorTypesResponse\x12\x42\n\x0fprocessor_types\x18\x01 \x03(\x0b\x32).google.cloud.documentai.v1.ProcessorType\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"{\n\x15ListProcessorsRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#documentai.googleapis.com/Processor\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"l\n\x16ListProcessorsResponse\x12\x39\n\nprocessors\x18\x01 \x03(\x0b\x32%.google.cloud.documentai.v1.Processor\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"X\n\x17GetProcessorTypeRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'documentai.googleapis.com/ProcessorType\"P\n\x13GetProcessorRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\"^\n\x1aGetProcessorVersionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"\x89\x01\n\x1cListProcessorVersionsRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*documentai.googleapis.com/ProcessorVersion\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x82\x01\n\x1dListProcessorVersionsResponse\x12H\n\x12processor_versions\x18\x01 \x03(\x0b\x32,.google.cloud.documentai.v1.ProcessorVersion\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"a\n\x1d\x44\x65leteProcessorVersionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"n\n\x1e\x44\x65leteProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"a\n\x1d\x44\x65ployProcessorVersionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\" \n\x1e\x44\x65ployProcessorVersionResponse\"n\n\x1e\x44\x65ployProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"c\n\x1fUndeployProcessorVersionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"\"\n UndeployProcessorVersionResponse\"p\n UndeployProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"\x94\x01\n\x16\x43reateProcessorRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#documentai.googleapis.com/Processor\x12=\n\tprocessor\x18\x02 \x01(\x0b\x32%.google.cloud.documentai.v1.ProcessorB\x03\xe0\x41\x02\"S\n\x16\x44\x65leteProcessorRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\"g\n\x17\x44\x65leteProcessorMetadata\x12L\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"S\n\x16\x45nableProcessorRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\"\x19\n\x17\x45nableProcessorResponse\"g\n\x17\x45nableProcessorMetadata\x12L\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"T\n\x17\x44isableProcessorRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\"\x1a\n\x18\x44isableProcessorResponse\"h\n\x18\x44isableProcessorMetadata\x12L\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"\xba\x01\n!SetDefaultProcessorVersionRequest\x12>\n\tprocessor\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\x12U\n\x19\x64\x65\x66\x61ult_processor_version\x18\x02 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"$\n\"SetDefaultProcessorVersionResponse\"r\n\"SetDefaultProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"\xa4\t\n\x1cTrainProcessorVersionRequest\x12\x86\x01\n\"custom_document_extraction_options\x18\x05 \x01(\x0b\x32X.google.cloud.documentai.v1.TrainProcessorVersionRequest.CustomDocumentExtractionOptionsH\x00\x12\x80\x01\n\x1f\x66oundation_model_tuning_options\x18\x0c \x01(\x0b\x32U.google.cloud.documentai.v1.TrainProcessorVersionRequest.FoundationModelTuningOptionsH\x00\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\x12L\n\x11processor_version\x18\x02 \x01(\x0b\x32,.google.cloud.documentai.v1.ProcessorVersionB\x03\xe0\x41\x02\x12H\n\x0f\x64ocument_schema\x18\n \x01(\x0b\x32*.google.cloud.documentai.v1.DocumentSchemaB\x03\xe0\x41\x01\x12[\n\ninput_data\x18\x04 \x01(\x0b\x32\x42.google.cloud.documentai.v1.TrainProcessorVersionRequest.InputDataB\x03\xe0\x41\x01\x12#\n\x16\x62\x61se_processor_version\x18\x08 \x01(\tB\x03\xe0\x41\x01\x1a\xad\x01\n\tInputData\x12Q\n\x12training_documents\x18\x03 \x01(\x0b\x32\x35.google.cloud.documentai.v1.BatchDocumentsInputConfig\x12M\n\x0etest_documents\x18\x04 \x01(\x0b\x32\x35.google.cloud.documentai.v1.BatchDocumentsInputConfig\x1a\xfc\x01\n\x1f\x43ustomDocumentExtractionOptions\x12\x80\x01\n\x0ftraining_method\x18\x03 \x01(\x0e\x32g.google.cloud.documentai.v1.TrainProcessorVersionRequest.CustomDocumentExtractionOptions.TrainingMethod\"V\n\x0eTrainingMethod\x12\x1f\n\x1bTRAINING_METHOD_UNSPECIFIED\x10\x00\x12\x0f\n\x0bMODEL_BASED\x10\x01\x12\x12\n\x0eTEMPLATE_BASED\x10\x02\x1a_\n\x1c\x46oundationModelTuningOptions\x12\x18\n\x0btrain_steps\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12%\n\x18learning_rate_multiplier\x18\x03 \x01(\x02\x42\x03\xe0\x41\x01\x42\x11\n\x0fprocessor_flags\":\n\x1dTrainProcessorVersionResponse\x12\x19\n\x11processor_version\x18\x01 \x01(\t\"\xf7\x03\n\x1dTrainProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\x12p\n\x1btraining_dataset_validation\x18\x02 \x01(\x0b\x32K.google.cloud.documentai.v1.TrainProcessorVersionMetadata.DatasetValidation\x12l\n\x17test_dataset_validation\x18\x03 \x01(\x0b\x32K.google.cloud.documentai.v1.TrainProcessorVersionMetadata.DatasetValidation\x1a\xa7\x01\n\x11\x44\x61tasetValidation\x12\x1c\n\x14\x64ocument_error_count\x18\x03 \x01(\x05\x12\x1b\n\x13\x64\x61taset_error_count\x18\x04 \x01(\x05\x12+\n\x0f\x64ocument_errors\x18\x01 \x03(\x0b\x32\x12.google.rpc.Status\x12*\n\x0e\x64\x61taset_errors\x18\x02 \x03(\x0b\x32\x12.google.rpc.Status\"\x8e\x03\n\x15ReviewDocumentRequest\x12?\n\x0finline_document\x18\x04 \x01(\x0b\x32$.google.cloud.documentai.v1.DocumentH\x00\x12P\n\x13human_review_config\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+documentai.googleapis.com/HumanReviewConfig\x12 \n\x18\x65nable_schema_validation\x18\x03 \x01(\x08\x12L\n\x08priority\x18\x05 \x01(\x0e\x32:.google.cloud.documentai.v1.ReviewDocumentRequest.Priority\x12\x43\n\x0f\x64ocument_schema\x18\x06 \x01(\x0b\x32*.google.cloud.documentai.v1.DocumentSchema\"#\n\x08Priority\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x00\x12\n\n\x06URGENT\x10\x01\x42\x08\n\x06source\"\xd1\x01\n\x16ReviewDocumentResponse\x12\x17\n\x0fgcs_destination\x18\x01 \x01(\t\x12G\n\x05state\x18\x02 \x01(\x0e\x32\x38.google.cloud.documentai.v1.ReviewDocumentResponse.State\x12\x18\n\x10rejection_reason\x18\x03 \x01(\t\";\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08REJECTED\x10\x01\x12\r\n\tSUCCEEDED\x10\x02\"\x84\x01\n\x1fReviewDocumentOperationMetadata\x12L\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\x12\x13\n\x0bquestion_id\x18\x06 \x01(\t\"\xca\x01\n\x1f\x45valuateProcessorVersionRequest\x12M\n\x11processor_version\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\x12X\n\x14\x65valuation_documents\x18\x03 \x01(\x0b\x32\x35.google.cloud.documentai.v1.BatchDocumentsInputConfigB\x03\xe0\x41\x01\"p\n EvaluateProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"6\n EvaluateProcessorVersionResponse\x12\x12\n\nevaluation\x18\x02 \x01(\t\"R\n\x14GetEvaluationRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$documentai.googleapis.com/Evaluation\"\x83\x01\n\x16ListEvaluationsRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"o\n\x17ListEvaluationsResponse\x12;\n\x0b\x65valuations\x18\x01 \x03(\x0b\x32&.google.cloud.documentai.v1.Evaluation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\x9c*\n\x18\x44ocumentProcessorService\x12\x87\x02\n\x0fProcessDocument\x12*.google.cloud.documentai.v1.ProcessRequest\x1a+.google.cloud.documentai.v1.ProcessResponse\"\x9a\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\x8c\x01\"6/v1/{name=projects/*/locations/*/processors/*}:process:\x01*ZO\"J/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}:process:\x01*\x12\xbd\x02\n\x15\x42\x61tchProcessDocuments\x12/.google.cloud.documentai.v1.BatchProcessRequest\x1a\x1d.google.longrunning.Operation\"\xd3\x01\xca\x41,\n\x14\x42\x61tchProcessResponse\x12\x14\x42\x61tchProcessMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x96\x01\";/v1/{name=projects/*/locations/*/processors/*}:batchProcess:\x01*ZT\"O/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}:batchProcess:\x01*\x12\xd0\x01\n\x13\x46\x65tchProcessorTypes\x12\x36.google.cloud.documentai.v1.FetchProcessorTypesRequest\x1a\x37.google.cloud.documentai.v1.FetchProcessorTypesResponse\"H\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x39\x12\x37/v1/{parent=projects/*/locations/*}:fetchProcessorTypes\x12\xc8\x01\n\x12ListProcessorTypes\x12\x35.google.cloud.documentai.v1.ListProcessorTypesRequest\x1a\x36.google.cloud.documentai.v1.ListProcessorTypesResponse\"C\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{parent=projects/*/locations/*}/processorTypes\x12\xb5\x01\n\x10GetProcessorType\x12\x33.google.cloud.documentai.v1.GetProcessorTypeRequest\x1a).google.cloud.documentai.v1.ProcessorType\"A\xda\x41\x04name\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{name=projects/*/locations/*/processorTypes/*}\x12\xb8\x01\n\x0eListProcessors\x12\x31.google.cloud.documentai.v1.ListProcessorsRequest\x1a\x32.google.cloud.documentai.v1.ListProcessorsResponse\"?\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x30\x12./v1/{parent=projects/*/locations/*}/processors\x12\xa5\x01\n\x0cGetProcessor\x12/.google.cloud.documentai.v1.GetProcessorRequest\x1a%.google.cloud.documentai.v1.Processor\"=\xda\x41\x04name\x82\xd3\xe4\x93\x02\x30\x12./v1/{name=projects/*/locations/*/processors/*}\x12\xa2\x02\n\x15TrainProcessorVersion\x12\x38.google.cloud.documentai.v1.TrainProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xaf\x01\xca\x41>\n\x1dTrainProcessorVersionResponse\x12\x1dTrainProcessorVersionMetadata\xda\x41\x18parent,processor_version\x82\xd3\xe4\x93\x02M\"H/v1/{parent=projects/*/locations/*/processors/*}/processorVersions:train:\x01*\x12\xce\x01\n\x13GetProcessorVersion\x12\x36.google.cloud.documentai.v1.GetProcessorVersionRequest\x1a,.google.cloud.documentai.v1.ProcessorVersion\"Q\xda\x41\x04name\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}\x12\xe1\x01\n\x15ListProcessorVersions\x12\x38.google.cloud.documentai.v1.ListProcessorVersionsRequest\x1a\x39.google.cloud.documentai.v1.ListProcessorVersionsResponse\"S\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/{parent=projects/*/locations/*/processors/*}/processorVersions\x12\x80\x02\n\x16\x44\x65leteProcessorVersion\x12\x39.google.cloud.documentai.v1.DeleteProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\x8b\x01\xca\x41\x37\n\x15google.protobuf.Empty\x12\x1e\x44\x65leteProcessorVersionMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x44*B/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}\x12\x93\x02\n\x16\x44\x65ployProcessorVersion\x12\x39.google.cloud.documentai.v1.DeployProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\x9e\x01\xca\x41@\n\x1e\x44\x65ployProcessorVersionResponse\x12\x1e\x44\x65ployProcessorVersionMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02N\"I/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}:deploy:\x01*\x12\x9d\x02\n\x18UndeployProcessorVersion\x12;.google.cloud.documentai.v1.UndeployProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xa4\x01\xca\x41\x44\n UndeployProcessorVersionResponse\x12 UndeployProcessorVersionMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02P\"K/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}:undeploy:\x01*\x12\xc2\x01\n\x0f\x43reateProcessor\x12\x32.google.cloud.documentai.v1.CreateProcessorRequest\x1a%.google.cloud.documentai.v1.Processor\"T\xda\x41\x10parent,processor\x82\xd3\xe4\x93\x02;\"./v1/{parent=projects/*/locations/*}/processors:\tprocessor\x12\xd6\x01\n\x0f\x44\x65leteProcessor\x12\x32.google.cloud.documentai.v1.DeleteProcessorRequest\x1a\x1d.google.longrunning.Operation\"p\xca\x41\x30\n\x15google.protobuf.Empty\x12\x17\x44\x65leteProcessorMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x30*./v1/{name=projects/*/locations/*/processors/*}\x12\xdb\x01\n\x0f\x45nableProcessor\x12\x32.google.cloud.documentai.v1.EnableProcessorRequest\x1a\x1d.google.longrunning.Operation\"u\xca\x41\x32\n\x17\x45nableProcessorResponse\x12\x17\x45nableProcessorMetadata\x82\xd3\xe4\x93\x02:\"5/v1/{name=projects/*/locations/*/processors/*}:enable:\x01*\x12\xe0\x01\n\x10\x44isableProcessor\x12\x33.google.cloud.documentai.v1.DisableProcessorRequest\x1a\x1d.google.longrunning.Operation\"x\xca\x41\x34\n\x18\x44isableProcessorResponse\x12\x18\x44isableProcessorMetadata\x82\xd3\xe4\x93\x02;\"6/v1/{name=projects/*/locations/*/processors/*}:disable:\x01*\x12\xa1\x02\n\x1aSetDefaultProcessorVersion\x12=.google.cloud.documentai.v1.SetDefaultProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xa4\x01\xca\x41H\n\"SetDefaultProcessorVersionResponse\x12\"SetDefaultProcessorVersionMetadata\x82\xd3\xe4\x93\x02S\"N/v1/{processor=projects/*/locations/*/processors/*}:setDefaultProcessorVersion:\x01*\x12\xa0\x02\n\x0eReviewDocument\x12\x31.google.cloud.documentai.v1.ReviewDocumentRequest\x1a\x1d.google.longrunning.Operation\"\xbb\x01\xca\x41\x39\n\x16ReviewDocumentResponse\x12\x1fReviewDocumentOperationMetadata\xda\x41\x13human_review_config\x82\xd3\xe4\x93\x02\x63\"^/v1/{human_review_config=projects/*/locations/*/processors/*/humanReviewConfig}:reviewDocument:\x01*\x12\xc7\x02\n\x18\x45valuateProcessorVersion\x12;.google.cloud.documentai.v1.EvaluateProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xce\x01\xca\x41\x44\n EvaluateProcessorVersionResponse\x12 EvaluateProcessorVersionMetadata\xda\x41\x11processor_version\x82\xd3\xe4\x93\x02m\"h/v1/{processor_version=projects/*/locations/*/processors/*/processorVersions/*}:evaluateProcessorVersion:\x01*\x12\xca\x01\n\rGetEvaluation\x12\x30.google.cloud.documentai.v1.GetEvaluationRequest\x1a&.google.cloud.documentai.v1.Evaluation\"_\xda\x41\x04name\x82\xd3\xe4\x93\x02R\x12P/v1/{name=projects/*/locations/*/processors/*/processorVersions/*/evaluations/*}\x12\xdd\x01\n\x0fListEvaluations\x12\x32.google.cloud.documentai.v1.ListEvaluationsRequest\x1a\x33.google.cloud.documentai.v1.ListEvaluationsResponse\"a\xda\x41\x06parent\x82\xd3\xe4\x93\x02R\x12P/v1/{parent=projects/*/locations/*/processors/*/processorVersions/*}/evaluations\x1aM\xca\x41\x19\x64ocumentai.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xaa\x03\n\x1e\x63om.google.cloud.documentai.v1B\x1a\x44ocumentAiProcessorServiceP\x01Z>cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb\xaa\x02\x1aGoogle.Cloud.DocumentAI.V1\xca\x02\x1aGoogle\\Cloud\\DocumentAI\\V1\xea\x02\x1dGoogle::Cloud::DocumentAI::V1\xea\x41\x7f\n+documentai.googleapis.com/HumanReviewConfig\x12Pprojects/{project}/locations/{location}/processors/{processor}/humanReviewConfig\xea\x41M\n\"documentai.googleapis.com/Location\x12\'projects/{project}/locations/{location}b\x06proto3"
|
26
26
|
|
27
27
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
28
28
|
|
@@ -108,6 +108,7 @@ module Google
|
|
108
108
|
TrainProcessorVersionRequest::InputData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.TrainProcessorVersionRequest.InputData").msgclass
|
109
109
|
TrainProcessorVersionRequest::CustomDocumentExtractionOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.TrainProcessorVersionRequest.CustomDocumentExtractionOptions").msgclass
|
110
110
|
TrainProcessorVersionRequest::CustomDocumentExtractionOptions::TrainingMethod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.TrainProcessorVersionRequest.CustomDocumentExtractionOptions.TrainingMethod").enummodule
|
111
|
+
TrainProcessorVersionRequest::FoundationModelTuningOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.TrainProcessorVersionRequest.FoundationModelTuningOptions").msgclass
|
111
112
|
TrainProcessorVersionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.TrainProcessorVersionResponse").msgclass
|
112
113
|
TrainProcessorVersionMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.TrainProcessorVersionMetadata").msgclass
|
113
114
|
TrainProcessorVersionMetadata::DatasetValidation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.TrainProcessorVersionMetadata.DatasetValidation").msgclass
|
@@ -41,8 +41,7 @@ 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::V1::BatchProcessRequest, ::Google::Longrunning::Operation
|
44
|
-
# Fetches processor types. Note that we don't use
|
45
|
-
# [ListProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.ListProcessorTypes]
|
44
|
+
# Fetches processor types. Note that we don't use [ListProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.ListProcessorTypes]
|
46
45
|
# here, because it isn't paginated.
|
47
46
|
rpc :FetchProcessorTypes, ::Google::Cloud::DocumentAI::V1::FetchProcessorTypesRequest, ::Google::Cloud::DocumentAI::V1::FetchProcessorTypesResponse
|
48
47
|
# Lists the processor types that exist.
|
@@ -68,9 +67,8 @@ module Google
|
|
68
67
|
rpc :DeployProcessorVersion, ::Google::Cloud::DocumentAI::V1::DeployProcessorVersionRequest, ::Google::Longrunning::Operation
|
69
68
|
# Undeploys the processor version.
|
70
69
|
rpc :UndeployProcessorVersion, ::Google::Cloud::DocumentAI::V1::UndeployProcessorVersionRequest, ::Google::Longrunning::Operation
|
71
|
-
# Creates a processor from the
|
72
|
-
#
|
73
|
-
# processor will be at `ENABLED` state by default after its creation.
|
70
|
+
# Creates a processor from the [ProcessorType][google.cloud.documentai.v1.ProcessorType] provided.
|
71
|
+
# The processor will be at `ENABLED` state by default after its creation.
|
74
72
|
rpc :CreateProcessor, ::Google::Cloud::DocumentAI::V1::CreateProcessorRequest, ::Google::Cloud::DocumentAI::V1::Processor
|
75
73
|
# Deletes the processor, unloads all deployed model artifacts if it was
|
76
74
|
# enabled and then deletes all artifacts associated with this processor.
|
@@ -79,10 +77,8 @@ module Google
|
|
79
77
|
rpc :EnableProcessor, ::Google::Cloud::DocumentAI::V1::EnableProcessorRequest, ::Google::Longrunning::Operation
|
80
78
|
# Disables a processor
|
81
79
|
rpc :DisableProcessor, ::Google::Cloud::DocumentAI::V1::DisableProcessorRequest, ::Google::Longrunning::Operation
|
82
|
-
# Set the default (active) version of a
|
83
|
-
# [
|
84
|
-
# [ProcessDocument][google.cloud.documentai.v1.DocumentProcessorService.ProcessDocument]
|
85
|
-
# and
|
80
|
+
# Set the default (active) version of a [Processor][google.cloud.documentai.v1.Processor] that will be used in
|
81
|
+
# [ProcessDocument][google.cloud.documentai.v1.DocumentProcessorService.ProcessDocument] and
|
86
82
|
# [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments].
|
87
83
|
rpc :SetDefaultProcessorVersion, ::Google::Cloud::DocumentAI::V1::SetDefaultProcessorVersionRequest, ::Google::Longrunning::Operation
|
88
84
|
# Send a document for Human Review. The input document should be processed by
|