# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/documentai/v1beta3/document_service.proto require 'google/protobuf' require 'google/api/annotations_pb' require 'google/api/client_pb' require 'google/api/field_behavior_pb' require 'google/api/resource_pb' require 'google/cloud/documentai/v1beta3/dataset_pb' require 'google/cloud/documentai/v1beta3/document_pb' require 'google/cloud/documentai/v1beta3/document_io_pb' require 'google/cloud/documentai/v1beta3/operation_metadata_pb' require 'google/longrunning/operations_pb' require 'google/protobuf/field_mask_pb' require 'google/rpc/status_pb' descriptor_data = "\n6google/cloud/documentai/v1beta3/document_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/dataset.proto\x1a.google/cloud/documentai/v1beta3/document.proto\x1a\x31google/cloud/documentai/v1beta3/document_io.proto\x1a\x38google/cloud/documentai/v1beta3/operation_metadata.proto\x1a#google/longrunning/operations.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\x87\x01\n\x14UpdateDatasetRequest\x12>\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32(.google.cloud.documentai.v1beta3.DatasetB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"s\n\x1eUpdateDatasetOperationMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata\"\xdf\x04\n\x16ImportDocumentsRequest\x12:\n\x07\x64\x61taset\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!documentai.googleapis.com/Dataset\x12\x7f\n\x1e\x62\x61tch_documents_import_configs\x18\x04 \x03(\x0b\x32R.google.cloud.documentai.v1beta3.ImportDocumentsRequest.BatchDocumentsImportConfigB\x03\xe0\x41\x02\x1a\x87\x03\n\x1a\x42\x61tchDocumentsImportConfig\x12J\n\rdataset_split\x18\x02 \x01(\x0e\x32\x31.google.cloud.documentai.v1beta3.DatasetSplitTypeH\x00\x12\x7f\n\x11\x61uto_split_config\x18\x03 \x01(\x0b\x32\x62.google.cloud.documentai.v1beta3.ImportDocumentsRequest.BatchDocumentsImportConfig.AutoSplitConfigH\x00\x12V\n\x12\x62\x61tch_input_config\x18\x01 \x01(\x0b\x32:.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig\x1a/\n\x0f\x41utoSplitConfig\x12\x1c\n\x14training_split_ratio\x18\x01 \x01(\x02\x42\x13\n\x11split_type_config\"\x19\n\x17ImportDocumentsResponse\"\x80\x05\n\x17ImportDocumentsMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata\x12s\n\x1aindividual_import_statuses\x18\x02 \x03(\x0b\x32O.google.cloud.documentai.v1beta3.ImportDocumentsMetadata.IndividualImportStatus\x12\x7f\n import_config_validation_results\x18\x04 \x03(\x0b\x32U.google.cloud.documentai.v1beta3.ImportDocumentsMetadata.ImportConfigValidationResult\x12\x1c\n\x14total_document_count\x18\x03 \x01(\x05\x1a\x9f\x01\n\x16IndividualImportStatus\x12\x18\n\x10input_gcs_source\x18\x01 \x01(\t\x12\"\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\x12G\n\x12output_document_id\x18\x04 \x01(\x0b\x32+.google.cloud.documentai.v1beta3.DocumentId\x1a\\\n\x1cImportConfigValidationResult\x12\x18\n\x10input_gcs_source\x18\x01 \x01(\t\x12\"\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"\x8e\x02\n\x12GetDocumentRequest\x12:\n\x07\x64\x61taset\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!documentai.googleapis.com/Dataset\x12\x45\n\x0b\x64ocument_id\x18\x02 \x01(\x0b\x32+.google.cloud.documentai.v1beta3.DocumentIdB\x03\xe0\x41\x02\x12-\n\tread_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x46\n\npage_range\x18\x04 \x01(\x0b\x32\x32.google.cloud.documentai.v1beta3.DocumentPageRange\"R\n\x13GetDocumentResponse\x12;\n\x08\x64ocument\x18\x01 \x01(\x0b\x32).google.cloud.documentai.v1beta3.Document\"\xc1\x01\n\x14ListDocumentsRequest\x12:\n\x07\x64\x61taset\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!documentai.googleapis.com/Dataset\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x1e\n\x11return_total_size\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\x12\x11\n\x04skip\x18\x08 \x01(\x05\x42\x03\xe0\x41\x01\"\x92\x01\n\x15ListDocumentsResponse\x12L\n\x11\x64ocument_metadata\x18\x01 \x03(\x0b\x32\x31.google.cloud.documentai.v1beta3.DocumentMetadata\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05\"\x8b\x01\n\x1b\x42\x61tchDeleteDocumentsRequest\x12\x14\n\x07\x64\x61taset\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12V\n\x11\x64\x61taset_documents\x18\x03 \x01(\x0b\x32\x36.google.cloud.documentai.v1beta3.BatchDatasetDocumentsB\x03\xe0\x41\x02\"\x1e\n\x1c\x42\x61tchDeleteDocumentsResponse\"\xb9\x03\n\x1c\x42\x61tchDeleteDocumentsMetadata\x12Q\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.CommonOperationMetadata\x12\x83\x01\n individual_batch_delete_statuses\x18\x02 \x03(\x0b\x32Y.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus\x12\x1c\n\x14total_document_count\x18\x03 \x01(\x05\x12\x1c\n\x14\x65rror_document_count\x18\x04 \x01(\x05\x1a\x83\x01\n\x1bIndividualBatchDeleteStatus\x12@\n\x0b\x64ocument_id\x18\x01 \x01(\x0b\x32+.google.cloud.documentai.v1beta3.DocumentId\x12\"\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"u\n\x17GetDatasetSchemaRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'documentai.googleapis.com/DatasetSchema\x12\x1b\n\x13visible_fields_only\x18\x02 \x01(\x08\"\x9a\x01\n\x1aUpdateDatasetSchemaRequest\x12K\n\x0e\x64\x61taset_schema\x18\x01 \x01(\x0b\x32..google.cloud.documentai.v1beta3.DatasetSchemaB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"/\n\x11\x44ocumentPageRange\x12\r\n\x05start\x18\x01 \x01(\x05\x12\x0b\n\x03\x65nd\x18\x02 \x01(\x05\"\x97\x02\n\x10\x44ocumentMetadata\x12@\n\x0b\x64ocument_id\x18\x01 \x01(\x0b\x32+.google.cloud.documentai.v1beta3.DocumentId\x12\x12\n\npage_count\x18\x02 \x01(\x05\x12G\n\x0c\x64\x61taset_type\x18\x03 \x01(\x0e\x32\x31.google.cloud.documentai.v1beta3.DatasetSplitType\x12N\n\x0elabeling_state\x18\x05 \x01(\x0e\x32\x36.google.cloud.documentai.v1beta3.DocumentLabelingState\x12\x14\n\x0c\x64isplay_name\x18\x06 \x01(\t*\x85\x01\n\x10\x44\x61tasetSplitType\x12\"\n\x1e\x44\x41TASET_SPLIT_TYPE_UNSPECIFIED\x10\x00\x12\x17\n\x13\x44\x41TASET_SPLIT_TRAIN\x10\x01\x12\x16\n\x12\x44\x41TASET_SPLIT_TEST\x10\x02\x12\x1c\n\x18\x44\x41TASET_SPLIT_UNASSIGNED\x10\x03*\x89\x01\n\x15\x44ocumentLabelingState\x12\'\n#DOCUMENT_LABELING_STATE_UNSPECIFIED\x10\x00\x12\x14\n\x10\x44OCUMENT_LABELED\x10\x01\x12\x16\n\x12\x44OCUMENT_UNLABELED\x10\x02\x12\x19\n\x15\x44OCUMENT_AUTO_LABELED\x10\x03\x32\xb3\x0e\n\x0f\x44ocumentService\x12\xfe\x01\n\rUpdateDataset\x12\x35.google.cloud.documentai.v1beta3.UpdateDatasetRequest\x1a\x1d.google.longrunning.Operation\"\x96\x01\x82\xd3\xe4\x93\x02N2C/v1beta3/{dataset.name=projects/*/locations/*/processors/*/dataset}:\x07\x64\x61taset\xda\x41\x13\x64\x61taset,update_mask\xca\x41)\n\x07\x44\x61taset\x12\x1eUpdateDatasetOperationMetadata\x12\x84\x02\n\x0fImportDocuments\x12\x37.google.cloud.documentai.v1beta3.ImportDocumentsRequest\x1a\x1d.google.longrunning.Operation\"\x98\x01\x82\xd3\xe4\x93\x02S\"N/v1beta3/{dataset=projects/*/locations/*/processors/*/dataset}:importDocuments:\x01*\xda\x41\x07\x64\x61taset\xca\x41\x32\n\x17ImportDocumentsResponse\x12\x17ImportDocumentsMetadata\x12\xd6\x01\n\x0bGetDocument\x12\x33.google.cloud.documentai.v1beta3.GetDocumentRequest\x1a\x34.google.cloud.documentai.v1beta3.GetDocumentResponse\"\\\x82\xd3\xe4\x93\x02L\x12J/v1beta3/{dataset=projects/*/locations/*/processors/*/dataset}:getDocument\xda\x41\x07\x64\x61taset\x12\xe1\x01\n\rListDocuments\x12\x35.google.cloud.documentai.v1beta3.ListDocumentsRequest\x1a\x36.google.cloud.documentai.v1beta3.ListDocumentsResponse\"a\x82\xd3\xe4\x93\x02Q\"L/v1beta3/{dataset=projects/*/locations/*/processors/*/dataset}:listDocuments:\x01*\xda\x41\x07\x64\x61taset\x12\x9d\x02\n\x14\x42\x61tchDeleteDocuments\x12<.google.cloud.documentai.v1beta3.BatchDeleteDocumentsRequest\x1a\x1d.google.longrunning.Operation\"\xa7\x01\x82\xd3\xe4\x93\x02X\"S/v1beta3/{dataset=projects/*/locations/*/processors/*/dataset}:batchDeleteDocuments:\x01*\xda\x41\x07\x64\x61taset\xca\x41<\n\x1c\x42\x61tchDeleteDocumentsResponse\x12\x1c\x42\x61tchDeleteDocumentsMetadata\x12\xd6\x01\n\x10GetDatasetSchema\x12\x38.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest\x1a..google.cloud.documentai.v1beta3.DatasetSchema\"X\x82\xd3\xe4\x93\x02K\x12I/v1beta3/{name=projects/*/locations/*/processors/*/dataset/datasetSchema}\xda\x41\x04name\x12\x92\x02\n\x13UpdateDatasetSchema\x12;.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest\x1a..google.cloud.documentai.v1beta3.DatasetSchema\"\x8d\x01\x82\xd3\xe4\x93\x02j2X/v1beta3/{dataset_schema.name=projects/*/locations/*/processors/*/dataset/datasetSchema}:\x0e\x64\x61taset_schema\xda\x41\x1a\x64\x61taset_schema,update_mask\x1aM\xca\x41\x19\x64ocumentai.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xf0\x01\n#com.google.cloud.documentai.v1beta3B\x19\x44ocumentAiDocumentServiceP\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" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) rescue TypeError => e # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) parsed.clear_dependency serialized = parsed.class.encode(parsed) file = pool.add_serialized_file(serialized) warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" imports = [ ["google.cloud.documentai.v1beta3.Dataset", "google/cloud/documentai/v1beta3/dataset.proto"], ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], ["google.cloud.documentai.v1beta3.CommonOperationMetadata", "google/cloud/documentai/v1beta3/operation_metadata.proto"], ["google.cloud.documentai.v1beta3.BatchDocumentsInputConfig", "google/cloud/documentai/v1beta3/document_io.proto"], ["google.rpc.Status", "google/rpc/status.proto"], ["google.cloud.documentai.v1beta3.Document", "google/cloud/documentai/v1beta3/document.proto"], ] imports.each do |type_name, expected_filename| import_file = pool.lookup(type_name).file_descriptor if import_file.name != expected_filename warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" end end warn "Each proto file must use a consistent fully-qualified name." warn "This will become an error in the next major version." end module Google module Cloud module DocumentAI module V1beta3 UpdateDatasetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.UpdateDatasetRequest").msgclass UpdateDatasetOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata").msgclass ImportDocumentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ImportDocumentsRequest").msgclass ImportDocumentsRequest::BatchDocumentsImportConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ImportDocumentsRequest.BatchDocumentsImportConfig").msgclass ImportDocumentsRequest::BatchDocumentsImportConfig::AutoSplitConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ImportDocumentsRequest.BatchDocumentsImportConfig.AutoSplitConfig").msgclass ImportDocumentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ImportDocumentsResponse").msgclass ImportDocumentsMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ImportDocumentsMetadata").msgclass ImportDocumentsMetadata::IndividualImportStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ImportDocumentsMetadata.IndividualImportStatus").msgclass ImportDocumentsMetadata::ImportConfigValidationResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ImportDocumentsMetadata.ImportConfigValidationResult").msgclass GetDocumentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.GetDocumentRequest").msgclass GetDocumentResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.GetDocumentResponse").msgclass ListDocumentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ListDocumentsRequest").msgclass ListDocumentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.ListDocumentsResponse").msgclass BatchDeleteDocumentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.BatchDeleteDocumentsRequest").msgclass BatchDeleteDocumentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.BatchDeleteDocumentsResponse").msgclass BatchDeleteDocumentsMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata").msgclass BatchDeleteDocumentsMetadata::IndividualBatchDeleteStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus").msgclass GetDatasetSchemaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.GetDatasetSchemaRequest").msgclass UpdateDatasetSchemaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest").msgclass DocumentPageRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.DocumentPageRange").msgclass DocumentMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.DocumentMetadata").msgclass DatasetSplitType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.DatasetSplitType").enummodule DocumentLabelingState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1beta3.DocumentLabelingState").enummodule end end end end