google-cloud-document_ai-v1beta3 0.35.0 → 0.36.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/google/cloud/document_ai/v1beta3/document_processor_service/client.rb +56 -24
- data/lib/google/cloud/document_ai/v1beta3/document_processor_service/operations.rb +13 -5
- data/lib/google/cloud/document_ai/v1beta3/document_processor_service/rest/client.rb +56 -24
- data/lib/google/cloud/document_ai/v1beta3/document_processor_service/rest/operations.rb +11 -4
- data/lib/google/cloud/document_ai/v1beta3/document_service/client.rb +22 -7
- data/lib/google/cloud/document_ai/v1beta3/document_service/operations.rb +13 -5
- data/lib/google/cloud/document_ai/v1beta3/document_service/rest/client.rb +22 -7
- data/lib/google/cloud/document_ai/v1beta3/document_service/rest/operations.rb +11 -4
- data/lib/google/cloud/document_ai/v1beta3/version.rb +1 -1
- data/lib/google/cloud/documentai/v1beta3/dataset_pb.rb +1 -1
- data/lib/google/cloud/documentai/v1beta3/document_processor_service_pb.rb +1 -1
- data/lib/google/cloud/documentai/v1beta3/document_processor_service_services_pb.rb +4 -0
- data/lib/google/cloud/documentai/v1beta3/document_service_services_pb.rb +5 -0
- data/lib/google/cloud/documentai/v1beta3/processor_pb.rb +5 -1
- data/proto_docs/google/api/client.rb +14 -10
- data/proto_docs/google/api/resource.rb +7 -2
- data/proto_docs/google/cloud/documentai/v1beta3/dataset.rb +6 -0
- data/proto_docs/google/cloud/documentai/v1beta3/document.rb +1 -3
- data/proto_docs/google/cloud/documentai/v1beta3/document_processor_service.rb +3 -0
- data/proto_docs/google/cloud/documentai/v1beta3/processor.rb +67 -0
- metadata +2 -2
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# Service to call Cloud DocumentAI to manage document collection (dataset).
|
34
34
|
#
|
35
35
|
class Client
|
36
|
+
# @private
|
37
|
+
API_VERSION = ""
|
38
|
+
|
36
39
|
# @private
|
37
40
|
DEFAULT_ENDPOINT_TEMPLATE = "documentai.$UNIVERSE_DOMAIN$"
|
38
41
|
|
@@ -185,6 +188,11 @@ module Google
|
|
185
188
|
|
186
189
|
##
|
187
190
|
# Updates metadata associated with a dataset.
|
191
|
+
# Note that this method requires the
|
192
|
+
# `documentai.googleapis.com/datasets.update` permission on the project,
|
193
|
+
# which is highly privileged. A user or service account with this permission
|
194
|
+
# can create new processors that can interact with any gcs bucket in your
|
195
|
+
# project.
|
188
196
|
#
|
189
197
|
# @overload update_dataset(request, options = nil)
|
190
198
|
# Pass arguments to `update_dataset` via a request object, either of type
|
@@ -247,12 +255,13 @@ module Google
|
|
247
255
|
# Customize the options with defaults
|
248
256
|
call_metadata = @config.rpcs.update_dataset.metadata.to_h
|
249
257
|
|
250
|
-
# Set x-goog-api-client
|
258
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
251
259
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
252
260
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
253
261
|
gapic_version: ::Google::Cloud::DocumentAI::V1beta3::VERSION,
|
254
262
|
transports_version_send: [:rest]
|
255
263
|
|
264
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
256
265
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
257
266
|
|
258
267
|
options.apply_defaults timeout: @config.rpcs.update_dataset.timeout,
|
@@ -338,12 +347,13 @@ module Google
|
|
338
347
|
# Customize the options with defaults
|
339
348
|
call_metadata = @config.rpcs.import_documents.metadata.to_h
|
340
349
|
|
341
|
-
# Set x-goog-api-client
|
350
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
342
351
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
343
352
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
344
353
|
gapic_version: ::Google::Cloud::DocumentAI::V1beta3::VERSION,
|
345
354
|
transports_version_send: [:rest]
|
346
355
|
|
356
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
347
357
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
348
358
|
|
349
359
|
options.apply_defaults timeout: @config.rpcs.import_documents.timeout,
|
@@ -427,12 +437,13 @@ module Google
|
|
427
437
|
# Customize the options with defaults
|
428
438
|
call_metadata = @config.rpcs.get_document.metadata.to_h
|
429
439
|
|
430
|
-
# Set x-goog-api-client
|
440
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
431
441
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
432
442
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
433
443
|
gapic_version: ::Google::Cloud::DocumentAI::V1beta3::VERSION,
|
434
444
|
transports_version_send: [:rest]
|
435
445
|
|
446
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
436
447
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
437
448
|
|
438
449
|
options.apply_defaults timeout: @config.rpcs.get_document.timeout,
|
@@ -558,12 +569,13 @@ module Google
|
|
558
569
|
# Customize the options with defaults
|
559
570
|
call_metadata = @config.rpcs.list_documents.metadata.to_h
|
560
571
|
|
561
|
-
# Set x-goog-api-client
|
572
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
562
573
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
563
574
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
564
575
|
gapic_version: ::Google::Cloud::DocumentAI::V1beta3::VERSION,
|
565
576
|
transports_version_send: [:rest]
|
566
577
|
|
578
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
567
579
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
568
580
|
|
569
581
|
options.apply_defaults timeout: @config.rpcs.list_documents.timeout,
|
@@ -651,12 +663,13 @@ module Google
|
|
651
663
|
# Customize the options with defaults
|
652
664
|
call_metadata = @config.rpcs.batch_delete_documents.metadata.to_h
|
653
665
|
|
654
|
-
# Set x-goog-api-client
|
666
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
655
667
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
656
668
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
657
669
|
gapic_version: ::Google::Cloud::DocumentAI::V1beta3::VERSION,
|
658
670
|
transports_version_send: [:rest]
|
659
671
|
|
672
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
660
673
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
661
674
|
|
662
675
|
options.apply_defaults timeout: @config.rpcs.batch_delete_documents.timeout,
|
@@ -734,12 +747,13 @@ module Google
|
|
734
747
|
# Customize the options with defaults
|
735
748
|
call_metadata = @config.rpcs.get_dataset_schema.metadata.to_h
|
736
749
|
|
737
|
-
# Set x-goog-api-client
|
750
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
738
751
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
739
752
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
740
753
|
gapic_version: ::Google::Cloud::DocumentAI::V1beta3::VERSION,
|
741
754
|
transports_version_send: [:rest]
|
742
755
|
|
756
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
743
757
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
744
758
|
|
745
759
|
options.apply_defaults timeout: @config.rpcs.get_dataset_schema.timeout,
|
@@ -815,12 +829,13 @@ module Google
|
|
815
829
|
# Customize the options with defaults
|
816
830
|
call_metadata = @config.rpcs.update_dataset_schema.metadata.to_h
|
817
831
|
|
818
|
-
# Set x-goog-api-client
|
832
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
819
833
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
820
834
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
821
835
|
gapic_version: ::Google::Cloud::DocumentAI::V1beta3::VERSION,
|
822
836
|
transports_version_send: [:rest]
|
823
837
|
|
838
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
824
839
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
825
840
|
|
826
841
|
options.apply_defaults timeout: @config.rpcs.update_dataset_schema.timeout,
|
@@ -26,6 +26,9 @@ module Google
|
|
26
26
|
module Rest
|
27
27
|
# Service that implements Longrunning Operations API.
|
28
28
|
class Operations
|
29
|
+
# @private
|
30
|
+
API_VERSION = ""
|
31
|
+
|
29
32
|
# @private
|
30
33
|
DEFAULT_ENDPOINT_TEMPLATE = "documentai.$UNIVERSE_DOMAIN$"
|
31
34
|
|
@@ -181,12 +184,13 @@ module Google
|
|
181
184
|
# Customize the options with defaults
|
182
185
|
call_metadata = @config.rpcs.list_operations.metadata.to_h
|
183
186
|
|
184
|
-
# Set x-goog-api-client
|
187
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
185
188
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
186
189
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
187
190
|
gapic_version: ::Google::Cloud::DocumentAI::V1beta3::VERSION,
|
188
191
|
transports_version_send: [:rest]
|
189
192
|
|
193
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
190
194
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
191
195
|
|
192
196
|
options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
|
@@ -269,12 +273,13 @@ module Google
|
|
269
273
|
# Customize the options with defaults
|
270
274
|
call_metadata = @config.rpcs.get_operation.metadata.to_h
|
271
275
|
|
272
|
-
# Set x-goog-api-client
|
276
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
273
277
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
274
278
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
275
279
|
gapic_version: ::Google::Cloud::DocumentAI::V1beta3::VERSION,
|
276
280
|
transports_version_send: [:rest]
|
277
281
|
|
282
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
278
283
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
279
284
|
|
280
285
|
options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
|
@@ -351,12 +356,13 @@ module Google
|
|
351
356
|
# Customize the options with defaults
|
352
357
|
call_metadata = @config.rpcs.delete_operation.metadata.to_h
|
353
358
|
|
354
|
-
# Set x-goog-api-client
|
359
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
355
360
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
356
361
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
357
362
|
gapic_version: ::Google::Cloud::DocumentAI::V1beta3::VERSION,
|
358
363
|
transports_version_send: [:rest]
|
359
364
|
|
365
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
360
366
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
361
367
|
|
362
368
|
options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
|
@@ -438,12 +444,13 @@ module Google
|
|
438
444
|
# Customize the options with defaults
|
439
445
|
call_metadata = @config.rpcs.cancel_operation.metadata.to_h
|
440
446
|
|
441
|
-
# Set x-goog-api-client
|
447
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
442
448
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
443
449
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
444
450
|
gapic_version: ::Google::Cloud::DocumentAI::V1beta3::VERSION,
|
445
451
|
transports_version_send: [:rest]
|
446
452
|
|
453
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
447
454
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
448
455
|
|
449
456
|
options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
|
@@ -11,7 +11,7 @@ require 'google/cloud/documentai/v1beta3/document_io_pb'
|
|
11
11
|
require 'google/cloud/documentai/v1beta3/document_schema_pb'
|
12
12
|
|
13
13
|
|
14
|
-
descriptor_data = "\n-google/cloud/documentai/v1beta3/dataset.proto\x12\x1fgoogle.cloud.documentai.v1beta3\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a.google/cloud/documentai/v1beta3/document.proto\x1a\x31google/cloud/documentai/v1beta3/document_io.proto\x1a\x35google/cloud/documentai/v1beta3/document_schema.proto\"\
|
14
|
+
descriptor_data = "\n-google/cloud/documentai/v1beta3/dataset.proto\x12\x1fgoogle.cloud.documentai.v1beta3\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a.google/cloud/documentai/v1beta3/document.proto\x1a\x31google/cloud/documentai/v1beta3/document_io.proto\x1a\x35google/cloud/documentai/v1beta3/document_schema.proto\"\x9c\x08\n\x07\x44\x61taset\x12\\\n\x12gcs_managed_config\x18\x03 \x01(\x0b\x32\x39.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfigB\x03\xe0\x41\x01H\x00\x12l\n\x19\x64ocument_warehouse_config\x18\x05 \x01(\x0b\x32@.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfigB\x05\x18\x01\xe0\x41\x01H\x00\x12h\n\x18unmanaged_dataset_config\x18\x06 \x01(\x0b\x32?.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfigB\x03\xe0\x41\x01H\x00\x12\x66\n\x17spanner_indexing_config\x18\x04 \x01(\x0b\x32>.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfigB\x03\xe0\x41\x01H\x01\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x42\n\x05state\x18\x02 \x01(\x0e\x32..google.cloud.documentai.v1beta3.Dataset.StateB\x03\xe0\x41\x02\x12\x1a\n\rsatisfies_pzs\x18\x08 \x01(\x08\x42\x03\xe0\x41\x03\x12\x1a\n\rsatisfies_pzi\x18\t \x01(\x08\x42\x03\xe0\x41\x03\x1aW\n\x10GCSManagedConfig\x12\x43\n\ngcs_prefix\x18\x01 \x01(\x0b\x32*.google.cloud.documentai.v1beta3.GcsPrefixB\x03\xe0\x41\x02\x1ar\n\x17\x44ocumentWarehouseConfig\x12\x17\n\ncollection\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12>\n\x06schema\x18\x02 \x01(\tB.\xe0\x41\x03\xfa\x41(\n&contentwarehouse.googleapis.com/Schema\x1a\x18\n\x16UnmanagedDatasetConfig\x1a\x17\n\x15SpannerIndexingConfig\"T\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x11\n\rUNINITIALIZED\x10\x01\x12\x10\n\x0cINITIALIZING\x10\x02\x12\x0f\n\x0bINITIALIZED\x10\x03:n\xea\x41k\n!documentai.googleapis.com/Dataset\x12\x46projects/{project}/locations/{location}/processors/{processor}/datasetB\x10\n\x0estorage_sourceB\x11\n\x0findexing_source\"\x86\x03\n\nDocumentId\x12^\n\x12gcs_managed_doc_id\x18\x01 \x01(\x0b\x32@.google.cloud.documentai.v1beta3.DocumentId.GCSManagedDocumentIdH\x00\x12[\n\x10unmanaged_doc_id\x18\x04 \x01(\x0b\x32?.google.cloud.documentai.v1beta3.DocumentId.UnmanagedDocumentIdH\x00\x12\x42\n\x0crevision_ref\x18\x03 \x01(\x0b\x32,.google.cloud.documentai.v1beta3.RevisionRef\x1a\x43\n\x14GCSManagedDocumentId\x12\x14\n\x07gcs_uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\tcw_doc_id\x18\x02 \x01(\tB\x02\x18\x01\x1a*\n\x13UnmanagedDocumentId\x12\x13\n\x06\x64oc_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x42\x06\n\x04type\"\xf1\x01\n\rDatasetSchema\x12\x0c\n\x04name\x18\x01 \x01(\t\x12M\n\x0f\x64ocument_schema\x18\x03 \x01(\x0b\x32/.google.cloud.documentai.v1beta3.DocumentSchemaB\x03\xe0\x41\x01:\x82\x01\xea\x41\x7f\n\'documentai.googleapis.com/DatasetSchema\x12Tprojects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema\"\x87\x02\n\x15\x42\x61tchDatasetDocuments\x12o\n\x17individual_document_ids\x18\x01 \x01(\x0b\x32L.google.cloud.documentai.v1beta3.BatchDatasetDocuments.IndividualDocumentIdsH\x00\x12\x10\n\x06\x66ilter\x18\x02 \x01(\tH\x00\x1a_\n\x15IndividualDocumentIds\x12\x46\n\x0c\x64ocument_ids\x18\x01 \x03(\x0b\x32+.google.cloud.documentai.v1beta3.DocumentIdB\x03\xe0\x41\x02\x42\n\n\x08\x63riteriaB\xc8\x02\n#com.google.cloud.documentai.v1beta3B\x0c\x44\x61tasetProtoP\x01ZCcloud.google.com/go/documentai/apiv1beta3/documentaipb;documentaipb\xaa\x02\x1fGoogle.Cloud.DocumentAI.V1Beta3\xca\x02\x1fGoogle\\Cloud\\DocumentAI\\V1beta3\xea\x02\"Google::Cloud::DocumentAI::V1beta3\xea\x41\x62\n&contentwarehouse.googleapis.com/Schema\x12\x38projects/{project}/locations/{location}/schemas/{schema}b\x06proto3"
|
15
15
|
|
16
16
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
17
17
|
|
@@ -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/v1beta3/document_processor_service.proto\x12\x1fgoogle.cloud.documentai.v1beta3\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/v1beta3/document.proto\x1a\x31google/cloud/documentai/v1beta3/document_io.proto\x1a\x35google/cloud/documentai/v1beta3/document_schema.proto\x1a\x30google/cloud/documentai/v1beta3/evaluation.proto\x1a\x38google/cloud/documentai/v1beta3/operation_metadata.proto\x1a/google/cloud/documentai/v1beta3/processor.proto\x1a\x34google/cloud/documentai/v1beta3/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\"\xf4\x05\n\x0eProcessOptions\x12j\n\x18individual_page_selector\x18\x05 \x01(\x0b\x32\x46.google.cloud.documentai.v1beta3.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>\n\nocr_config\x18\x01 \x01(\x0b\x32*.google.cloud.documentai.v1beta3.OcrConfig\x12X\n\rlayout_config\x18\t \x01(\x0b\x32<.google.cloud.documentai.v1beta3.ProcessOptions.LayoutConfigB\x03\xe0\x41\x01\x12M\n\x0fschema_override\x18\x08 \x01(\x0b\x32/.google.cloud.documentai.v1beta3.DocumentSchemaB\x03\xe0\x41\x01\x1a\xa6\x02\n\x0cLayoutConfig\x12i\n\x0f\x63hunking_config\x18\x01 \x01(\x0b\x32K.google.cloud.documentai.v1beta3.ProcessOptions.LayoutConfig.ChunkingConfigB\x03\xe0\x41\x01\x1a\xaa\x01\n\x0e\x43hunkingConfig\x12\x17\n\nchunk_size\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12&\n\x19include_ancestor_headings\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12)\n\x1csemantic_chunking_group_size\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12,\n\x1f\x62reakpoint_percentile_threshold\x18\x04 \x01(\x05\x42\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\"\xdc\x04\n\x0eProcessRequest\x12\x44\n\x0finline_document\x18\x04 \x01(\x0b\x32).google.cloud.documentai.v1beta3.DocumentH\x00\x12\x44\n\x0craw_document\x18\x05 \x01(\x0b\x32,.google.cloud.documentai.v1beta3.RawDocumentH\x00\x12\x44\n\x0cgcs_document\x18\x08 \x01(\x0b\x32,.google.cloud.documentai.v1beta3.GcsDocumentH\x00\x12\x17\n\x04name\x18\x01 \x01(\tB\t\xe0\x41\x02\xfa\x41\x03\n\x01*\x12?\n\x08\x64ocument\x18\x02 \x01(\x0b\x32).google.cloud.documentai.v1beta3.DocumentB\x02\x18\x01\x12\x19\n\x11skip_human_review\x18\x03 \x01(\x08\x12.\n\nfield_mask\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12H\n\x0fprocess_options\x18\x07 \x01(\x0b\x32/.google.cloud.documentai.v1beta3.ProcessOptions\x12P\n\x06labels\x18\n \x03(\x0b\x32;.google.cloud.documentai.v1beta3.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\"\xf3\x01\n\x11HumanReviewStatus\x12G\n\x05state\x18\x01 \x01(\x0e\x32\x38.google.cloud.documentai.v1beta3.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\"\xc3\x01\n\x0fProcessResponse\x12;\n\x08\x64ocument\x18\x01 \x01(\x0b\x32).google.cloud.documentai.v1beta3.Document\x12\"\n\x16human_review_operation\x18\x02 \x01(\tB\x02\x18\x01\x12O\n\x13human_review_status\x18\x03 \x01(\x0b\x32\x32.google.cloud.documentai.v1beta3.HumanReviewStatus\"\xfb\x05\n\x13\x42\x61tchProcessRequest\x12\x17\n\x04name\x18\x01 \x01(\tB\t\xe0\x41\x02\xfa\x41\x03\n\x01*\x12`\n\rinput_configs\x18\x02 \x03(\x0b\x32\x45.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfigB\x02\x18\x01\x12\x61\n\routput_config\x18\x03 \x01(\x0b\x32\x46.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfigB\x02\x18\x01\x12S\n\x0finput_documents\x18\x05 \x01(\x0b\x32:.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig\x12U\n\x16\x64ocument_output_config\x18\x06 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta3.DocumentOutputConfig\x12\x19\n\x11skip_human_review\x18\x04 \x01(\x08\x12H\n\x0fprocess_options\x18\x07 \x01(\x0b\x32/.google.cloud.documentai.v1beta3.ProcessOptions\x12U\n\x06labels\x18\t \x03(\x0b\x32@.google.cloud.documentai.v1beta3.BatchProcessRequest.LabelsEntryB\x03\xe0\x41\x01\x1a=\n\x10\x42\x61tchInputConfig\x12\x12\n\ngcs_source\x18\x01 \x01(\t\x12\x11\n\tmime_type\x18\x02 \x01(\t:\x02\x18\x01\x1a\x30\n\x11\x42\x61tchOutputConfig\x12\x17\n\x0fgcs_destination\x18\x01 \x01(\t:\x02\x18\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\"\xb2\x05\n\x14\x42\x61tchProcessMetadata\x12J\n\x05state\x18\x01 \x01(\x0e\x32;.google.cloud.documentai.v1beta3.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\x12r\n\x1bindividual_process_statuses\x18\x05 \x03(\x0b\x32M.google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus\x1a\xec\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\x12\"\n\x16human_review_operation\x18\x04 \x01(\tB\x02\x18\x01\x12O\n\x13human_review_status\x18\x05 \x01(\x0b\x32\x32.google.cloud.documentai.v1beta3.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\"f\n\x1b\x46\x65tchProcessorTypesResponse\x12G\n\x0fprocessor_types\x18\x01 \x03(\x0b\x32..google.cloud.documentai.v1beta3.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\"~\n\x1aListProcessorTypesResponse\x12G\n\x0fprocessor_types\x18\x01 \x03(\x0b\x32..google.cloud.documentai.v1beta3.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\"q\n\x16ListProcessorsResponse\x12>\n\nprocessors\x18\x01 \x03(\x0b\x32*.google.cloud.documentai.v1beta3.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\"\x87\x01\n\x1dListProcessorVersionsResponse\x12M\n\x12processor_versions\x18\x01 \x03(\x0b\x32\x31.google.cloud.documentai.v1beta3.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\"s\n\x1e\x44\x65leteProcessorVersionMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.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\"s\n\x1e\x44\x65ployProcessorVersionMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata\"c\n\x1fUndeployProcessorVersionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"\"\n UndeployProcessorVersionResponse\"u\n UndeployProcessorVersionMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata\"\x99\x01\n\x16\x43reateProcessorRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#documentai.googleapis.com/Processor\x12\x42\n\tprocessor\x18\x02 \x01(\x0b\x32*.google.cloud.documentai.v1beta3.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\"l\n\x17\x44\x65leteProcessorMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.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\"l\n\x17\x45nableProcessorMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.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\"m\n\x18\x44isableProcessorMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.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\"w\n\"SetDefaultProcessorVersionMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata\"\xcc\t\n\x1cTrainProcessorVersionRequest\x12\x8b\x01\n\"custom_document_extraction_options\x18\x05 \x01(\x0b\x32].google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptionsH\x00\x12\x85\x01\n\x1f\x66oundation_model_tuning_options\x18\x0c \x01(\x0b\x32Z.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.FoundationModelTuningOptionsH\x00\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\x12Q\n\x11processor_version\x18\x02 \x01(\x0b\x32\x31.google.cloud.documentai.v1beta3.ProcessorVersionB\x03\xe0\x41\x02\x12M\n\x0f\x64ocument_schema\x18\n \x01(\x0b\x32/.google.cloud.documentai.v1beta3.DocumentSchemaB\x03\xe0\x41\x01\x12`\n\ninput_data\x18\x04 \x01(\x0b\x32G.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.InputDataB\x03\xe0\x41\x01\x12#\n\x16\x62\x61se_processor_version\x18\x08 \x01(\tB\x03\xe0\x41\x01\x1a\xb7\x01\n\tInputData\x12V\n\x12training_documents\x18\x03 \x01(\x0b\x32:.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig\x12R\n\x0etest_documents\x18\x04 \x01(\x0b\x32:.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig\x1a\x81\x02\n\x1f\x43ustomDocumentExtractionOptions\x12\x85\x01\n\x0ftraining_method\x18\x03 \x01(\x0e\x32l.google.cloud.documentai.v1beta3.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\"\x86\x04\n\x1dTrainProcessorVersionMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata\x12u\n\x1btraining_dataset_validation\x18\x02 \x01(\x0b\x32P.google.cloud.documentai.v1beta3.TrainProcessorVersionMetadata.DatasetValidation\x12q\n\x17test_dataset_validation\x18\x03 \x01(\x0b\x32P.google.cloud.documentai.v1beta3.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\"\xde\x03\n\x15ReviewDocumentRequest\x12\x44\n\x0finline_document\x18\x04 \x01(\x0b\x32).google.cloud.documentai.v1beta3.DocumentH\x00\x12P\n\x13human_review_config\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+documentai.googleapis.com/HumanReviewConfig\x12?\n\x08\x64ocument\x18\x02 \x01(\x0b\x32).google.cloud.documentai.v1beta3.DocumentB\x02\x18\x01\x12 \n\x18\x65nable_schema_validation\x18\x03 \x01(\x08\x12Q\n\x08priority\x18\x05 \x01(\x0e\x32?.google.cloud.documentai.v1beta3.ReviewDocumentRequest.Priority\x12H\n\x0f\x64ocument_schema\x18\x06 \x01(\x0b\x32/.google.cloud.documentai.v1beta3.DocumentSchema\"#\n\x08Priority\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x00\x12\n\n\x06URGENT\x10\x01\x42\x08\n\x06source\"\xd6\x01\n\x16ReviewDocumentResponse\x12\x17\n\x0fgcs_destination\x18\x01 \x01(\t\x12L\n\x05state\x18\x02 \x01(\x0e\x32=.google.cloud.documentai.v1beta3.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\"\xc0\x03\n\x1fReviewDocumentOperationMetadata\x12U\n\x05state\x18\x01 \x01(\x0e\x32\x46.google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata.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\x12Q\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata\x12\x13\n\x0bquestion_id\x18\x06 \x01(\t\"e\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\x0e\n\nCANCELLING\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\r\n\tCANCELLED\x10\x05\"\xcf\x01\n\x1f\x45valuateProcessorVersionRequest\x12M\n\x11processor_version\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\x12]\n\x14\x65valuation_documents\x18\x03 \x01(\x0b\x32:.google.cloud.documentai.v1beta3.BatchDocumentsInputConfigB\x03\xe0\x41\x01\"u\n EvaluateProcessorVersionMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.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\"t\n\x17ListEvaluationsResponse\x12@\n\x0b\x65valuations\x18\x01 \x03(\x0b\x32+.google.cloud.documentai.v1beta3.Evaluation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb0\x03\n\x1dImportProcessorVersionRequest\x12S\n\x18processor_version_source\x18\x02 \x01(\tB/\xfa\x41,\n*documentai.googleapis.com/ProcessorVersionH\x00\x12\x8a\x01\n!external_processor_version_source\x18\x03 \x01(\x0b\x32].google.cloud.documentai.v1beta3.ImportProcessorVersionRequest.ExternalProcessorVersionSourceH\x00\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*documentai.googleapis.com/ProcessorVersion\x1a_\n\x1e\x45xternalProcessorVersionSource\x12\x1e\n\x11processor_version\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1d\n\x10service_endpoint\x18\x02 \x01(\tB\x03\xe0\x41\x01\x42\x08\n\x06source\"l\n\x1eImportProcessorVersionResponse\x12J\n\x11processor_version\x18\x01 \x01(\tB/\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"s\n\x1eImportProcessorVersionMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata2\xeb.\n\x18\x44ocumentProcessorService\x12\x9b\x02\n\x0fProcessDocument\x12/.google.cloud.documentai.v1beta3.ProcessRequest\x1a\x30.google.cloud.documentai.v1beta3.ProcessResponse\"\xa4\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\x96\x01\";/v1beta3/{name=projects/*/locations/*/processors/*}:process:\x01*ZT\"O/v1beta3/{name=projects/*/locations/*/processors/*/processorVersions/*}:process:\x01*\x12\xcc\x02\n\x15\x42\x61tchProcessDocuments\x12\x34.google.cloud.documentai.v1beta3.BatchProcessRequest\x1a\x1d.google.longrunning.Operation\"\xdd\x01\xca\x41,\n\x14\x42\x61tchProcessResponse\x12\x14\x42\x61tchProcessMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\xa0\x01\"@/v1beta3/{name=projects/*/locations/*/processors/*}:batchProcess:\x01*ZY\"T/v1beta3/{name=projects/*/locations/*/processors/*/processorVersions/*}:batchProcess:\x01*\x12\xdf\x01\n\x13\x46\x65tchProcessorTypes\x12;.google.cloud.documentai.v1beta3.FetchProcessorTypesRequest\x1a<.google.cloud.documentai.v1beta3.FetchProcessorTypesResponse\"M\xda\x41\x06parent\x82\xd3\xe4\x93\x02>\x12</v1beta3/{parent=projects/*/locations/*}:fetchProcessorTypes\x12\xd7\x01\n\x12ListProcessorTypes\x12:.google.cloud.documentai.v1beta3.ListProcessorTypesRequest\x1a;.google.cloud.documentai.v1beta3.ListProcessorTypesResponse\"H\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x39\x12\x37/v1beta3/{parent=projects/*/locations/*}/processorTypes\x12\xc4\x01\n\x10GetProcessorType\x12\x38.google.cloud.documentai.v1beta3.GetProcessorTypeRequest\x1a..google.cloud.documentai.v1beta3.ProcessorType\"F\xda\x41\x04name\x82\xd3\xe4\x93\x02\x39\x12\x37/v1beta3/{name=projects/*/locations/*/processorTypes/*}\x12\xc7\x01\n\x0eListProcessors\x12\x36.google.cloud.documentai.v1beta3.ListProcessorsRequest\x1a\x37.google.cloud.documentai.v1beta3.ListProcessorsResponse\"D\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x35\x12\x33/v1beta3/{parent=projects/*/locations/*}/processors\x12\xb4\x01\n\x0cGetProcessor\x12\x34.google.cloud.documentai.v1beta3.GetProcessorRequest\x1a*.google.cloud.documentai.v1beta3.Processor\"B\xda\x41\x04name\x82\xd3\xe4\x93\x02\x35\x12\x33/v1beta3/{name=projects/*/locations/*/processors/*}\x12\xac\x02\n\x15TrainProcessorVersion\x12=.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xb4\x01\xca\x41>\n\x1dTrainProcessorVersionResponse\x12\x1dTrainProcessorVersionMetadata\xda\x41\x18parent,processor_version\x82\xd3\xe4\x93\x02R\"M/v1beta3/{parent=projects/*/locations/*/processors/*}/processorVersions:train:\x01*\x12\xdd\x01\n\x13GetProcessorVersion\x12;.google.cloud.documentai.v1beta3.GetProcessorVersionRequest\x1a\x31.google.cloud.documentai.v1beta3.ProcessorVersion\"V\xda\x41\x04name\x82\xd3\xe4\x93\x02I\x12G/v1beta3/{name=projects/*/locations/*/processors/*/processorVersions/*}\x12\xf0\x01\n\x15ListProcessorVersions\x12=.google.cloud.documentai.v1beta3.ListProcessorVersionsRequest\x1a>.google.cloud.documentai.v1beta3.ListProcessorVersionsResponse\"X\xda\x41\x06parent\x82\xd3\xe4\x93\x02I\x12G/v1beta3/{parent=projects/*/locations/*/processors/*}/processorVersions\x12\x8a\x02\n\x16\x44\x65leteProcessorVersion\x12>.google.cloud.documentai.v1beta3.DeleteProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\x90\x01\xca\x41\x37\n\x15google.protobuf.Empty\x12\x1e\x44\x65leteProcessorVersionMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02I*G/v1beta3/{name=projects/*/locations/*/processors/*/processorVersions/*}\x12\x9d\x02\n\x16\x44\x65ployProcessorVersion\x12>.google.cloud.documentai.v1beta3.DeployProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xa3\x01\xca\x41@\n\x1e\x44\x65ployProcessorVersionResponse\x12\x1e\x44\x65ployProcessorVersionMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02S\"N/v1beta3/{name=projects/*/locations/*/processors/*/processorVersions/*}:deploy:\x01*\x12\xa7\x02\n\x18UndeployProcessorVersion\x12@.google.cloud.documentai.v1beta3.UndeployProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xa9\x01\xca\x41\x44\n UndeployProcessorVersionResponse\x12 UndeployProcessorVersionMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02U\"P/v1beta3/{name=projects/*/locations/*/processors/*/processorVersions/*}:undeploy:\x01*\x12\xd1\x01\n\x0f\x43reateProcessor\x12\x37.google.cloud.documentai.v1beta3.CreateProcessorRequest\x1a*.google.cloud.documentai.v1beta3.Processor\"Y\xda\x41\x10parent,processor\x82\xd3\xe4\x93\x02@\"3/v1beta3/{parent=projects/*/locations/*}/processors:\tprocessor\x12\xe0\x01\n\x0f\x44\x65leteProcessor\x12\x37.google.cloud.documentai.v1beta3.DeleteProcessorRequest\x1a\x1d.google.longrunning.Operation\"u\xca\x41\x30\n\x15google.protobuf.Empty\x12\x17\x44\x65leteProcessorMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x35*3/v1beta3/{name=projects/*/locations/*/processors/*}\x12\xe5\x01\n\x0f\x45nableProcessor\x12\x37.google.cloud.documentai.v1beta3.EnableProcessorRequest\x1a\x1d.google.longrunning.Operation\"z\xca\x41\x32\n\x17\x45nableProcessorResponse\x12\x17\x45nableProcessorMetadata\x82\xd3\xe4\x93\x02?\":/v1beta3/{name=projects/*/locations/*/processors/*}:enable:\x01*\x12\xea\x01\n\x10\x44isableProcessor\x12\x38.google.cloud.documentai.v1beta3.DisableProcessorRequest\x1a\x1d.google.longrunning.Operation\"}\xca\x41\x34\n\x18\x44isableProcessorResponse\x12\x18\x44isableProcessorMetadata\x82\xd3\xe4\x93\x02@\";/v1beta3/{name=projects/*/locations/*/processors/*}:disable:\x01*\x12\xab\x02\n\x1aSetDefaultProcessorVersion\x12\x42.google.cloud.documentai.v1beta3.SetDefaultProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xa9\x01\xca\x41H\n\"SetDefaultProcessorVersionResponse\x12\"SetDefaultProcessorVersionMetadata\x82\xd3\xe4\x93\x02X\"S/v1beta3/{processor=projects/*/locations/*/processors/*}:setDefaultProcessorVersion:\x01*\x12\xaa\x02\n\x0eReviewDocument\x12\x36.google.cloud.documentai.v1beta3.ReviewDocumentRequest\x1a\x1d.google.longrunning.Operation\"\xc0\x01\xca\x41\x39\n\x16ReviewDocumentResponse\x12\x1fReviewDocumentOperationMetadata\xda\x41\x13human_review_config\x82\xd3\xe4\x93\x02h\"c/v1beta3/{human_review_config=projects/*/locations/*/processors/*/humanReviewConfig}:reviewDocument:\x01*\x12\xd1\x02\n\x18\x45valuateProcessorVersion\x12@.google.cloud.documentai.v1beta3.EvaluateProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xd3\x01\xca\x41\x44\n EvaluateProcessorVersionResponse\x12 EvaluateProcessorVersionMetadata\xda\x41\x11processor_version\x82\xd3\xe4\x93\x02r\"m/v1beta3/{processor_version=projects/*/locations/*/processors/*/processorVersions/*}:evaluateProcessorVersion:\x01*\x12\xd9\x01\n\rGetEvaluation\x12\x35.google.cloud.documentai.v1beta3.GetEvaluationRequest\x1a+.google.cloud.documentai.v1beta3.Evaluation\"d\xda\x41\x04name\x82\xd3\xe4\x93\x02W\x12U/v1beta3/{name=projects/*/locations/*/processors/*/processorVersions/*/evaluations/*}\x12\xec\x01\n\x0fListEvaluations\x12\x37.google.cloud.documentai.v1beta3.ListEvaluationsRequest\x1a\x38.google.cloud.documentai.v1beta3.ListEvaluationsResponse\"f\xda\x41\x06parent\x82\xd3\xe4\x93\x02W\x12U/v1beta3/{parent=projects/*/locations/*/processors/*/processorVersions/*}/evaluations\x12\xaf\x02\n\x16ImportProcessorVersion\x12>.google.cloud.documentai.v1beta3.ImportProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xb5\x01\xca\x41@\n\x1eImportProcessorVersionResponse\x12\x1eImportProcessorVersionMetadata\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x63\"^/v1beta3/{parent=projects/*/locations/*/processors/*}/processorVersions:importProcessorVersion:\x01*\x1aM\xca\x41\x19\x64ocumentai.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xc3\x03\n#com.google.cloud.documentai.v1beta3B\x1a\x44ocumentAiProcessorServiceP\x01ZCcloud.google.com/go/documentai/apiv1beta3/documentaipb;documentaipb\xaa\x02\x1fGoogle.Cloud.DocumentAI.V1Beta3\xca\x02\x1fGoogle\\Cloud\\DocumentAI\\V1beta3\xea\x02\"Google::Cloud::DocumentAI::V1beta3\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/v1beta3/document_processor_service.proto\x12\x1fgoogle.cloud.documentai.v1beta3\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/v1beta3/document.proto\x1a\x31google/cloud/documentai/v1beta3/document_io.proto\x1a\x35google/cloud/documentai/v1beta3/document_schema.proto\x1a\x30google/cloud/documentai/v1beta3/evaluation.proto\x1a\x38google/cloud/documentai/v1beta3/operation_metadata.proto\x1a/google/cloud/documentai/v1beta3/processor.proto\x1a\x34google/cloud/documentai/v1beta3/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\"\xf4\x05\n\x0eProcessOptions\x12j\n\x18individual_page_selector\x18\x05 \x01(\x0b\x32\x46.google.cloud.documentai.v1beta3.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>\n\nocr_config\x18\x01 \x01(\x0b\x32*.google.cloud.documentai.v1beta3.OcrConfig\x12X\n\rlayout_config\x18\t \x01(\x0b\x32<.google.cloud.documentai.v1beta3.ProcessOptions.LayoutConfigB\x03\xe0\x41\x01\x12M\n\x0fschema_override\x18\x08 \x01(\x0b\x32/.google.cloud.documentai.v1beta3.DocumentSchemaB\x03\xe0\x41\x01\x1a\xa6\x02\n\x0cLayoutConfig\x12i\n\x0f\x63hunking_config\x18\x01 \x01(\x0b\x32K.google.cloud.documentai.v1beta3.ProcessOptions.LayoutConfig.ChunkingConfigB\x03\xe0\x41\x01\x1a\xaa\x01\n\x0e\x43hunkingConfig\x12\x17\n\nchunk_size\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12&\n\x19include_ancestor_headings\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12)\n\x1csemantic_chunking_group_size\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12,\n\x1f\x62reakpoint_percentile_threshold\x18\x04 \x01(\x05\x42\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\"\xf9\x04\n\x0eProcessRequest\x12\x44\n\x0finline_document\x18\x04 \x01(\x0b\x32).google.cloud.documentai.v1beta3.DocumentH\x00\x12\x44\n\x0craw_document\x18\x05 \x01(\x0b\x32,.google.cloud.documentai.v1beta3.RawDocumentH\x00\x12\x44\n\x0cgcs_document\x18\x08 \x01(\x0b\x32,.google.cloud.documentai.v1beta3.GcsDocumentH\x00\x12\x17\n\x04name\x18\x01 \x01(\tB\t\xe0\x41\x02\xfa\x41\x03\n\x01*\x12?\n\x08\x64ocument\x18\x02 \x01(\x0b\x32).google.cloud.documentai.v1beta3.DocumentB\x02\x18\x01\x12\x19\n\x11skip_human_review\x18\x03 \x01(\x08\x12.\n\nfield_mask\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12H\n\x0fprocess_options\x18\x07 \x01(\x0b\x32/.google.cloud.documentai.v1beta3.ProcessOptions\x12P\n\x06labels\x18\n \x03(\x0b\x32;.google.cloud.documentai.v1beta3.ProcessRequest.LabelsEntryB\x03\xe0\x41\x01\x12\x1b\n\x0eimageless_mode\x18\x0b \x01(\x08\x42\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\"\xf3\x01\n\x11HumanReviewStatus\x12G\n\x05state\x18\x01 \x01(\x0e\x32\x38.google.cloud.documentai.v1beta3.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\"\xc3\x01\n\x0fProcessResponse\x12;\n\x08\x64ocument\x18\x01 \x01(\x0b\x32).google.cloud.documentai.v1beta3.Document\x12\"\n\x16human_review_operation\x18\x02 \x01(\tB\x02\x18\x01\x12O\n\x13human_review_status\x18\x03 \x01(\x0b\x32\x32.google.cloud.documentai.v1beta3.HumanReviewStatus\"\xfb\x05\n\x13\x42\x61tchProcessRequest\x12\x17\n\x04name\x18\x01 \x01(\tB\t\xe0\x41\x02\xfa\x41\x03\n\x01*\x12`\n\rinput_configs\x18\x02 \x03(\x0b\x32\x45.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfigB\x02\x18\x01\x12\x61\n\routput_config\x18\x03 \x01(\x0b\x32\x46.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfigB\x02\x18\x01\x12S\n\x0finput_documents\x18\x05 \x01(\x0b\x32:.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig\x12U\n\x16\x64ocument_output_config\x18\x06 \x01(\x0b\x32\x35.google.cloud.documentai.v1beta3.DocumentOutputConfig\x12\x19\n\x11skip_human_review\x18\x04 \x01(\x08\x12H\n\x0fprocess_options\x18\x07 \x01(\x0b\x32/.google.cloud.documentai.v1beta3.ProcessOptions\x12U\n\x06labels\x18\t \x03(\x0b\x32@.google.cloud.documentai.v1beta3.BatchProcessRequest.LabelsEntryB\x03\xe0\x41\x01\x1a=\n\x10\x42\x61tchInputConfig\x12\x12\n\ngcs_source\x18\x01 \x01(\t\x12\x11\n\tmime_type\x18\x02 \x01(\t:\x02\x18\x01\x1a\x30\n\x11\x42\x61tchOutputConfig\x12\x17\n\x0fgcs_destination\x18\x01 \x01(\t:\x02\x18\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\"\xb2\x05\n\x14\x42\x61tchProcessMetadata\x12J\n\x05state\x18\x01 \x01(\x0e\x32;.google.cloud.documentai.v1beta3.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\x12r\n\x1bindividual_process_statuses\x18\x05 \x03(\x0b\x32M.google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus\x1a\xec\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\x12\"\n\x16human_review_operation\x18\x04 \x01(\tB\x02\x18\x01\x12O\n\x13human_review_status\x18\x05 \x01(\x0b\x32\x32.google.cloud.documentai.v1beta3.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\"f\n\x1b\x46\x65tchProcessorTypesResponse\x12G\n\x0fprocessor_types\x18\x01 \x03(\x0b\x32..google.cloud.documentai.v1beta3.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\"~\n\x1aListProcessorTypesResponse\x12G\n\x0fprocessor_types\x18\x01 \x03(\x0b\x32..google.cloud.documentai.v1beta3.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\"q\n\x16ListProcessorsResponse\x12>\n\nprocessors\x18\x01 \x03(\x0b\x32*.google.cloud.documentai.v1beta3.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\"\x87\x01\n\x1dListProcessorVersionsResponse\x12M\n\x12processor_versions\x18\x01 \x03(\x0b\x32\x31.google.cloud.documentai.v1beta3.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\"s\n\x1e\x44\x65leteProcessorVersionMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.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\"s\n\x1e\x44\x65ployProcessorVersionMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata\"c\n\x1fUndeployProcessorVersionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"\"\n UndeployProcessorVersionResponse\"u\n UndeployProcessorVersionMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata\"\x99\x01\n\x16\x43reateProcessorRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#documentai.googleapis.com/Processor\x12\x42\n\tprocessor\x18\x02 \x01(\x0b\x32*.google.cloud.documentai.v1beta3.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\"l\n\x17\x44\x65leteProcessorMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.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\"l\n\x17\x45nableProcessorMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.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\"m\n\x18\x44isableProcessorMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.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\"w\n\"SetDefaultProcessorVersionMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata\"\xcc\t\n\x1cTrainProcessorVersionRequest\x12\x8b\x01\n\"custom_document_extraction_options\x18\x05 \x01(\x0b\x32].google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptionsH\x00\x12\x85\x01\n\x1f\x66oundation_model_tuning_options\x18\x0c \x01(\x0b\x32Z.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.FoundationModelTuningOptionsH\x00\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\x12Q\n\x11processor_version\x18\x02 \x01(\x0b\x32\x31.google.cloud.documentai.v1beta3.ProcessorVersionB\x03\xe0\x41\x02\x12M\n\x0f\x64ocument_schema\x18\n \x01(\x0b\x32/.google.cloud.documentai.v1beta3.DocumentSchemaB\x03\xe0\x41\x01\x12`\n\ninput_data\x18\x04 \x01(\x0b\x32G.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.InputDataB\x03\xe0\x41\x01\x12#\n\x16\x62\x61se_processor_version\x18\x08 \x01(\tB\x03\xe0\x41\x01\x1a\xb7\x01\n\tInputData\x12V\n\x12training_documents\x18\x03 \x01(\x0b\x32:.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig\x12R\n\x0etest_documents\x18\x04 \x01(\x0b\x32:.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig\x1a\x81\x02\n\x1f\x43ustomDocumentExtractionOptions\x12\x85\x01\n\x0ftraining_method\x18\x03 \x01(\x0e\x32l.google.cloud.documentai.v1beta3.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\"\x86\x04\n\x1dTrainProcessorVersionMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata\x12u\n\x1btraining_dataset_validation\x18\x02 \x01(\x0b\x32P.google.cloud.documentai.v1beta3.TrainProcessorVersionMetadata.DatasetValidation\x12q\n\x17test_dataset_validation\x18\x03 \x01(\x0b\x32P.google.cloud.documentai.v1beta3.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\"\xde\x03\n\x15ReviewDocumentRequest\x12\x44\n\x0finline_document\x18\x04 \x01(\x0b\x32).google.cloud.documentai.v1beta3.DocumentH\x00\x12P\n\x13human_review_config\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+documentai.googleapis.com/HumanReviewConfig\x12?\n\x08\x64ocument\x18\x02 \x01(\x0b\x32).google.cloud.documentai.v1beta3.DocumentB\x02\x18\x01\x12 \n\x18\x65nable_schema_validation\x18\x03 \x01(\x08\x12Q\n\x08priority\x18\x05 \x01(\x0e\x32?.google.cloud.documentai.v1beta3.ReviewDocumentRequest.Priority\x12H\n\x0f\x64ocument_schema\x18\x06 \x01(\x0b\x32/.google.cloud.documentai.v1beta3.DocumentSchema\"#\n\x08Priority\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x00\x12\n\n\x06URGENT\x10\x01\x42\x08\n\x06source\"\xd6\x01\n\x16ReviewDocumentResponse\x12\x17\n\x0fgcs_destination\x18\x01 \x01(\t\x12L\n\x05state\x18\x02 \x01(\x0e\x32=.google.cloud.documentai.v1beta3.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\"\xc0\x03\n\x1fReviewDocumentOperationMetadata\x12U\n\x05state\x18\x01 \x01(\x0e\x32\x46.google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata.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\x12Q\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata\x12\x13\n\x0bquestion_id\x18\x06 \x01(\t\"e\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\x0e\n\nCANCELLING\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\r\n\tCANCELLED\x10\x05\"\xcf\x01\n\x1f\x45valuateProcessorVersionRequest\x12M\n\x11processor_version\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\x12]\n\x14\x65valuation_documents\x18\x03 \x01(\x0b\x32:.google.cloud.documentai.v1beta3.BatchDocumentsInputConfigB\x03\xe0\x41\x01\"u\n EvaluateProcessorVersionMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.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\"t\n\x17ListEvaluationsResponse\x12@\n\x0b\x65valuations\x18\x01 \x03(\x0b\x32+.google.cloud.documentai.v1beta3.Evaluation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb0\x03\n\x1dImportProcessorVersionRequest\x12S\n\x18processor_version_source\x18\x02 \x01(\tB/\xfa\x41,\n*documentai.googleapis.com/ProcessorVersionH\x00\x12\x8a\x01\n!external_processor_version_source\x18\x03 \x01(\x0b\x32].google.cloud.documentai.v1beta3.ImportProcessorVersionRequest.ExternalProcessorVersionSourceH\x00\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*documentai.googleapis.com/ProcessorVersion\x1a_\n\x1e\x45xternalProcessorVersionSource\x12\x1e\n\x11processor_version\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1d\n\x10service_endpoint\x18\x02 \x01(\tB\x03\xe0\x41\x01\x42\x08\n\x06source\"l\n\x1eImportProcessorVersionResponse\x12J\n\x11processor_version\x18\x01 \x01(\tB/\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"s\n\x1eImportProcessorVersionMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata2\xeb.\n\x18\x44ocumentProcessorService\x12\x9b\x02\n\x0fProcessDocument\x12/.google.cloud.documentai.v1beta3.ProcessRequest\x1a\x30.google.cloud.documentai.v1beta3.ProcessResponse\"\xa4\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\x96\x01\";/v1beta3/{name=projects/*/locations/*/processors/*}:process:\x01*ZT\"O/v1beta3/{name=projects/*/locations/*/processors/*/processorVersions/*}:process:\x01*\x12\xcc\x02\n\x15\x42\x61tchProcessDocuments\x12\x34.google.cloud.documentai.v1beta3.BatchProcessRequest\x1a\x1d.google.longrunning.Operation\"\xdd\x01\xca\x41,\n\x14\x42\x61tchProcessResponse\x12\x14\x42\x61tchProcessMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\xa0\x01\"@/v1beta3/{name=projects/*/locations/*/processors/*}:batchProcess:\x01*ZY\"T/v1beta3/{name=projects/*/locations/*/processors/*/processorVersions/*}:batchProcess:\x01*\x12\xdf\x01\n\x13\x46\x65tchProcessorTypes\x12;.google.cloud.documentai.v1beta3.FetchProcessorTypesRequest\x1a<.google.cloud.documentai.v1beta3.FetchProcessorTypesResponse\"M\xda\x41\x06parent\x82\xd3\xe4\x93\x02>\x12</v1beta3/{parent=projects/*/locations/*}:fetchProcessorTypes\x12\xd7\x01\n\x12ListProcessorTypes\x12:.google.cloud.documentai.v1beta3.ListProcessorTypesRequest\x1a;.google.cloud.documentai.v1beta3.ListProcessorTypesResponse\"H\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x39\x12\x37/v1beta3/{parent=projects/*/locations/*}/processorTypes\x12\xc4\x01\n\x10GetProcessorType\x12\x38.google.cloud.documentai.v1beta3.GetProcessorTypeRequest\x1a..google.cloud.documentai.v1beta3.ProcessorType\"F\xda\x41\x04name\x82\xd3\xe4\x93\x02\x39\x12\x37/v1beta3/{name=projects/*/locations/*/processorTypes/*}\x12\xc7\x01\n\x0eListProcessors\x12\x36.google.cloud.documentai.v1beta3.ListProcessorsRequest\x1a\x37.google.cloud.documentai.v1beta3.ListProcessorsResponse\"D\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x35\x12\x33/v1beta3/{parent=projects/*/locations/*}/processors\x12\xb4\x01\n\x0cGetProcessor\x12\x34.google.cloud.documentai.v1beta3.GetProcessorRequest\x1a*.google.cloud.documentai.v1beta3.Processor\"B\xda\x41\x04name\x82\xd3\xe4\x93\x02\x35\x12\x33/v1beta3/{name=projects/*/locations/*/processors/*}\x12\xac\x02\n\x15TrainProcessorVersion\x12=.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xb4\x01\xca\x41>\n\x1dTrainProcessorVersionResponse\x12\x1dTrainProcessorVersionMetadata\xda\x41\x18parent,processor_version\x82\xd3\xe4\x93\x02R\"M/v1beta3/{parent=projects/*/locations/*/processors/*}/processorVersions:train:\x01*\x12\xdd\x01\n\x13GetProcessorVersion\x12;.google.cloud.documentai.v1beta3.GetProcessorVersionRequest\x1a\x31.google.cloud.documentai.v1beta3.ProcessorVersion\"V\xda\x41\x04name\x82\xd3\xe4\x93\x02I\x12G/v1beta3/{name=projects/*/locations/*/processors/*/processorVersions/*}\x12\xf0\x01\n\x15ListProcessorVersions\x12=.google.cloud.documentai.v1beta3.ListProcessorVersionsRequest\x1a>.google.cloud.documentai.v1beta3.ListProcessorVersionsResponse\"X\xda\x41\x06parent\x82\xd3\xe4\x93\x02I\x12G/v1beta3/{parent=projects/*/locations/*/processors/*}/processorVersions\x12\x8a\x02\n\x16\x44\x65leteProcessorVersion\x12>.google.cloud.documentai.v1beta3.DeleteProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\x90\x01\xca\x41\x37\n\x15google.protobuf.Empty\x12\x1e\x44\x65leteProcessorVersionMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02I*G/v1beta3/{name=projects/*/locations/*/processors/*/processorVersions/*}\x12\x9d\x02\n\x16\x44\x65ployProcessorVersion\x12>.google.cloud.documentai.v1beta3.DeployProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xa3\x01\xca\x41@\n\x1e\x44\x65ployProcessorVersionResponse\x12\x1e\x44\x65ployProcessorVersionMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02S\"N/v1beta3/{name=projects/*/locations/*/processors/*/processorVersions/*}:deploy:\x01*\x12\xa7\x02\n\x18UndeployProcessorVersion\x12@.google.cloud.documentai.v1beta3.UndeployProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xa9\x01\xca\x41\x44\n UndeployProcessorVersionResponse\x12 UndeployProcessorVersionMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02U\"P/v1beta3/{name=projects/*/locations/*/processors/*/processorVersions/*}:undeploy:\x01*\x12\xd1\x01\n\x0f\x43reateProcessor\x12\x37.google.cloud.documentai.v1beta3.CreateProcessorRequest\x1a*.google.cloud.documentai.v1beta3.Processor\"Y\xda\x41\x10parent,processor\x82\xd3\xe4\x93\x02@\"3/v1beta3/{parent=projects/*/locations/*}/processors:\tprocessor\x12\xe0\x01\n\x0f\x44\x65leteProcessor\x12\x37.google.cloud.documentai.v1beta3.DeleteProcessorRequest\x1a\x1d.google.longrunning.Operation\"u\xca\x41\x30\n\x15google.protobuf.Empty\x12\x17\x44\x65leteProcessorMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x35*3/v1beta3/{name=projects/*/locations/*/processors/*}\x12\xe5\x01\n\x0f\x45nableProcessor\x12\x37.google.cloud.documentai.v1beta3.EnableProcessorRequest\x1a\x1d.google.longrunning.Operation\"z\xca\x41\x32\n\x17\x45nableProcessorResponse\x12\x17\x45nableProcessorMetadata\x82\xd3\xe4\x93\x02?\":/v1beta3/{name=projects/*/locations/*/processors/*}:enable:\x01*\x12\xea\x01\n\x10\x44isableProcessor\x12\x38.google.cloud.documentai.v1beta3.DisableProcessorRequest\x1a\x1d.google.longrunning.Operation\"}\xca\x41\x34\n\x18\x44isableProcessorResponse\x12\x18\x44isableProcessorMetadata\x82\xd3\xe4\x93\x02@\";/v1beta3/{name=projects/*/locations/*/processors/*}:disable:\x01*\x12\xab\x02\n\x1aSetDefaultProcessorVersion\x12\x42.google.cloud.documentai.v1beta3.SetDefaultProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xa9\x01\xca\x41H\n\"SetDefaultProcessorVersionResponse\x12\"SetDefaultProcessorVersionMetadata\x82\xd3\xe4\x93\x02X\"S/v1beta3/{processor=projects/*/locations/*/processors/*}:setDefaultProcessorVersion:\x01*\x12\xaa\x02\n\x0eReviewDocument\x12\x36.google.cloud.documentai.v1beta3.ReviewDocumentRequest\x1a\x1d.google.longrunning.Operation\"\xc0\x01\xca\x41\x39\n\x16ReviewDocumentResponse\x12\x1fReviewDocumentOperationMetadata\xda\x41\x13human_review_config\x82\xd3\xe4\x93\x02h\"c/v1beta3/{human_review_config=projects/*/locations/*/processors/*/humanReviewConfig}:reviewDocument:\x01*\x12\xd1\x02\n\x18\x45valuateProcessorVersion\x12@.google.cloud.documentai.v1beta3.EvaluateProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xd3\x01\xca\x41\x44\n EvaluateProcessorVersionResponse\x12 EvaluateProcessorVersionMetadata\xda\x41\x11processor_version\x82\xd3\xe4\x93\x02r\"m/v1beta3/{processor_version=projects/*/locations/*/processors/*/processorVersions/*}:evaluateProcessorVersion:\x01*\x12\xd9\x01\n\rGetEvaluation\x12\x35.google.cloud.documentai.v1beta3.GetEvaluationRequest\x1a+.google.cloud.documentai.v1beta3.Evaluation\"d\xda\x41\x04name\x82\xd3\xe4\x93\x02W\x12U/v1beta3/{name=projects/*/locations/*/processors/*/processorVersions/*/evaluations/*}\x12\xec\x01\n\x0fListEvaluations\x12\x37.google.cloud.documentai.v1beta3.ListEvaluationsRequest\x1a\x38.google.cloud.documentai.v1beta3.ListEvaluationsResponse\"f\xda\x41\x06parent\x82\xd3\xe4\x93\x02W\x12U/v1beta3/{parent=projects/*/locations/*/processors/*/processorVersions/*}/evaluations\x12\xaf\x02\n\x16ImportProcessorVersion\x12>.google.cloud.documentai.v1beta3.ImportProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xb5\x01\xca\x41@\n\x1eImportProcessorVersionResponse\x12\x1eImportProcessorVersionMetadata\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x63\"^/v1beta3/{parent=projects/*/locations/*/processors/*}/processorVersions:importProcessorVersion:\x01*\x1aM\xca\x41\x19\x64ocumentai.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xc3\x03\n#com.google.cloud.documentai.v1beta3B\x1a\x44ocumentAiProcessorServiceP\x01ZCcloud.google.com/go/documentai/apiv1beta3/documentaipb;documentaipb\xaa\x02\x1fGoogle.Cloud.DocumentAI.V1Beta3\xca\x02\x1fGoogle\\Cloud\\DocumentAI\\V1beta3\xea\x02\"Google::Cloud::DocumentAI::V1beta3\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
|
|
@@ -71,6 +71,10 @@ module Google
|
|
71
71
|
# Creates a processor from the
|
72
72
|
# [ProcessorType][google.cloud.documentai.v1beta3.ProcessorType] provided.
|
73
73
|
# The processor will be at `ENABLED` state by default after its creation.
|
74
|
+
# Note that this method requires the `documentai.processors.create`
|
75
|
+
# permission on the project, which is highly privileged. A user or service
|
76
|
+
# account with this permission can create new processors that can interact
|
77
|
+
# with any gcs bucket in your project.
|
74
78
|
rpc :CreateProcessor, ::Google::Cloud::DocumentAI::V1beta3::CreateProcessorRequest, ::Google::Cloud::DocumentAI::V1beta3::Processor
|
75
79
|
# Deletes the processor, unloads all deployed model artifacts if it was
|
76
80
|
# enabled and then deletes all artifacts associated with this processor.
|
@@ -34,6 +34,11 @@ module Google
|
|
34
34
|
self.service_name = 'google.cloud.documentai.v1beta3.DocumentService'
|
35
35
|
|
36
36
|
# Updates metadata associated with a dataset.
|
37
|
+
# Note that this method requires the
|
38
|
+
# `documentai.googleapis.com/datasets.update` permission on the project,
|
39
|
+
# which is highly privileged. A user or service account with this permission
|
40
|
+
# can create new processors that can interact with any gcs bucket in your
|
41
|
+
# project.
|
37
42
|
rpc :UpdateDataset, ::Google::Cloud::DocumentAI::V1beta3::UpdateDatasetRequest, ::Google::Longrunning::Operation
|
38
43
|
# Import documents into a dataset.
|
39
44
|
rpc :ImportDocuments, ::Google::Cloud::DocumentAI::V1beta3::ImportDocumentsRequest, ::Google::Longrunning::Operation
|
@@ -11,7 +11,7 @@ require 'google/cloud/documentai/v1beta3/evaluation_pb'
|
|
11
11
|
require 'google/protobuf/timestamp_pb'
|
12
12
|
|
13
13
|
|
14
|
-
descriptor_data = "\n/google/cloud/documentai/v1beta3/processor.proto\x12\x1fgoogle.cloud.documentai.v1beta3\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x35google/cloud/documentai/v1beta3/document_schema.proto\x1a\x30google/cloud/documentai/v1beta3/evaluation.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\
|
14
|
+
descriptor_data = "\n/google/cloud/documentai/v1beta3/processor.proto\x12\x1fgoogle.cloud.documentai.v1beta3\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x35google/cloud/documentai/v1beta3/document_schema.proto\x1a\x30google/cloud/documentai/v1beta3/evaluation.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xba\x0f\n\x10ProcessorVersion\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12H\n\x0f\x64ocument_schema\x18\x0c \x01(\x0b\x32/.google.cloud.documentai.v1beta3.DocumentSchema\x12K\n\x05state\x18\x06 \x01(\x0e\x32\x37.google.cloud.documentai.v1beta3.ProcessorVersion.StateB\x03\xe0\x41\x03\x12/\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12O\n\x11latest_evaluation\x18\x08 \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.EvaluationReference\x12\x14\n\x0ckms_key_name\x18\t \x01(\t\x12\x1c\n\x14kms_key_version_name\x18\n \x01(\t\x12\x1b\n\x0egoogle_managed\x18\x0b \x01(\x08\x42\x03\xe0\x41\x03\x12[\n\x10\x64\x65precation_info\x18\r \x01(\x0b\x32\x41.google.cloud.documentai.v1beta3.ProcessorVersion.DeprecationInfo\x12T\n\nmodel_type\x18\x0f \x01(\x0e\x32;.google.cloud.documentai.v1beta3.ProcessorVersion.ModelTypeB\x03\xe0\x41\x03\x12\x1a\n\rsatisfies_pzs\x18\x10 \x01(\x08\x42\x03\xe0\x41\x03\x12\x1a\n\rsatisfies_pzi\x18\x11 \x01(\x08\x42\x03\xe0\x41\x03\x12`\n\x11gen_ai_model_info\x18\x12 \x01(\x0b\x32@.google.cloud.documentai.v1beta3.ProcessorVersion.GenAiModelInfoB\x03\xe0\x41\x03\x1a\x9f\x01\n\x0f\x44\x65precationInfo\x12\x34\n\x10\x64\x65precation_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12V\n\x1dreplacement_processor_version\x18\x02 \x01(\tB/\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\x1a\x99\x05\n\x0eGenAiModelInfo\x12\x81\x01\n\x1c\x66oundation_gen_ai_model_info\x18\x01 \x01(\x0b\x32Y.google.cloud.documentai.v1beta3.ProcessorVersion.GenAiModelInfo.FoundationGenAiModelInfoH\x00\x12y\n\x18\x63ustom_gen_ai_model_info\x18\x02 \x01(\x0b\x32U.google.cloud.documentai.v1beta3.ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfoH\x00\x1a[\n\x18\x46oundationGenAiModelInfo\x12\x1a\n\x12\x66inetuning_allowed\x18\x01 \x01(\x08\x12#\n\x1bmin_train_labeled_documents\x18\x02 \x01(\x05\x1a\x9c\x02\n\x14\x43ustomGenAiModelInfo\x12\x80\x01\n\x11\x63ustom_model_type\x18\x01 \x01(\x0e\x32\x65.google.cloud.documentai.v1beta3.ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.CustomModelType\x12!\n\x19\x62\x61se_processor_version_id\x18\x02 \x01(\t\"^\n\x0f\x43ustomModelType\x12!\n\x1d\x43USTOM_MODEL_TYPE_UNSPECIFIED\x10\x00\x12\x18\n\x14VERSIONED_FOUNDATION\x10\x01\x12\x0e\n\nFINE_TUNED\x10\x02\x42\x0c\n\nmodel_info\"\x93\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44\x45PLOYED\x10\x01\x12\r\n\tDEPLOYING\x10\x02\x12\x0e\n\nUNDEPLOYED\x10\x03\x12\x0f\n\x0bUNDEPLOYING\x10\x04\x12\x0c\n\x08\x43REATING\x10\x05\x12\x0c\n\x08\x44\x45LETING\x10\x06\x12\n\n\x06\x46\x41ILED\x10\x07\x12\r\n\tIMPORTING\x10\x08\"Y\n\tModelType\x12\x1a\n\x16MODEL_TYPE_UNSPECIFIED\x10\x00\x12\x19\n\x15MODEL_TYPE_GENERATIVE\x10\x01\x12\x15\n\x11MODEL_TYPE_CUSTOM\x10\x02:\x96\x01\xea\x41\x92\x01\n*documentai.googleapis.com/ProcessorVersion\x12\x64projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}\"r\n\x15ProcessorVersionAlias\x12\r\n\x05\x61lias\x18\x01 \x01(\t\x12J\n\x11processor_version\x18\x02 \x01(\tB/\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"\xca\x05\n\tProcessor\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x05\xe0\x41\x03\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x44\n\x05state\x18\x04 \x01(\x0e\x32\x30.google.cloud.documentai.v1beta3.Processor.StateB\x03\xe0\x41\x03\x12R\n\x19\x64\x65\x66\x61ult_processor_version\x18\t \x01(\tB/\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\x12^\n\x19processor_version_aliases\x18\n \x03(\x0b\x32\x36.google.cloud.documentai.v1beta3.ProcessorVersionAliasB\x03\xe0\x41\x03\x12 \n\x10process_endpoint\x18\x06 \x01(\tB\x06\xe0\x41\x03\xe0\x41\x05\x12/\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0ckms_key_name\x18\x08 \x01(\t\x12\x1a\n\rsatisfies_pzs\x18\x0c \x01(\x08\x42\x03\xe0\x41\x03\x12\x1a\n\rsatisfies_pzi\x18\r \x01(\x08\x42\x03\xe0\x41\x03\"~\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02\x12\x0c\n\x08\x45NABLING\x10\x03\x12\r\n\tDISABLING\x10\x04\x12\x0c\n\x08\x43REATING\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x12\x0c\n\x08\x44\x45LETING\x10\x07:h\xea\x41\x65\n#documentai.googleapis.com/Processor\x12>projects/{project}/locations/{location}/processors/{processor}B\xea\x01\n#com.google.cloud.documentai.v1beta3B\x13\x44ocumentAiProcessorP\x01ZCcloud.google.com/go/documentai/apiv1beta3/documentaipb;documentaipb\xaa\x02\x1fGoogle.Cloud.DocumentAI.V1Beta3\xca\x02\x1fGoogle\\Cloud\\DocumentAI\\V1beta3\xea\x02\"Google::Cloud::DocumentAI::V1beta3b\x06proto3"
|
15
15
|
|
16
16
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
17
17
|
|
@@ -46,6 +46,10 @@ module Google
|
|
46
46
|
module V1beta3
|
47
47
|
ProcessorVersion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ProcessorVersion").msgclass
|
48
48
|
ProcessorVersion::DeprecationInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ProcessorVersion.DeprecationInfo").msgclass
|
49
|
+
ProcessorVersion::GenAiModelInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ProcessorVersion.GenAiModelInfo").msgclass
|
50
|
+
ProcessorVersion::GenAiModelInfo::FoundationGenAiModelInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ProcessorVersion.GenAiModelInfo.FoundationGenAiModelInfo").msgclass
|
51
|
+
ProcessorVersion::GenAiModelInfo::CustomGenAiModelInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo").msgclass
|
52
|
+
ProcessorVersion::GenAiModelInfo::CustomGenAiModelInfo::CustomModelType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.CustomModelType").enummodule
|
49
53
|
ProcessorVersion::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ProcessorVersion.State").enummodule
|
50
54
|
ProcessorVersion::ModelType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ProcessorVersion.ModelType").enummodule
|
51
55
|
ProcessorVersionAlias = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ProcessorVersionAlias").msgclass
|
@@ -290,6 +290,13 @@ module Google
|
|
290
290
|
# @return [::String]
|
291
291
|
# The fully qualified name of the method, for which the options below apply.
|
292
292
|
# This is used to find the method to apply the options.
|
293
|
+
#
|
294
|
+
# Example:
|
295
|
+
#
|
296
|
+
# publishing:
|
297
|
+
# method_settings:
|
298
|
+
# - selector: google.storage.control.v2.StorageControl.CreateFolder
|
299
|
+
# # method settings for CreateFolder...
|
293
300
|
# @!attribute [rw] long_running
|
294
301
|
# @return [::Google::Api::MethodSettings::LongRunning]
|
295
302
|
# Describes settings to use for long-running operations when generating
|
@@ -298,17 +305,14 @@ module Google
|
|
298
305
|
#
|
299
306
|
# Example of a YAML configuration::
|
300
307
|
#
|
301
|
-
#
|
302
|
-
#
|
308
|
+
# publishing:
|
309
|
+
# method_settings:
|
303
310
|
# - selector: google.cloud.speech.v2.Speech.BatchRecognize
|
304
311
|
# long_running:
|
305
|
-
# initial_poll_delay:
|
306
|
-
# seconds: 60 # 1 minute
|
312
|
+
# initial_poll_delay: 60s # 1 minute
|
307
313
|
# poll_delay_multiplier: 1.5
|
308
|
-
# max_poll_delay:
|
309
|
-
#
|
310
|
-
# total_poll_timeout:
|
311
|
-
# seconds: 54000 # 90 minutes
|
314
|
+
# max_poll_delay: 360s # 6 minutes
|
315
|
+
# total_poll_timeout: 54000s # 90 minutes
|
312
316
|
# @!attribute [rw] auto_populated_fields
|
313
317
|
# @return [::Array<::String>]
|
314
318
|
# List of top-level fields of the request message, that should be
|
@@ -317,8 +321,8 @@ module Google
|
|
317
321
|
#
|
318
322
|
# Example of a YAML configuration:
|
319
323
|
#
|
320
|
-
#
|
321
|
-
#
|
324
|
+
# publishing:
|
325
|
+
# method_settings:
|
322
326
|
# - selector: google.example.v1.ExampleService.CreateExample
|
323
327
|
# auto_populated_fields:
|
324
328
|
# - request_id
|
@@ -124,8 +124,13 @@ module Google
|
|
124
124
|
# @return [::String]
|
125
125
|
# The plural name used in the resource name and permission names, such as
|
126
126
|
# 'projects' for the resource name of 'projects/\\{project}' and the permission
|
127
|
-
# name of 'cloudresourcemanager.googleapis.com/projects.get'.
|
128
|
-
#
|
127
|
+
# name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception
|
128
|
+
# to this is for Nested Collections that have stuttering names, as defined
|
129
|
+
# in [AIP-122](https://google.aip.dev/122#nested-collections), where the
|
130
|
+
# collection ID in the resource name pattern does not necessarily directly
|
131
|
+
# match the `plural` value.
|
132
|
+
#
|
133
|
+
# It is the same concept of the `plural` field in k8s CRD spec
|
129
134
|
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
130
135
|
#
|
131
136
|
# Note: The plural form is required even for singleton resources. See
|
@@ -52,6 +52,12 @@ module Google
|
|
52
52
|
# @!attribute [rw] state
|
53
53
|
# @return [::Google::Cloud::DocumentAI::V1beta3::Dataset::State]
|
54
54
|
# Required. State of the dataset. Ignored when updating dataset.
|
55
|
+
# @!attribute [r] satisfies_pzs
|
56
|
+
# @return [::Boolean]
|
57
|
+
# Output only. Reserved for future use.
|
58
|
+
# @!attribute [r] satisfies_pzi
|
59
|
+
# @return [::Boolean]
|
60
|
+
# Output only. Reserved for future use.
|
55
61
|
class Dataset
|
56
62
|
include ::Google::Protobuf::MessageExts
|
57
63
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -1192,9 +1192,7 @@ module Google
|
|
1192
1192
|
# ID of the chunk.
|
1193
1193
|
# @!attribute [rw] source_block_ids
|
1194
1194
|
# @return [::Array<::String>]
|
1195
|
-
#
|
1196
|
-
# List of all parsed documents layout source blocks used to generate the
|
1197
|
-
# chunk.
|
1195
|
+
# Unused.
|
1198
1196
|
# @!attribute [rw] content
|
1199
1197
|
# @return [::String]
|
1200
1198
|
# Text content of the chunk.
|
@@ -144,6 +144,9 @@ module Google
|
|
144
144
|
# (Unicode codepoints) and can only contain lowercase letters, numeric
|
145
145
|
# characters, underscores, and dashes. International characters are allowed.
|
146
146
|
# Label values are optional. Label keys must start with a letter.
|
147
|
+
# @!attribute [rw] imageless_mode
|
148
|
+
# @return [::Boolean]
|
149
|
+
# Optional. Option to remove images from the document.
|
147
150
|
class ProcessRequest
|
148
151
|
include ::Google::Protobuf::MessageExts
|
149
152
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -60,6 +60,16 @@ module Google
|
|
60
60
|
# @!attribute [r] model_type
|
61
61
|
# @return [::Google::Cloud::DocumentAI::V1beta3::ProcessorVersion::ModelType]
|
62
62
|
# Output only. The model type of this processor version.
|
63
|
+
# @!attribute [r] satisfies_pzs
|
64
|
+
# @return [::Boolean]
|
65
|
+
# Output only. Reserved for future use.
|
66
|
+
# @!attribute [r] satisfies_pzi
|
67
|
+
# @return [::Boolean]
|
68
|
+
# Output only. Reserved for future use.
|
69
|
+
# @!attribute [r] gen_ai_model_info
|
70
|
+
# @return [::Google::Cloud::DocumentAI::V1beta3::ProcessorVersion::GenAiModelInfo]
|
71
|
+
# Output only. Information about Generative AI model-based processor
|
72
|
+
# versions.
|
63
73
|
class ProcessorVersion
|
64
74
|
include ::Google::Protobuf::MessageExts
|
65
75
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -76,6 +86,57 @@ module Google
|
|
76
86
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
77
87
|
end
|
78
88
|
|
89
|
+
# Information about Generative AI model-based processor versions.
|
90
|
+
# @!attribute [rw] foundation_gen_ai_model_info
|
91
|
+
# @return [::Google::Cloud::DocumentAI::V1beta3::ProcessorVersion::GenAiModelInfo::FoundationGenAiModelInfo]
|
92
|
+
# Information for a pretrained Google-managed foundation model.
|
93
|
+
# @!attribute [rw] custom_gen_ai_model_info
|
94
|
+
# @return [::Google::Cloud::DocumentAI::V1beta3::ProcessorVersion::GenAiModelInfo::CustomGenAiModelInfo]
|
95
|
+
# Information for a custom Generative AI model created by the user.
|
96
|
+
class GenAiModelInfo
|
97
|
+
include ::Google::Protobuf::MessageExts
|
98
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
99
|
+
|
100
|
+
# Information for a pretrained Google-managed foundation model.
|
101
|
+
# @!attribute [rw] finetuning_allowed
|
102
|
+
# @return [::Boolean]
|
103
|
+
# Whether finetuning is allowed for this base processor version.
|
104
|
+
# @!attribute [rw] min_train_labeled_documents
|
105
|
+
# @return [::Integer]
|
106
|
+
# The minimum number of labeled documents in the training dataset
|
107
|
+
# required for finetuning.
|
108
|
+
class FoundationGenAiModelInfo
|
109
|
+
include ::Google::Protobuf::MessageExts
|
110
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
111
|
+
end
|
112
|
+
|
113
|
+
# Information for a custom Generative AI model created by the user. These
|
114
|
+
# are created with `Create New Version` in either the `Call foundation
|
115
|
+
# model` or `Fine tuning` tabs.
|
116
|
+
# @!attribute [rw] custom_model_type
|
117
|
+
# @return [::Google::Cloud::DocumentAI::V1beta3::ProcessorVersion::GenAiModelInfo::CustomGenAiModelInfo::CustomModelType]
|
118
|
+
# The type of custom model created by the user.
|
119
|
+
# @!attribute [rw] base_processor_version_id
|
120
|
+
# @return [::String]
|
121
|
+
# The base processor version ID for the custom model.
|
122
|
+
class CustomGenAiModelInfo
|
123
|
+
include ::Google::Protobuf::MessageExts
|
124
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
125
|
+
|
126
|
+
# The type of custom model created by the user.
|
127
|
+
module CustomModelType
|
128
|
+
# The model type is unspecified.
|
129
|
+
CUSTOM_MODEL_TYPE_UNSPECIFIED = 0
|
130
|
+
|
131
|
+
# The model is a versioned foundation model.
|
132
|
+
VERSIONED_FOUNDATION = 1
|
133
|
+
|
134
|
+
# The model is a finetuned foundation model.
|
135
|
+
FINE_TUNED = 2
|
136
|
+
end
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
79
140
|
# The possible states of the processor version.
|
80
141
|
module State
|
81
142
|
# The processor version is in an unspecified state.
|
@@ -165,6 +226,12 @@ module Google
|
|
165
226
|
# @return [::String]
|
166
227
|
# The [KMS key](https://cloud.google.com/security-key-management) used for
|
167
228
|
# encryption and decryption in CMEK scenarios.
|
229
|
+
# @!attribute [r] satisfies_pzs
|
230
|
+
# @return [::Boolean]
|
231
|
+
# Output only. Reserved for future use.
|
232
|
+
# @!attribute [r] satisfies_pzi
|
233
|
+
# @return [::Boolean]
|
234
|
+
# Output only. Reserved for future use.
|
168
235
|
class Processor
|
169
236
|
include ::Google::Protobuf::MessageExts
|
170
237
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|