google-cloud-document_ai-v1 0.11.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/README.md +1 -1
 - data/lib/google/cloud/document_ai/v1/document_processor_service/client.rb +6 -4
 - data/lib/google/cloud/document_ai/v1/document_processor_service/operations.rb +5 -3
 - data/lib/google/cloud/document_ai/v1/document_processor_service/rest/client.rb +6 -4
 - data/lib/google/cloud/document_ai/v1/document_processor_service/rest/operations.rb +9 -7
 - data/lib/google/cloud/document_ai/v1/document_processor_service/rest/service_stub.rb +22 -22
 - data/lib/google/cloud/document_ai/v1/version.rb +1 -1
 - data/lib/google/cloud/documentai/v1/barcode_pb.rb +24 -6
 - data/lib/google/cloud/documentai/v1/document_io_pb.rb +25 -35
 - data/lib/google/cloud/documentai/v1/document_pb.rb +33 -265
 - data/lib/google/cloud/documentai/v1/document_processor_service_pb.rb +34 -229
 - data/lib/google/cloud/documentai/v1/document_schema_pb.rb +24 -37
 - data/lib/google/cloud/documentai/v1/evaluation_pb.rb +25 -52
 - data/lib/google/cloud/documentai/v1/geometry_pb.rb +24 -13
 - data/lib/google/cloud/documentai/v1/operation_metadata_pb.rb +25 -16
 - data/lib/google/cloud/documentai/v1/processor_pb.rb +27 -47
 - data/lib/google/cloud/documentai/v1/processor_type_pb.rb +24 -13
 - data/proto_docs/google/api/client.rb +67 -4
 - data/proto_docs/google/protobuf/any.rb +7 -4
 - data/proto_docs/google/protobuf/timestamp.rb +1 -3
 - metadata +4 -4
 
| 
         @@ -1,3 +1,4 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # frozen_string_literal: true
         
     | 
| 
       1 
2 
     | 
    
         
             
            # Generated by the protocol buffer compiler.  DO NOT EDIT!
         
     | 
| 
       2 
3 
     | 
    
         
             
            # source: google/cloud/documentai/v1/document_processor_service.proto
         
     | 
| 
       3 
4 
     | 
    
         | 
| 
         @@ -20,237 +21,41 @@ require 'google/protobuf/field_mask_pb' 
     | 
|
| 
       20 
21 
     | 
    
         
             
            require 'google/protobuf/timestamp_pb'
         
     | 
| 
       21 
22 
     | 
    
         
             
            require 'google/rpc/status_pb'
         
     | 
| 
       22 
23 
     | 
    
         | 
| 
       23 
     | 
    
         
            -
             
     | 
| 
       24 
     | 
    
         
            -
              add_file("google/cloud/documentai/v1/document_processor_service.proto", :syntax => :proto3) do
         
     | 
| 
       25 
     | 
    
         
            -
             
     | 
| 
       26 
     | 
    
         
            -
             
     | 
| 
       27 
     | 
    
         
            -
             
     | 
| 
       28 
     | 
    
         
            -
             
     | 
| 
       29 
     | 
    
         
            -
             
     | 
| 
       30 
     | 
    
         
            -
             
     | 
| 
       31 
     | 
    
         
            -
             
     | 
| 
       32 
     | 
    
         
            -
             
     | 
| 
       33 
     | 
    
         
            -
             
     | 
| 
       34 
     | 
    
         
            -
             
     | 
| 
       35 
     | 
    
         
            -
             
     | 
| 
       36 
     | 
    
         
            -
             
     | 
| 
       37 
     | 
    
         
            -
             
     | 
| 
       38 
     | 
    
         
            -
             
     | 
| 
       39 
     | 
    
         
            -
                 
     | 
| 
       40 
     | 
    
         
            -
             
     | 
| 
       41 
     | 
    
         
            -
             
     | 
| 
       42 
     | 
    
         
            -
             
     | 
| 
       43 
     | 
    
         
            -
             
     | 
| 
       44 
     | 
    
         
            -
             
     | 
| 
       45 
     | 
    
         
            -
                 
     | 
| 
       46 
     | 
    
         
            -
                 
     | 
| 
       47 
     | 
    
         
            -
             
     | 
| 
       48 
     | 
    
         
            -
             
     | 
| 
       49 
     | 
    
         
            -
             
     | 
| 
       50 
     | 
    
         
            -
             
     | 
| 
       51 
     | 
    
         
            -
             
     | 
| 
       52 
     | 
    
         
            -
             
     | 
| 
       53 
     | 
    
         
            -
                   
     | 
| 
       54 
     | 
    
         
            -
                  optional :skip_human_review, :bool, 4
         
     | 
| 
       55 
     | 
    
         
            -
                end
         
     | 
| 
       56 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.BatchProcessResponse" do
         
     | 
| 
       57 
     | 
    
         
            -
                end
         
     | 
| 
       58 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.BatchProcessMetadata" do
         
     | 
| 
       59 
     | 
    
         
            -
                  optional :state, :enum, 1, "google.cloud.documentai.v1.BatchProcessMetadata.State"
         
     | 
| 
       60 
     | 
    
         
            -
                  optional :state_message, :string, 2
         
     | 
| 
       61 
     | 
    
         
            -
                  optional :create_time, :message, 3, "google.protobuf.Timestamp"
         
     | 
| 
       62 
     | 
    
         
            -
                  optional :update_time, :message, 4, "google.protobuf.Timestamp"
         
     | 
| 
       63 
     | 
    
         
            -
                  repeated :individual_process_statuses, :message, 5, "google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus"
         
     | 
| 
       64 
     | 
    
         
            -
                end
         
     | 
| 
       65 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus" do
         
     | 
| 
       66 
     | 
    
         
            -
                  optional :input_gcs_source, :string, 1
         
     | 
| 
       67 
     | 
    
         
            -
                  optional :status, :message, 2, "google.rpc.Status"
         
     | 
| 
       68 
     | 
    
         
            -
                  optional :output_gcs_destination, :string, 3
         
     | 
| 
       69 
     | 
    
         
            -
                  optional :human_review_status, :message, 5, "google.cloud.documentai.v1.HumanReviewStatus"
         
     | 
| 
       70 
     | 
    
         
            -
                end
         
     | 
| 
       71 
     | 
    
         
            -
                add_enum "google.cloud.documentai.v1.BatchProcessMetadata.State" do
         
     | 
| 
       72 
     | 
    
         
            -
                  value :STATE_UNSPECIFIED, 0
         
     | 
| 
       73 
     | 
    
         
            -
                  value :WAITING, 1
         
     | 
| 
       74 
     | 
    
         
            -
                  value :RUNNING, 2
         
     | 
| 
       75 
     | 
    
         
            -
                  value :SUCCEEDED, 3
         
     | 
| 
       76 
     | 
    
         
            -
                  value :CANCELLING, 4
         
     | 
| 
       77 
     | 
    
         
            -
                  value :CANCELLED, 5
         
     | 
| 
       78 
     | 
    
         
            -
                  value :FAILED, 6
         
     | 
| 
       79 
     | 
    
         
            -
                end
         
     | 
| 
       80 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.FetchProcessorTypesRequest" do
         
     | 
| 
       81 
     | 
    
         
            -
                  optional :parent, :string, 1
         
     | 
| 
       82 
     | 
    
         
            -
                end
         
     | 
| 
       83 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.FetchProcessorTypesResponse" do
         
     | 
| 
       84 
     | 
    
         
            -
                  repeated :processor_types, :message, 1, "google.cloud.documentai.v1.ProcessorType"
         
     | 
| 
       85 
     | 
    
         
            -
                end
         
     | 
| 
       86 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.ListProcessorTypesRequest" do
         
     | 
| 
       87 
     | 
    
         
            -
                  optional :parent, :string, 1
         
     | 
| 
       88 
     | 
    
         
            -
                  optional :page_size, :int32, 2
         
     | 
| 
       89 
     | 
    
         
            -
                  optional :page_token, :string, 3
         
     | 
| 
       90 
     | 
    
         
            -
                end
         
     | 
| 
       91 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.ListProcessorTypesResponse" do
         
     | 
| 
       92 
     | 
    
         
            -
                  repeated :processor_types, :message, 1, "google.cloud.documentai.v1.ProcessorType"
         
     | 
| 
       93 
     | 
    
         
            -
                  optional :next_page_token, :string, 2
         
     | 
| 
       94 
     | 
    
         
            -
                end
         
     | 
| 
       95 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.ListProcessorsRequest" do
         
     | 
| 
       96 
     | 
    
         
            -
                  optional :parent, :string, 1
         
     | 
| 
       97 
     | 
    
         
            -
                  optional :page_size, :int32, 2
         
     | 
| 
       98 
     | 
    
         
            -
                  optional :page_token, :string, 3
         
     | 
| 
       99 
     | 
    
         
            -
                end
         
     | 
| 
       100 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.ListProcessorsResponse" do
         
     | 
| 
       101 
     | 
    
         
            -
                  repeated :processors, :message, 1, "google.cloud.documentai.v1.Processor"
         
     | 
| 
       102 
     | 
    
         
            -
                  optional :next_page_token, :string, 2
         
     | 
| 
       103 
     | 
    
         
            -
                end
         
     | 
| 
       104 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.GetProcessorTypeRequest" do
         
     | 
| 
       105 
     | 
    
         
            -
                  optional :name, :string, 1
         
     | 
| 
       106 
     | 
    
         
            -
                end
         
     | 
| 
       107 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.GetProcessorRequest" do
         
     | 
| 
       108 
     | 
    
         
            -
                  optional :name, :string, 1
         
     | 
| 
       109 
     | 
    
         
            -
                end
         
     | 
| 
       110 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.GetProcessorVersionRequest" do
         
     | 
| 
       111 
     | 
    
         
            -
                  optional :name, :string, 1
         
     | 
| 
       112 
     | 
    
         
            -
                end
         
     | 
| 
       113 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.ListProcessorVersionsRequest" do
         
     | 
| 
       114 
     | 
    
         
            -
                  optional :parent, :string, 1
         
     | 
| 
       115 
     | 
    
         
            -
                  optional :page_size, :int32, 2
         
     | 
| 
       116 
     | 
    
         
            -
                  optional :page_token, :string, 3
         
     | 
| 
       117 
     | 
    
         
            -
                end
         
     | 
| 
       118 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.ListProcessorVersionsResponse" do
         
     | 
| 
       119 
     | 
    
         
            -
                  repeated :processor_versions, :message, 1, "google.cloud.documentai.v1.ProcessorVersion"
         
     | 
| 
       120 
     | 
    
         
            -
                  optional :next_page_token, :string, 2
         
     | 
| 
       121 
     | 
    
         
            -
                end
         
     | 
| 
       122 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.DeleteProcessorVersionRequest" do
         
     | 
| 
       123 
     | 
    
         
            -
                  optional :name, :string, 1
         
     | 
| 
       124 
     | 
    
         
            -
                end
         
     | 
| 
       125 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.DeleteProcessorVersionMetadata" do
         
     | 
| 
       126 
     | 
    
         
            -
                  optional :common_metadata, :message, 1, "google.cloud.documentai.v1.CommonOperationMetadata"
         
     | 
| 
       127 
     | 
    
         
            -
                end
         
     | 
| 
       128 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.DeployProcessorVersionRequest" do
         
     | 
| 
       129 
     | 
    
         
            -
                  optional :name, :string, 1
         
     | 
| 
       130 
     | 
    
         
            -
                end
         
     | 
| 
       131 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.DeployProcessorVersionResponse" do
         
     | 
| 
       132 
     | 
    
         
            -
                end
         
     | 
| 
       133 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.DeployProcessorVersionMetadata" do
         
     | 
| 
       134 
     | 
    
         
            -
                  optional :common_metadata, :message, 1, "google.cloud.documentai.v1.CommonOperationMetadata"
         
     | 
| 
       135 
     | 
    
         
            -
                end
         
     | 
| 
       136 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.UndeployProcessorVersionRequest" do
         
     | 
| 
       137 
     | 
    
         
            -
                  optional :name, :string, 1
         
     | 
| 
       138 
     | 
    
         
            -
                end
         
     | 
| 
       139 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.UndeployProcessorVersionResponse" do
         
     | 
| 
       140 
     | 
    
         
            -
                end
         
     | 
| 
       141 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.UndeployProcessorVersionMetadata" do
         
     | 
| 
       142 
     | 
    
         
            -
                  optional :common_metadata, :message, 1, "google.cloud.documentai.v1.CommonOperationMetadata"
         
     | 
| 
       143 
     | 
    
         
            -
                end
         
     | 
| 
       144 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.CreateProcessorRequest" do
         
     | 
| 
       145 
     | 
    
         
            -
                  optional :parent, :string, 1
         
     | 
| 
       146 
     | 
    
         
            -
                  optional :processor, :message, 2, "google.cloud.documentai.v1.Processor"
         
     | 
| 
       147 
     | 
    
         
            -
                end
         
     | 
| 
       148 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.DeleteProcessorRequest" do
         
     | 
| 
       149 
     | 
    
         
            -
                  optional :name, :string, 1
         
     | 
| 
       150 
     | 
    
         
            -
                end
         
     | 
| 
       151 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.DeleteProcessorMetadata" do
         
     | 
| 
       152 
     | 
    
         
            -
                  optional :common_metadata, :message, 5, "google.cloud.documentai.v1.CommonOperationMetadata"
         
     | 
| 
       153 
     | 
    
         
            -
                end
         
     | 
| 
       154 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.EnableProcessorRequest" do
         
     | 
| 
       155 
     | 
    
         
            -
                  optional :name, :string, 1
         
     | 
| 
       156 
     | 
    
         
            -
                end
         
     | 
| 
       157 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.EnableProcessorResponse" do
         
     | 
| 
       158 
     | 
    
         
            -
                end
         
     | 
| 
       159 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.EnableProcessorMetadata" do
         
     | 
| 
       160 
     | 
    
         
            -
                  optional :common_metadata, :message, 5, "google.cloud.documentai.v1.CommonOperationMetadata"
         
     | 
| 
       161 
     | 
    
         
            -
                end
         
     | 
| 
       162 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.DisableProcessorRequest" do
         
     | 
| 
       163 
     | 
    
         
            -
                  optional :name, :string, 1
         
     | 
| 
       164 
     | 
    
         
            -
                end
         
     | 
| 
       165 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.DisableProcessorResponse" do
         
     | 
| 
       166 
     | 
    
         
            -
                end
         
     | 
| 
       167 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.DisableProcessorMetadata" do
         
     | 
| 
       168 
     | 
    
         
            -
                  optional :common_metadata, :message, 5, "google.cloud.documentai.v1.CommonOperationMetadata"
         
     | 
| 
       169 
     | 
    
         
            -
                end
         
     | 
| 
       170 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.SetDefaultProcessorVersionRequest" do
         
     | 
| 
       171 
     | 
    
         
            -
                  optional :processor, :string, 1
         
     | 
| 
       172 
     | 
    
         
            -
                  optional :default_processor_version, :string, 2
         
     | 
| 
       173 
     | 
    
         
            -
                end
         
     | 
| 
       174 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.SetDefaultProcessorVersionResponse" do
         
     | 
| 
       175 
     | 
    
         
            -
                end
         
     | 
| 
       176 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.SetDefaultProcessorVersionMetadata" do
         
     | 
| 
       177 
     | 
    
         
            -
                  optional :common_metadata, :message, 1, "google.cloud.documentai.v1.CommonOperationMetadata"
         
     | 
| 
       178 
     | 
    
         
            -
                end
         
     | 
| 
       179 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.TrainProcessorVersionRequest" do
         
     | 
| 
       180 
     | 
    
         
            -
                  optional :parent, :string, 1
         
     | 
| 
       181 
     | 
    
         
            -
                  optional :processor_version, :message, 2, "google.cloud.documentai.v1.ProcessorVersion"
         
     | 
| 
       182 
     | 
    
         
            -
                  optional :document_schema, :message, 10, "google.cloud.documentai.v1.DocumentSchema"
         
     | 
| 
       183 
     | 
    
         
            -
                  optional :input_data, :message, 4, "google.cloud.documentai.v1.TrainProcessorVersionRequest.InputData"
         
     | 
| 
       184 
     | 
    
         
            -
                  optional :base_processor_version, :string, 8
         
     | 
| 
       185 
     | 
    
         
            -
                end
         
     | 
| 
       186 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.TrainProcessorVersionRequest.InputData" do
         
     | 
| 
       187 
     | 
    
         
            -
                  optional :training_documents, :message, 3, "google.cloud.documentai.v1.BatchDocumentsInputConfig"
         
     | 
| 
       188 
     | 
    
         
            -
                  optional :test_documents, :message, 4, "google.cloud.documentai.v1.BatchDocumentsInputConfig"
         
     | 
| 
       189 
     | 
    
         
            -
                end
         
     | 
| 
       190 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.TrainProcessorVersionResponse" do
         
     | 
| 
       191 
     | 
    
         
            -
                  optional :processor_version, :string, 1
         
     | 
| 
       192 
     | 
    
         
            -
                end
         
     | 
| 
       193 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.TrainProcessorVersionMetadata" do
         
     | 
| 
       194 
     | 
    
         
            -
                  optional :common_metadata, :message, 1, "google.cloud.documentai.v1.CommonOperationMetadata"
         
     | 
| 
       195 
     | 
    
         
            -
                  optional :training_dataset_validation, :message, 2, "google.cloud.documentai.v1.TrainProcessorVersionMetadata.DatasetValidation"
         
     | 
| 
       196 
     | 
    
         
            -
                  optional :test_dataset_validation, :message, 3, "google.cloud.documentai.v1.TrainProcessorVersionMetadata.DatasetValidation"
         
     | 
| 
       197 
     | 
    
         
            -
                end
         
     | 
| 
       198 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.TrainProcessorVersionMetadata.DatasetValidation" do
         
     | 
| 
       199 
     | 
    
         
            -
                  optional :document_error_count, :int32, 3
         
     | 
| 
       200 
     | 
    
         
            -
                  optional :dataset_error_count, :int32, 4
         
     | 
| 
       201 
     | 
    
         
            -
                  repeated :document_errors, :message, 1, "google.rpc.Status"
         
     | 
| 
       202 
     | 
    
         
            -
                  repeated :dataset_errors, :message, 2, "google.rpc.Status"
         
     | 
| 
       203 
     | 
    
         
            -
                end
         
     | 
| 
       204 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.ReviewDocumentRequest" do
         
     | 
| 
       205 
     | 
    
         
            -
                  optional :human_review_config, :string, 1
         
     | 
| 
       206 
     | 
    
         
            -
                  optional :enable_schema_validation, :bool, 3
         
     | 
| 
       207 
     | 
    
         
            -
                  optional :priority, :enum, 5, "google.cloud.documentai.v1.ReviewDocumentRequest.Priority"
         
     | 
| 
       208 
     | 
    
         
            -
                  optional :document_schema, :message, 6, "google.cloud.documentai.v1.DocumentSchema"
         
     | 
| 
       209 
     | 
    
         
            -
                  oneof :source do
         
     | 
| 
       210 
     | 
    
         
            -
                    optional :inline_document, :message, 4, "google.cloud.documentai.v1.Document"
         
     | 
| 
       211 
     | 
    
         
            -
                  end
         
     | 
| 
       212 
     | 
    
         
            -
                end
         
     | 
| 
       213 
     | 
    
         
            -
                add_enum "google.cloud.documentai.v1.ReviewDocumentRequest.Priority" do
         
     | 
| 
       214 
     | 
    
         
            -
                  value :DEFAULT, 0
         
     | 
| 
       215 
     | 
    
         
            -
                  value :URGENT, 1
         
     | 
| 
       216 
     | 
    
         
            -
                end
         
     | 
| 
       217 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.ReviewDocumentResponse" do
         
     | 
| 
       218 
     | 
    
         
            -
                  optional :gcs_destination, :string, 1
         
     | 
| 
       219 
     | 
    
         
            -
                  optional :state, :enum, 2, "google.cloud.documentai.v1.ReviewDocumentResponse.State"
         
     | 
| 
       220 
     | 
    
         
            -
                  optional :rejection_reason, :string, 3
         
     | 
| 
       221 
     | 
    
         
            -
                end
         
     | 
| 
       222 
     | 
    
         
            -
                add_enum "google.cloud.documentai.v1.ReviewDocumentResponse.State" do
         
     | 
| 
       223 
     | 
    
         
            -
                  value :STATE_UNSPECIFIED, 0
         
     | 
| 
       224 
     | 
    
         
            -
                  value :REJECTED, 1
         
     | 
| 
       225 
     | 
    
         
            -
                  value :SUCCEEDED, 2
         
     | 
| 
       226 
     | 
    
         
            -
                end
         
     | 
| 
       227 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.ReviewDocumentOperationMetadata" do
         
     | 
| 
       228 
     | 
    
         
            -
                  optional :common_metadata, :message, 5, "google.cloud.documentai.v1.CommonOperationMetadata"
         
     | 
| 
       229 
     | 
    
         
            -
                  optional :question_id, :string, 6
         
     | 
| 
       230 
     | 
    
         
            -
                end
         
     | 
| 
       231 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.EvaluateProcessorVersionRequest" do
         
     | 
| 
       232 
     | 
    
         
            -
                  optional :processor_version, :string, 1
         
     | 
| 
       233 
     | 
    
         
            -
                  optional :evaluation_documents, :message, 3, "google.cloud.documentai.v1.BatchDocumentsInputConfig"
         
     | 
| 
       234 
     | 
    
         
            -
                end
         
     | 
| 
       235 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.EvaluateProcessorVersionMetadata" do
         
     | 
| 
       236 
     | 
    
         
            -
                  optional :common_metadata, :message, 1, "google.cloud.documentai.v1.CommonOperationMetadata"
         
     | 
| 
       237 
     | 
    
         
            -
                end
         
     | 
| 
       238 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.EvaluateProcessorVersionResponse" do
         
     | 
| 
       239 
     | 
    
         
            -
                  optional :evaluation, :string, 2
         
     | 
| 
       240 
     | 
    
         
            -
                end
         
     | 
| 
       241 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.GetEvaluationRequest" do
         
     | 
| 
       242 
     | 
    
         
            -
                  optional :name, :string, 1
         
     | 
| 
       243 
     | 
    
         
            -
                end
         
     | 
| 
       244 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.ListEvaluationsRequest" do
         
     | 
| 
       245 
     | 
    
         
            -
                  optional :parent, :string, 1
         
     | 
| 
       246 
     | 
    
         
            -
                  optional :page_size, :int32, 2
         
     | 
| 
       247 
     | 
    
         
            -
                  optional :page_token, :string, 3
         
     | 
| 
       248 
     | 
    
         
            -
                end
         
     | 
| 
       249 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.ListEvaluationsResponse" do
         
     | 
| 
       250 
     | 
    
         
            -
                  repeated :evaluations, :message, 1, "google.cloud.documentai.v1.Evaluation"
         
     | 
| 
       251 
     | 
    
         
            -
                  optional :next_page_token, :string, 2
         
     | 
| 
      
 24 
     | 
    
         
            +
             
     | 
| 
      
 25 
     | 
    
         
            +
            descriptor_data = "\n;google/cloud/documentai/v1/document_processor_service.proto\x12\x1agoogle.cloud.documentai.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a)google/cloud/documentai/v1/document.proto\x1a,google/cloud/documentai/v1/document_io.proto\x1a\x30google/cloud/documentai/v1/document_schema.proto\x1a+google/cloud/documentai/v1/evaluation.proto\x1a\x33google/cloud/documentai/v1/operation_metadata.proto\x1a*google/cloud/documentai/v1/processor.proto\x1a/google/cloud/documentai/v1/processor_type.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\x80\x02\n\x0eProcessRequest\x12?\n\x0finline_document\x18\x04 \x01(\x0b\x32$.google.cloud.documentai.v1.DocumentH\x00\x12?\n\x0craw_document\x18\x05 \x01(\x0b\x32\'.google.cloud.documentai.v1.RawDocumentH\x00\x12\x17\n\x04name\x18\x01 \x01(\tB\t\xe0\x41\x02\xfa\x41\x03\n\x01*\x12\x19\n\x11skip_human_review\x18\x03 \x01(\x08\x12.\n\nfield_mask\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x08\n\x06source\"\xee\x01\n\x11HumanReviewStatus\x12\x42\n\x05state\x18\x01 \x01(\x0e\x32\x33.google.cloud.documentai.v1.HumanReviewStatus.State\x12\x15\n\rstate_message\x18\x02 \x01(\t\x12\x1e\n\x16human_review_operation\x18\x03 \x01(\t\"^\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07SKIPPED\x10\x01\x12\x15\n\x11VALIDATION_PASSED\x10\x02\x12\x0f\n\x0bIN_PROGRESS\x10\x03\x12\t\n\x05\x45RROR\x10\x04\"\x95\x01\n\x0fProcessResponse\x12\x36\n\x08\x64ocument\x18\x01 \x01(\x0b\x32$.google.cloud.documentai.v1.Document\x12J\n\x13human_review_status\x18\x03 \x01(\x0b\x32-.google.cloud.documentai.v1.HumanReviewStatus\"\xeb\x01\n\x13\x42\x61tchProcessRequest\x12\x17\n\x04name\x18\x01 \x01(\tB\t\xe0\x41\x02\xfa\x41\x03\n\x01*\x12N\n\x0finput_documents\x18\x05 \x01(\x0b\x32\x35.google.cloud.documentai.v1.BatchDocumentsInputConfig\x12P\n\x16\x64ocument_output_config\x18\x06 \x01(\x0b\x32\x30.google.cloud.documentai.v1.DocumentOutputConfig\x12\x19\n\x11skip_human_review\x18\x04 \x01(\x08\"\x16\n\x14\x42\x61tchProcessResponse\"\xff\x04\n\x14\x42\x61tchProcessMetadata\x12\x45\n\x05state\x18\x01 \x01(\x0e\x32\x36.google.cloud.documentai.v1.BatchProcessMetadata.State\x12\x15\n\rstate_message\x18\x02 \x01(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12m\n\x1bindividual_process_statuses\x18\x05 \x03(\x0b\x32H.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus\x1a\xc3\x01\n\x17IndividualProcessStatus\x12\x18\n\x10input_gcs_source\x18\x01 \x01(\t\x12\"\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\x12\x1e\n\x16output_gcs_destination\x18\x03 \x01(\t\x12J\n\x13human_review_status\x18\x05 \x01(\x0b\x32-.google.cloud.documentai.v1.HumanReviewStatus\"r\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07WAITING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\x0e\n\nCANCELLING\x10\x04\x12\r\n\tCANCELLED\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\"]\n\x1a\x46\x65tchProcessorTypesRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'documentai.googleapis.com/ProcessorType\"a\n\x1b\x46\x65tchProcessorTypesResponse\x12\x42\n\x0fprocessor_types\x18\x01 \x03(\x0b\x32).google.cloud.documentai.v1.ProcessorType\"\x83\x01\n\x19ListProcessorTypesRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'documentai.googleapis.com/ProcessorType\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"y\n\x1aListProcessorTypesResponse\x12\x42\n\x0fprocessor_types\x18\x01 \x03(\x0b\x32).google.cloud.documentai.v1.ProcessorType\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"{\n\x15ListProcessorsRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#documentai.googleapis.com/Processor\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"l\n\x16ListProcessorsResponse\x12\x39\n\nprocessors\x18\x01 \x03(\x0b\x32%.google.cloud.documentai.v1.Processor\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"X\n\x17GetProcessorTypeRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'documentai.googleapis.com/ProcessorType\"P\n\x13GetProcessorRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\"^\n\x1aGetProcessorVersionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"\x89\x01\n\x1cListProcessorVersionsRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*documentai.googleapis.com/ProcessorVersion\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x82\x01\n\x1dListProcessorVersionsResponse\x12H\n\x12processor_versions\x18\x01 \x03(\x0b\x32,.google.cloud.documentai.v1.ProcessorVersion\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"a\n\x1d\x44\x65leteProcessorVersionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"n\n\x1e\x44\x65leteProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"a\n\x1d\x44\x65ployProcessorVersionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\" \n\x1e\x44\x65ployProcessorVersionResponse\"n\n\x1e\x44\x65ployProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"c\n\x1fUndeployProcessorVersionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"\"\n UndeployProcessorVersionResponse\"p\n UndeployProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"\x94\x01\n\x16\x43reateProcessorRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#documentai.googleapis.com/Processor\x12=\n\tprocessor\x18\x02 \x01(\x0b\x32%.google.cloud.documentai.v1.ProcessorB\x03\xe0\x41\x02\"S\n\x16\x44\x65leteProcessorRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\"g\n\x17\x44\x65leteProcessorMetadata\x12L\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"S\n\x16\x45nableProcessorRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\"\x19\n\x17\x45nableProcessorResponse\"g\n\x17\x45nableProcessorMetadata\x12L\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"T\n\x17\x44isableProcessorRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\"\x1a\n\x18\x44isableProcessorResponse\"h\n\x18\x44isableProcessorMetadata\x12L\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"\xba\x01\n!SetDefaultProcessorVersionRequest\x12>\n\tprocessor\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\x12U\n\x19\x64\x65\x66\x61ult_processor_version\x18\x02 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"$\n\"SetDefaultProcessorVersionResponse\"r\n\"SetDefaultProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"\xa5\x04\n\x1cTrainProcessorVersionRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\x12L\n\x11processor_version\x18\x02 \x01(\x0b\x32,.google.cloud.documentai.v1.ProcessorVersionB\x03\xe0\x41\x02\x12H\n\x0f\x64ocument_schema\x18\n \x01(\x0b\x32*.google.cloud.documentai.v1.DocumentSchemaB\x03\xe0\x41\x01\x12[\n\ninput_data\x18\x04 \x01(\x0b\x32\x42.google.cloud.documentai.v1.TrainProcessorVersionRequest.InputDataB\x03\xe0\x41\x01\x12#\n\x16\x62\x61se_processor_version\x18\x08 \x01(\tB\x03\xe0\x41\x01\x1a\xad\x01\n\tInputData\x12Q\n\x12training_documents\x18\x03 \x01(\x0b\x32\x35.google.cloud.documentai.v1.BatchDocumentsInputConfig\x12M\n\x0etest_documents\x18\x04 \x01(\x0b\x32\x35.google.cloud.documentai.v1.BatchDocumentsInputConfig\":\n\x1dTrainProcessorVersionResponse\x12\x19\n\x11processor_version\x18\x01 \x01(\t\"\xf7\x03\n\x1dTrainProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\x12p\n\x1btraining_dataset_validation\x18\x02 \x01(\x0b\x32K.google.cloud.documentai.v1.TrainProcessorVersionMetadata.DatasetValidation\x12l\n\x17test_dataset_validation\x18\x03 \x01(\x0b\x32K.google.cloud.documentai.v1.TrainProcessorVersionMetadata.DatasetValidation\x1a\xa7\x01\n\x11\x44\x61tasetValidation\x12\x1c\n\x14\x64ocument_error_count\x18\x03 \x01(\x05\x12\x1b\n\x13\x64\x61taset_error_count\x18\x04 \x01(\x05\x12+\n\x0f\x64ocument_errors\x18\x01 \x03(\x0b\x32\x12.google.rpc.Status\x12*\n\x0e\x64\x61taset_errors\x18\x02 \x03(\x0b\x32\x12.google.rpc.Status\"\x8e\x03\n\x15ReviewDocumentRequest\x12?\n\x0finline_document\x18\x04 \x01(\x0b\x32$.google.cloud.documentai.v1.DocumentH\x00\x12P\n\x13human_review_config\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+documentai.googleapis.com/HumanReviewConfig\x12 \n\x18\x65nable_schema_validation\x18\x03 \x01(\x08\x12L\n\x08priority\x18\x05 \x01(\x0e\x32:.google.cloud.documentai.v1.ReviewDocumentRequest.Priority\x12\x43\n\x0f\x64ocument_schema\x18\x06 \x01(\x0b\x32*.google.cloud.documentai.v1.DocumentSchema\"#\n\x08Priority\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x00\x12\n\n\x06URGENT\x10\x01\x42\x08\n\x06source\"\xd1\x01\n\x16ReviewDocumentResponse\x12\x17\n\x0fgcs_destination\x18\x01 \x01(\t\x12G\n\x05state\x18\x02 \x01(\x0e\x32\x38.google.cloud.documentai.v1.ReviewDocumentResponse.State\x12\x18\n\x10rejection_reason\x18\x03 \x01(\t\";\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08REJECTED\x10\x01\x12\r\n\tSUCCEEDED\x10\x02\"\x84\x01\n\x1fReviewDocumentOperationMetadata\x12L\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\x12\x13\n\x0bquestion_id\x18\x06 \x01(\t\"\xca\x01\n\x1f\x45valuateProcessorVersionRequest\x12M\n\x11processor_version\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\x12X\n\x14\x65valuation_documents\x18\x03 \x01(\x0b\x32\x35.google.cloud.documentai.v1.BatchDocumentsInputConfigB\x03\xe0\x41\x01\"p\n EvaluateProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"6\n EvaluateProcessorVersionResponse\x12\x12\n\nevaluation\x18\x02 \x01(\t\"R\n\x14GetEvaluationRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$documentai.googleapis.com/Evaluation\"\x83\x01\n\x16ListEvaluationsRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"o\n\x17ListEvaluationsResponse\x12;\n\x0b\x65valuations\x18\x01 \x03(\x0b\x32&.google.cloud.documentai.v1.Evaluation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\x9c*\n\x18\x44ocumentProcessorService\x12\x87\x02\n\x0fProcessDocument\x12*.google.cloud.documentai.v1.ProcessRequest\x1a+.google.cloud.documentai.v1.ProcessResponse\"\x9a\x01\x82\xd3\xe4\x93\x02\x8c\x01\"6/v1/{name=projects/*/locations/*/processors/*}:process:\x01*ZO\"J/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}:process:\x01*\xda\x41\x04name\x12\xbd\x02\n\x15\x42\x61tchProcessDocuments\x12/.google.cloud.documentai.v1.BatchProcessRequest\x1a\x1d.google.longrunning.Operation\"\xd3\x01\x82\xd3\xe4\x93\x02\x96\x01\";/v1/{name=projects/*/locations/*/processors/*}:batchProcess:\x01*ZT\"O/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}:batchProcess:\x01*\xda\x41\x04name\xca\x41,\n\x14\x42\x61tchProcessResponse\x12\x14\x42\x61tchProcessMetadata\x12\xd0\x01\n\x13\x46\x65tchProcessorTypes\x12\x36.google.cloud.documentai.v1.FetchProcessorTypesRequest\x1a\x37.google.cloud.documentai.v1.FetchProcessorTypesResponse\"H\x82\xd3\xe4\x93\x02\x39\x12\x37/v1/{parent=projects/*/locations/*}:fetchProcessorTypes\xda\x41\x06parent\x12\xc8\x01\n\x12ListProcessorTypes\x12\x35.google.cloud.documentai.v1.ListProcessorTypesRequest\x1a\x36.google.cloud.documentai.v1.ListProcessorTypesResponse\"C\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{parent=projects/*/locations/*}/processorTypes\xda\x41\x06parent\x12\xb5\x01\n\x10GetProcessorType\x12\x33.google.cloud.documentai.v1.GetProcessorTypeRequest\x1a).google.cloud.documentai.v1.ProcessorType\"A\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{name=projects/*/locations/*/processorTypes/*}\xda\x41\x04name\x12\xb8\x01\n\x0eListProcessors\x12\x31.google.cloud.documentai.v1.ListProcessorsRequest\x1a\x32.google.cloud.documentai.v1.ListProcessorsResponse\"?\x82\xd3\xe4\x93\x02\x30\x12./v1/{parent=projects/*/locations/*}/processors\xda\x41\x06parent\x12\xa5\x01\n\x0cGetProcessor\x12/.google.cloud.documentai.v1.GetProcessorRequest\x1a%.google.cloud.documentai.v1.Processor\"=\x82\xd3\xe4\x93\x02\x30\x12./v1/{name=projects/*/locations/*/processors/*}\xda\x41\x04name\x12\xa2\x02\n\x15TrainProcessorVersion\x12\x38.google.cloud.documentai.v1.TrainProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xaf\x01\x82\xd3\xe4\x93\x02M\"H/v1/{parent=projects/*/locations/*/processors/*}/processorVersions:train:\x01*\xda\x41\x18parent,processor_version\xca\x41>\n\x1dTrainProcessorVersionResponse\x12\x1dTrainProcessorVersionMetadata\x12\xce\x01\n\x13GetProcessorVersion\x12\x36.google.cloud.documentai.v1.GetProcessorVersionRequest\x1a,.google.cloud.documentai.v1.ProcessorVersion\"Q\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}\xda\x41\x04name\x12\xe1\x01\n\x15ListProcessorVersions\x12\x38.google.cloud.documentai.v1.ListProcessorVersionsRequest\x1a\x39.google.cloud.documentai.v1.ListProcessorVersionsResponse\"S\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/{parent=projects/*/locations/*/processors/*}/processorVersions\xda\x41\x06parent\x12\x80\x02\n\x16\x44\x65leteProcessorVersion\x12\x39.google.cloud.documentai.v1.DeleteProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\x8b\x01\x82\xd3\xe4\x93\x02\x44*B/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}\xda\x41\x04name\xca\x41\x37\n\x15google.protobuf.Empty\x12\x1e\x44\x65leteProcessorVersionMetadata\x12\x93\x02\n\x16\x44\x65ployProcessorVersion\x12\x39.google.cloud.documentai.v1.DeployProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\x9e\x01\x82\xd3\xe4\x93\x02N\"I/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}:deploy:\x01*\xda\x41\x04name\xca\x41@\n\x1e\x44\x65ployProcessorVersionResponse\x12\x1e\x44\x65ployProcessorVersionMetadata\x12\x9d\x02\n\x18UndeployProcessorVersion\x12;.google.cloud.documentai.v1.UndeployProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xa4\x01\x82\xd3\xe4\x93\x02P\"K/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}:undeploy:\x01*\xda\x41\x04name\xca\x41\x44\n UndeployProcessorVersionResponse\x12 UndeployProcessorVersionMetadata\x12\xc2\x01\n\x0f\x43reateProcessor\x12\x32.google.cloud.documentai.v1.CreateProcessorRequest\x1a%.google.cloud.documentai.v1.Processor\"T\x82\xd3\xe4\x93\x02;\"./v1/{parent=projects/*/locations/*}/processors:\tprocessor\xda\x41\x10parent,processor\x12\xd6\x01\n\x0f\x44\x65leteProcessor\x12\x32.google.cloud.documentai.v1.DeleteProcessorRequest\x1a\x1d.google.longrunning.Operation\"p\x82\xd3\xe4\x93\x02\x30*./v1/{name=projects/*/locations/*/processors/*}\xda\x41\x04name\xca\x41\x30\n\x15google.protobuf.Empty\x12\x17\x44\x65leteProcessorMetadata\x12\xdb\x01\n\x0f\x45nableProcessor\x12\x32.google.cloud.documentai.v1.EnableProcessorRequest\x1a\x1d.google.longrunning.Operation\"u\x82\xd3\xe4\x93\x02:\"5/v1/{name=projects/*/locations/*/processors/*}:enable:\x01*\xca\x41\x32\n\x17\x45nableProcessorResponse\x12\x17\x45nableProcessorMetadata\x12\xe0\x01\n\x10\x44isableProcessor\x12\x33.google.cloud.documentai.v1.DisableProcessorRequest\x1a\x1d.google.longrunning.Operation\"x\x82\xd3\xe4\x93\x02;\"6/v1/{name=projects/*/locations/*/processors/*}:disable:\x01*\xca\x41\x34\n\x18\x44isableProcessorResponse\x12\x18\x44isableProcessorMetadata\x12\xa1\x02\n\x1aSetDefaultProcessorVersion\x12=.google.cloud.documentai.v1.SetDefaultProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xa4\x01\x82\xd3\xe4\x93\x02S\"N/v1/{processor=projects/*/locations/*/processors/*}:setDefaultProcessorVersion:\x01*\xca\x41H\n\"SetDefaultProcessorVersionResponse\x12\"SetDefaultProcessorVersionMetadata\x12\xa0\x02\n\x0eReviewDocument\x12\x31.google.cloud.documentai.v1.ReviewDocumentRequest\x1a\x1d.google.longrunning.Operation\"\xbb\x01\x82\xd3\xe4\x93\x02\x63\"^/v1/{human_review_config=projects/*/locations/*/processors/*/humanReviewConfig}:reviewDocument:\x01*\xda\x41\x13human_review_config\xca\x41\x39\n\x16ReviewDocumentResponse\x12\x1fReviewDocumentOperationMetadata\x12\xc7\x02\n\x18\x45valuateProcessorVersion\x12;.google.cloud.documentai.v1.EvaluateProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xce\x01\x82\xd3\xe4\x93\x02m\"h/v1/{processor_version=projects/*/locations/*/processors/*/processorVersions/*}:evaluateProcessorVersion:\x01*\xda\x41\x11processor_version\xca\x41\x44\n EvaluateProcessorVersionResponse\x12 EvaluateProcessorVersionMetadata\x12\xca\x01\n\rGetEvaluation\x12\x30.google.cloud.documentai.v1.GetEvaluationRequest\x1a&.google.cloud.documentai.v1.Evaluation\"_\x82\xd3\xe4\x93\x02R\x12P/v1/{name=projects/*/locations/*/processors/*/processorVersions/*/evaluations/*}\xda\x41\x04name\x12\xdd\x01\n\x0fListEvaluations\x12\x32.google.cloud.documentai.v1.ListEvaluationsRequest\x1a\x33.google.cloud.documentai.v1.ListEvaluationsResponse\"a\x82\xd3\xe4\x93\x02R\x12P/v1/{parent=projects/*/locations/*/processors/*/processorVersions/*}/evaluations\xda\x41\x06parent\x1aM\xca\x41\x19\x64ocumentai.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xaa\x03\n\x1e\x63om.google.cloud.documentai.v1B\x1a\x44ocumentAiProcessorServiceP\x01Z>cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb\xaa\x02\x1aGoogle.Cloud.DocumentAI.V1\xca\x02\x1aGoogle\\Cloud\\DocumentAI\\V1\xea\x02\x1dGoogle::Cloud::DocumentAI::V1\xea\x41\x7f\n+documentai.googleapis.com/HumanReviewConfig\x12Pprojects/{project}/locations/{location}/processors/{processor}/humanReviewConfig\xea\x41M\n\"documentai.googleapis.com/Location\x12\'projects/{project}/locations/{location}b\x06proto3"
         
     | 
| 
      
 26 
     | 
    
         
            +
             
     | 
| 
      
 27 
     | 
    
         
            +
            pool = Google::Protobuf::DescriptorPool.generated_pool
         
     | 
| 
      
 28 
     | 
    
         
            +
             
     | 
| 
      
 29 
     | 
    
         
            +
            begin
         
     | 
| 
      
 30 
     | 
    
         
            +
              pool.add_serialized_file(descriptor_data)
         
     | 
| 
      
 31 
     | 
    
         
            +
            rescue TypeError => e
         
     | 
| 
      
 32 
     | 
    
         
            +
              # Compatibility code: will be removed in the next major version.
         
     | 
| 
      
 33 
     | 
    
         
            +
              require 'google/protobuf/descriptor_pb'
         
     | 
| 
      
 34 
     | 
    
         
            +
              parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
         
     | 
| 
      
 35 
     | 
    
         
            +
              parsed.clear_dependency
         
     | 
| 
      
 36 
     | 
    
         
            +
              serialized = parsed.class.encode(parsed)
         
     | 
| 
      
 37 
     | 
    
         
            +
              file = pool.add_serialized_file(serialized)
         
     | 
| 
      
 38 
     | 
    
         
            +
              warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
         
     | 
| 
      
 39 
     | 
    
         
            +
              imports = [
         
     | 
| 
      
 40 
     | 
    
         
            +
                ["google.cloud.documentai.v1.Document", "google/cloud/documentai/v1/document.proto"],
         
     | 
| 
      
 41 
     | 
    
         
            +
                ["google.cloud.documentai.v1.RawDocument", "google/cloud/documentai/v1/document_io.proto"],
         
     | 
| 
      
 42 
     | 
    
         
            +
                ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
         
     | 
| 
      
 43 
     | 
    
         
            +
                ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
         
     | 
| 
      
 44 
     | 
    
         
            +
                ["google.rpc.Status", "google/rpc/status.proto"],
         
     | 
| 
      
 45 
     | 
    
         
            +
                ["google.cloud.documentai.v1.ProcessorType", "google/cloud/documentai/v1/processor_type.proto"],
         
     | 
| 
      
 46 
     | 
    
         
            +
                ["google.cloud.documentai.v1.Processor", "google/cloud/documentai/v1/processor.proto"],
         
     | 
| 
      
 47 
     | 
    
         
            +
                ["google.cloud.documentai.v1.CommonOperationMetadata", "google/cloud/documentai/v1/operation_metadata.proto"],
         
     | 
| 
      
 48 
     | 
    
         
            +
                ["google.cloud.documentai.v1.DocumentSchema", "google/cloud/documentai/v1/document_schema.proto"],
         
     | 
| 
      
 49 
     | 
    
         
            +
                ["google.cloud.documentai.v1.Evaluation", "google/cloud/documentai/v1/evaluation.proto"],
         
     | 
| 
      
 50 
     | 
    
         
            +
              ]
         
     | 
| 
      
 51 
     | 
    
         
            +
              imports.each do |type_name, expected_filename|
         
     | 
| 
      
 52 
     | 
    
         
            +
                import_file = pool.lookup(type_name).file_descriptor
         
     | 
| 
      
 53 
     | 
    
         
            +
                if import_file.name != expected_filename
         
     | 
| 
      
 54 
     | 
    
         
            +
                  warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
         
     | 
| 
       252 
55 
     | 
    
         
             
                end
         
     | 
| 
       253 
56 
     | 
    
         
             
              end
         
     | 
| 
      
 57 
     | 
    
         
            +
              warn "Each proto file must use a consistent fully-qualified name."
         
     | 
| 
      
 58 
     | 
    
         
            +
              warn "This will become an error in the next major version."
         
     | 
| 
       254 
59 
     | 
    
         
             
            end
         
     | 
| 
       255 
60 
     | 
    
         | 
| 
       256 
61 
     | 
    
         
             
            module Google
         
     | 
| 
         @@ -1,47 +1,34 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # frozen_string_literal: true
         
     | 
| 
       1 
2 
     | 
    
         
             
            # Generated by the protocol buffer compiler.  DO NOT EDIT!
         
     | 
| 
       2 
3 
     | 
    
         
             
            # source: google/cloud/documentai/v1/document_schema.proto
         
     | 
| 
       3 
4 
     | 
    
         | 
| 
       4 
5 
     | 
    
         
             
            require 'google/protobuf'
         
     | 
| 
       5 
6 
     | 
    
         | 
| 
       6 
     | 
    
         
            -
             
     | 
| 
       7 
     | 
    
         
            -
             
     | 
| 
       8 
     | 
    
         
            -
             
     | 
| 
       9 
     | 
    
         
            -
             
     | 
| 
       10 
     | 
    
         
            -
             
     | 
| 
       11 
     | 
    
         
            -
             
     | 
| 
       12 
     | 
    
         
            -
             
     | 
| 
       13 
     | 
    
         
            -
             
     | 
| 
       14 
     | 
    
         
            -
             
     | 
| 
       15 
     | 
    
         
            -
             
     | 
| 
       16 
     | 
    
         
            -
             
     | 
| 
       17 
     | 
    
         
            -
             
     | 
| 
       18 
     | 
    
         
            -
             
     | 
| 
       19 
     | 
    
         
            -
             
     | 
| 
       20 
     | 
    
         
            -
             
     | 
| 
       21 
     | 
    
         
            -
             
     | 
| 
       22 
     | 
    
         
            -
             
     | 
| 
       23 
     | 
    
         
            -
             
     | 
| 
       24 
     | 
    
         
            -
             
     | 
| 
       25 
     | 
    
         
            -
                 
     | 
| 
       26 
     | 
    
         
            -
             
     | 
| 
       27 
     | 
    
         
            -
                  optional :name, :string, 1
         
     | 
| 
       28 
     | 
    
         
            -
                  optional :value_type, :string, 2
         
     | 
| 
       29 
     | 
    
         
            -
                  optional :occurrence_type, :enum, 3, "google.cloud.documentai.v1.DocumentSchema.EntityType.Property.OccurrenceType"
         
     | 
| 
       30 
     | 
    
         
            -
                end
         
     | 
| 
       31 
     | 
    
         
            -
                add_enum "google.cloud.documentai.v1.DocumentSchema.EntityType.Property.OccurrenceType" do
         
     | 
| 
       32 
     | 
    
         
            -
                  value :OCCURRENCE_TYPE_UNSPECIFIED, 0
         
     | 
| 
       33 
     | 
    
         
            -
                  value :OPTIONAL_ONCE, 1
         
     | 
| 
       34 
     | 
    
         
            -
                  value :OPTIONAL_MULTIPLE, 2
         
     | 
| 
       35 
     | 
    
         
            -
                  value :REQUIRED_ONCE, 3
         
     | 
| 
       36 
     | 
    
         
            -
                  value :REQUIRED_MULTIPLE, 4
         
     | 
| 
       37 
     | 
    
         
            -
                end
         
     | 
| 
       38 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.DocumentSchema.Metadata" do
         
     | 
| 
       39 
     | 
    
         
            -
                  optional :document_splitter, :bool, 1
         
     | 
| 
       40 
     | 
    
         
            -
                  optional :document_allow_multiple_labels, :bool, 2
         
     | 
| 
       41 
     | 
    
         
            -
                  optional :prefixed_naming_on_properties, :bool, 6
         
     | 
| 
       42 
     | 
    
         
            -
                  optional :skip_naming_validation, :bool, 7
         
     | 
| 
      
 7 
     | 
    
         
            +
             
     | 
| 
      
 8 
     | 
    
         
            +
            descriptor_data = "\n0google/cloud/documentai/v1/document_schema.proto\x12\x1agoogle.cloud.documentai.v1\"\xa7\x07\n\x0e\x44ocumentSchema\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12K\n\x0c\x65ntity_types\x18\x03 \x03(\x0b\x32\x35.google.cloud.documentai.v1.DocumentSchema.EntityType\x12\x45\n\x08metadata\x18\x04 \x01(\x0b\x32\x33.google.cloud.documentai.v1.DocumentSchema.Metadata\x1a\xbe\x04\n\nEntityType\x12W\n\x0b\x65num_values\x18\x0e \x01(\x0b\x32@.google.cloud.documentai.v1.DocumentSchema.EntityType.EnumValuesH\x00\x12\x14\n\x0c\x64isplay_name\x18\r \x01(\t\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nbase_types\x18\x02 \x03(\t\x12R\n\nproperties\x18\x06 \x03(\x0b\x32>.google.cloud.documentai.v1.DocumentSchema.EntityType.Property\x1a\x1c\n\nEnumValues\x12\x0e\n\x06values\x18\x01 \x03(\t\x1a\x9c\x02\n\x08Property\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nvalue_type\x18\x02 \x01(\t\x12\x66\n\x0foccurrence_type\x18\x03 \x01(\x0e\x32M.google.cloud.documentai.v1.DocumentSchema.EntityType.Property.OccurrenceType\"\x85\x01\n\x0eOccurrenceType\x12\x1f\n\x1bOCCURRENCE_TYPE_UNSPECIFIED\x10\x00\x12\x11\n\rOPTIONAL_ONCE\x10\x01\x12\x15\n\x11OPTIONAL_MULTIPLE\x10\x02\x12\x11\n\rREQUIRED_ONCE\x10\x03\x12\x15\n\x11REQUIRED_MULTIPLE\x10\x04\x42\x0e\n\x0cvalue_source\x1a\x94\x01\n\x08Metadata\x12\x19\n\x11\x64ocument_splitter\x18\x01 \x01(\x08\x12&\n\x1e\x64ocument_allow_multiple_labels\x18\x02 \x01(\x08\x12%\n\x1dprefixed_naming_on_properties\x18\x06 \x01(\x08\x12\x1e\n\x16skip_naming_validation\x18\x07 \x01(\x08\x42\xd6\x01\n\x1e\x63om.google.cloud.documentai.v1B\x18\x44ocumentAiDocumentSchemaP\x01Z>cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb\xaa\x02\x1aGoogle.Cloud.DocumentAI.V1\xca\x02\x1aGoogle\\Cloud\\DocumentAI\\V1\xea\x02\x1dGoogle::Cloud::DocumentAI::V1b\x06proto3"
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
      
 10 
     | 
    
         
            +
            pool = Google::Protobuf::DescriptorPool.generated_pool
         
     | 
| 
      
 11 
     | 
    
         
            +
             
     | 
| 
      
 12 
     | 
    
         
            +
            begin
         
     | 
| 
      
 13 
     | 
    
         
            +
              pool.add_serialized_file(descriptor_data)
         
     | 
| 
      
 14 
     | 
    
         
            +
            rescue TypeError => e
         
     | 
| 
      
 15 
     | 
    
         
            +
              # Compatibility code: will be removed in the next major version.
         
     | 
| 
      
 16 
     | 
    
         
            +
              require 'google/protobuf/descriptor_pb'
         
     | 
| 
      
 17 
     | 
    
         
            +
              parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
         
     | 
| 
      
 18 
     | 
    
         
            +
              parsed.clear_dependency
         
     | 
| 
      
 19 
     | 
    
         
            +
              serialized = parsed.class.encode(parsed)
         
     | 
| 
      
 20 
     | 
    
         
            +
              file = pool.add_serialized_file(serialized)
         
     | 
| 
      
 21 
     | 
    
         
            +
              warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
         
     | 
| 
      
 22 
     | 
    
         
            +
              imports = [
         
     | 
| 
      
 23 
     | 
    
         
            +
              ]
         
     | 
| 
      
 24 
     | 
    
         
            +
              imports.each do |type_name, expected_filename|
         
     | 
| 
      
 25 
     | 
    
         
            +
                import_file = pool.lookup(type_name).file_descriptor
         
     | 
| 
      
 26 
     | 
    
         
            +
                if import_file.name != expected_filename
         
     | 
| 
      
 27 
     | 
    
         
            +
                  warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
         
     | 
| 
       43 
28 
     | 
    
         
             
                end
         
     | 
| 
       44 
29 
     | 
    
         
             
              end
         
     | 
| 
      
 30 
     | 
    
         
            +
              warn "Each proto file must use a consistent fully-qualified name."
         
     | 
| 
      
 31 
     | 
    
         
            +
              warn "This will become an error in the next major version."
         
     | 
| 
       45 
32 
     | 
    
         
             
            end
         
     | 
| 
       46 
33 
     | 
    
         | 
| 
       47 
34 
     | 
    
         
             
            module Google
         
     | 
| 
         @@ -1,3 +1,4 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # frozen_string_literal: true
         
     | 
| 
       1 
2 
     | 
    
         
             
            # Generated by the protocol buffer compiler.  DO NOT EDIT!
         
     | 
| 
       2 
3 
     | 
    
         
             
            # source: google/cloud/documentai/v1/evaluation.proto
         
     | 
| 
       3 
4 
     | 
    
         | 
| 
         @@ -6,60 +7,32 @@ require 'google/protobuf' 
     | 
|
| 
       6 
7 
     | 
    
         
             
            require 'google/api/resource_pb'
         
     | 
| 
       7 
8 
     | 
    
         
             
            require 'google/protobuf/timestamp_pb'
         
     | 
| 
       8 
9 
     | 
    
         | 
| 
       9 
     | 
    
         
            -
             
     | 
| 
       10 
     | 
    
         
            -
             
     | 
| 
       11 
     | 
    
         
            -
             
     | 
| 
       12 
     | 
    
         
            -
             
     | 
| 
       13 
     | 
    
         
            -
             
     | 
| 
       14 
     | 
    
         
            -
             
     | 
| 
       15 
     | 
    
         
            -
             
     | 
| 
       16 
     | 
    
         
            -
             
     | 
| 
       17 
     | 
    
         
            -
             
     | 
| 
       18 
     | 
    
         
            -
             
     | 
| 
       19 
     | 
    
         
            -
             
     | 
| 
       20 
     | 
    
         
            -
             
     | 
| 
       21 
     | 
    
         
            -
             
     | 
| 
       22 
     | 
    
         
            -
             
     | 
| 
       23 
     | 
    
         
            -
             
     | 
| 
       24 
     | 
    
         
            -
             
     | 
| 
       25 
     | 
    
         
            -
                 
     | 
| 
       26 
     | 
    
         
            -
             
     | 
| 
       27 
     | 
    
         
            -
             
     | 
| 
       28 
     | 
    
         
            -
             
     | 
| 
       29 
     | 
    
         
            -
             
     | 
| 
       30 
     | 
    
         
            -
                   
     | 
| 
       31 
     | 
    
         
            -
                end
         
     | 
| 
       32 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.Evaluation.Metrics" do
         
     | 
| 
       33 
     | 
    
         
            -
                  optional :precision, :float, 1
         
     | 
| 
       34 
     | 
    
         
            -
                  optional :recall, :float, 2
         
     | 
| 
       35 
     | 
    
         
            -
                  optional :f1_score, :float, 3
         
     | 
| 
       36 
     | 
    
         
            -
                  optional :predicted_occurrences_count, :int32, 4
         
     | 
| 
       37 
     | 
    
         
            -
                  optional :ground_truth_occurrences_count, :int32, 5
         
     | 
| 
       38 
     | 
    
         
            -
                  optional :predicted_document_count, :int32, 10
         
     | 
| 
       39 
     | 
    
         
            -
                  optional :ground_truth_document_count, :int32, 11
         
     | 
| 
       40 
     | 
    
         
            -
                  optional :true_positives_count, :int32, 6
         
     | 
| 
       41 
     | 
    
         
            -
                  optional :false_positives_count, :int32, 7
         
     | 
| 
       42 
     | 
    
         
            -
                  optional :false_negatives_count, :int32, 8
         
     | 
| 
       43 
     | 
    
         
            -
                  optional :total_documents_count, :int32, 9
         
     | 
| 
       44 
     | 
    
         
            -
                end
         
     | 
| 
       45 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics" do
         
     | 
| 
       46 
     | 
    
         
            -
                  optional :confidence_level, :float, 1
         
     | 
| 
       47 
     | 
    
         
            -
                  optional :metrics, :message, 2, "google.cloud.documentai.v1.Evaluation.Metrics"
         
     | 
| 
       48 
     | 
    
         
            -
                end
         
     | 
| 
       49 
     | 
    
         
            -
                add_message "google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics" do
         
     | 
| 
       50 
     | 
    
         
            -
                  repeated :confidence_level_metrics, :message, 1, "google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics"
         
     | 
| 
       51 
     | 
    
         
            -
                  repeated :confidence_level_metrics_exact, :message, 4, "google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics"
         
     | 
| 
       52 
     | 
    
         
            -
                  optional :auprc, :float, 2
         
     | 
| 
       53 
     | 
    
         
            -
                  optional :estimated_calibration_error, :float, 3
         
     | 
| 
       54 
     | 
    
         
            -
                  optional :auprc_exact, :float, 5
         
     | 
| 
       55 
     | 
    
         
            -
                  optional :estimated_calibration_error_exact, :float, 6
         
     | 
| 
       56 
     | 
    
         
            -
                  optional :metrics_type, :enum, 7, "google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics.MetricsType"
         
     | 
| 
       57 
     | 
    
         
            -
                end
         
     | 
| 
       58 
     | 
    
         
            -
                add_enum "google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics.MetricsType" do
         
     | 
| 
       59 
     | 
    
         
            -
                  value :METRICS_TYPE_UNSPECIFIED, 0
         
     | 
| 
       60 
     | 
    
         
            -
                  value :AGGREGATE, 1
         
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
            descriptor_data = "\n+google/cloud/documentai/v1/evaluation.proto\x12\x1agoogle.cloud.documentai.v1\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x83\x02\n\x13\x45valuationReference\x12\x11\n\toperation\x18\x01 \x01(\t\x12=\n\nevaluation\x18\x02 \x01(\tB)\xfa\x41&\n$documentai.googleapis.com/Evaluation\x12I\n\x11\x61ggregate_metrics\x18\x04 \x01(\x0b\x32..google.cloud.documentai.v1.Evaluation.Metrics\x12O\n\x17\x61ggregate_metrics_exact\x18\x05 \x01(\x0b\x32..google.cloud.documentai.v1.Evaluation.Metrics\"\xe5\r\n\nEvaluation\x12\x0c\n\x04name\x18\x01 \x01(\t\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12J\n\x11\x64ocument_counters\x18\x05 \x01(\x0b\x32/.google.cloud.documentai.v1.Evaluation.Counters\x12[\n\x14\x61ll_entities_metrics\x18\x03 \x01(\x0b\x32=.google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics\x12Q\n\x0e\x65ntity_metrics\x18\x04 \x03(\x0b\x32\x39.google.cloud.documentai.v1.Evaluation.EntityMetricsEntry\x12\x14\n\x0ckms_key_name\x18\x06 \x01(\t\x12\x1c\n\x14kms_key_version_name\x18\x07 \x01(\t\x1a\x8d\x01\n\x08\x43ounters\x12\x1d\n\x15input_documents_count\x18\x01 \x01(\x05\x12\x1f\n\x17invalid_documents_count\x18\x02 \x01(\x05\x12\x1e\n\x16\x66\x61iled_documents_count\x18\x03 \x01(\x05\x12!\n\x19\x65valuated_documents_count\x18\x04 \x01(\x05\x1a\xcd\x02\n\x07Metrics\x12\x11\n\tprecision\x18\x01 \x01(\x02\x12\x0e\n\x06recall\x18\x02 \x01(\x02\x12\x10\n\x08\x66\x31_score\x18\x03 \x01(\x02\x12#\n\x1bpredicted_occurrences_count\x18\x04 \x01(\x05\x12&\n\x1eground_truth_occurrences_count\x18\x05 \x01(\x05\x12 \n\x18predicted_document_count\x18\n \x01(\x05\x12#\n\x1bground_truth_document_count\x18\x0b \x01(\x05\x12\x1c\n\x14true_positives_count\x18\x06 \x01(\x05\x12\x1d\n\x15\x66\x61lse_positives_count\x18\x07 \x01(\x05\x12\x1d\n\x15\x66\x61lse_negatives_count\x18\x08 \x01(\x05\x12\x1d\n\x15total_documents_count\x18\t \x01(\x05\x1as\n\x16\x43onfidenceLevelMetrics\x12\x18\n\x10\x63onfidence_level\x18\x01 \x01(\x02\x12?\n\x07metrics\x18\x02 \x01(\x0b\x32..google.cloud.documentai.v1.Evaluation.Metrics\x1a\xf1\x03\n\x16MultiConfidenceMetrics\x12_\n\x18\x63onfidence_level_metrics\x18\x01 \x03(\x0b\x32=.google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics\x12\x65\n\x1e\x63onfidence_level_metrics_exact\x18\x04 \x03(\x0b\x32=.google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics\x12\r\n\x05\x61uprc\x18\x02 \x01(\x02\x12#\n\x1b\x65stimated_calibration_error\x18\x03 \x01(\x02\x12\x13\n\x0b\x61uprc_exact\x18\x05 \x01(\x02\x12)\n!estimated_calibration_error_exact\x18\x06 \x01(\x02\x12_\n\x0cmetrics_type\x18\x07 \x01(\x0e\x32I.google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics.MetricsType\":\n\x0bMetricsType\x12\x1c\n\x18METRICS_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tAGGREGATE\x10\x01\x1as\n\x12\x45ntityMetricsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12L\n\x05value\x18\x02 \x01(\x0b\x32=.google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics:\x02\x38\x01:\xa9\x01\xea\x41\xa5\x01\n$documentai.googleapis.com/Evaluation\x12}projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}/evaluations/{evaluation}B\xd2\x01\n\x1e\x63om.google.cloud.documentai.v1B\x14\x44ocumentAiEvaluationP\x01Z>cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb\xaa\x02\x1aGoogle.Cloud.DocumentAI.V1\xca\x02\x1aGoogle\\Cloud\\DocumentAI\\V1\xea\x02\x1dGoogle::Cloud::DocumentAI::V1b\x06proto3"
         
     | 
| 
      
 12 
     | 
    
         
            +
             
     | 
| 
      
 13 
     | 
    
         
            +
            pool = Google::Protobuf::DescriptorPool.generated_pool
         
     | 
| 
      
 14 
     | 
    
         
            +
             
     | 
| 
      
 15 
     | 
    
         
            +
            begin
         
     | 
| 
      
 16 
     | 
    
         
            +
              pool.add_serialized_file(descriptor_data)
         
     | 
| 
      
 17 
     | 
    
         
            +
            rescue TypeError => e
         
     | 
| 
      
 18 
     | 
    
         
            +
              # Compatibility code: will be removed in the next major version.
         
     | 
| 
      
 19 
     | 
    
         
            +
              require 'google/protobuf/descriptor_pb'
         
     | 
| 
      
 20 
     | 
    
         
            +
              parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
         
     | 
| 
      
 21 
     | 
    
         
            +
              parsed.clear_dependency
         
     | 
| 
      
 22 
     | 
    
         
            +
              serialized = parsed.class.encode(parsed)
         
     | 
| 
      
 23 
     | 
    
         
            +
              file = pool.add_serialized_file(serialized)
         
     | 
| 
      
 24 
     | 
    
         
            +
              warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
         
     | 
| 
      
 25 
     | 
    
         
            +
              imports = [
         
     | 
| 
      
 26 
     | 
    
         
            +
                ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
         
     | 
| 
      
 27 
     | 
    
         
            +
              ]
         
     | 
| 
      
 28 
     | 
    
         
            +
              imports.each do |type_name, expected_filename|
         
     | 
| 
      
 29 
     | 
    
         
            +
                import_file = pool.lookup(type_name).file_descriptor
         
     | 
| 
      
 30 
     | 
    
         
            +
                if import_file.name != expected_filename
         
     | 
| 
      
 31 
     | 
    
         
            +
                  warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
         
     | 
| 
       61 
32 
     | 
    
         
             
                end
         
     | 
| 
       62 
33 
     | 
    
         
             
              end
         
     | 
| 
      
 34 
     | 
    
         
            +
              warn "Each proto file must use a consistent fully-qualified name."
         
     | 
| 
      
 35 
     | 
    
         
            +
              warn "This will become an error in the next major version."
         
     | 
| 
       63 
36 
     | 
    
         
             
            end
         
     | 
| 
       64 
37 
     | 
    
         | 
| 
       65 
38 
     | 
    
         
             
            module Google
         
     | 
| 
         @@ -1,23 +1,34 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # frozen_string_literal: true
         
     | 
| 
       1 
2 
     | 
    
         
             
            # Generated by the protocol buffer compiler.  DO NOT EDIT!
         
     | 
| 
       2 
3 
     | 
    
         
             
            # source: google/cloud/documentai/v1/geometry.proto
         
     | 
| 
       3 
4 
     | 
    
         | 
| 
       4 
5 
     | 
    
         
             
            require 'google/protobuf'
         
     | 
| 
       5 
6 
     | 
    
         | 
| 
       6 
     | 
    
         
            -
             
     | 
| 
       7 
     | 
    
         
            -
             
     | 
| 
       8 
     | 
    
         
            -
             
     | 
| 
       9 
     | 
    
         
            -
             
     | 
| 
       10 
     | 
    
         
            -
             
     | 
| 
       11 
     | 
    
         
            -
             
     | 
| 
       12 
     | 
    
         
            -
             
     | 
| 
       13 
     | 
    
         
            -
             
     | 
| 
       14 
     | 
    
         
            -
             
     | 
| 
       15 
     | 
    
         
            -
             
     | 
| 
       16 
     | 
    
         
            -
             
     | 
| 
       17 
     | 
    
         
            -
             
     | 
| 
       18 
     | 
    
         
            -
             
     | 
| 
      
 7 
     | 
    
         
            +
             
     | 
| 
      
 8 
     | 
    
         
            +
            descriptor_data = "\n)google/cloud/documentai/v1/geometry.proto\x12\x1agoogle.cloud.documentai.v1\"\x1e\n\x06Vertex\x12\t\n\x01x\x18\x01 \x01(\x05\x12\t\n\x01y\x18\x02 \x01(\x05\"(\n\x10NormalizedVertex\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02\"\x8f\x01\n\x0c\x42oundingPoly\x12\x34\n\x08vertices\x18\x01 \x03(\x0b\x32\".google.cloud.documentai.v1.Vertex\x12I\n\x13normalized_vertices\x18\x02 \x03(\x0b\x32,.google.cloud.documentai.v1.NormalizedVertexB\xcb\x01\n\x1e\x63om.google.cloud.documentai.v1B\rGeometryProtoP\x01Z>cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb\xaa\x02\x1aGoogle.Cloud.DocumentAI.V1\xca\x02\x1aGoogle\\Cloud\\DocumentAI\\V1\xea\x02\x1dGoogle::Cloud::DocumentAI::V1b\x06proto3"
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
      
 10 
     | 
    
         
            +
            pool = Google::Protobuf::DescriptorPool.generated_pool
         
     | 
| 
      
 11 
     | 
    
         
            +
             
     | 
| 
      
 12 
     | 
    
         
            +
            begin
         
     | 
| 
      
 13 
     | 
    
         
            +
              pool.add_serialized_file(descriptor_data)
         
     | 
| 
      
 14 
     | 
    
         
            +
            rescue TypeError => e
         
     | 
| 
      
 15 
     | 
    
         
            +
              # Compatibility code: will be removed in the next major version.
         
     | 
| 
      
 16 
     | 
    
         
            +
              require 'google/protobuf/descriptor_pb'
         
     | 
| 
      
 17 
     | 
    
         
            +
              parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
         
     | 
| 
      
 18 
     | 
    
         
            +
              parsed.clear_dependency
         
     | 
| 
      
 19 
     | 
    
         
            +
              serialized = parsed.class.encode(parsed)
         
     | 
| 
      
 20 
     | 
    
         
            +
              file = pool.add_serialized_file(serialized)
         
     | 
| 
      
 21 
     | 
    
         
            +
              warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
         
     | 
| 
      
 22 
     | 
    
         
            +
              imports = [
         
     | 
| 
      
 23 
     | 
    
         
            +
              ]
         
     | 
| 
      
 24 
     | 
    
         
            +
              imports.each do |type_name, expected_filename|
         
     | 
| 
      
 25 
     | 
    
         
            +
                import_file = pool.lookup(type_name).file_descriptor
         
     | 
| 
      
 26 
     | 
    
         
            +
                if import_file.name != expected_filename
         
     | 
| 
      
 27 
     | 
    
         
            +
                  warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
         
     | 
| 
       19 
28 
     | 
    
         
             
                end
         
     | 
| 
       20 
29 
     | 
    
         
             
              end
         
     | 
| 
      
 30 
     | 
    
         
            +
              warn "Each proto file must use a consistent fully-qualified name."
         
     | 
| 
      
 31 
     | 
    
         
            +
              warn "This will become an error in the next major version."
         
     | 
| 
       21 
32 
     | 
    
         
             
            end
         
     | 
| 
       22 
33 
     | 
    
         | 
| 
       23 
34 
     | 
    
         
             
            module Google
         
     | 
| 
         @@ -1,3 +1,4 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # frozen_string_literal: true
         
     | 
| 
       1 
2 
     | 
    
         
             
            # Generated by the protocol buffer compiler.  DO NOT EDIT!
         
     | 
| 
       2 
3 
     | 
    
         
             
            # source: google/cloud/documentai/v1/operation_metadata.proto
         
     | 
| 
       3 
4 
     | 
    
         | 
| 
         @@ -5,24 +6,32 @@ require 'google/protobuf' 
     | 
|
| 
       5 
6 
     | 
    
         | 
| 
       6 
7 
     | 
    
         
             
            require 'google/protobuf/timestamp_pb'
         
     | 
| 
       7 
8 
     | 
    
         | 
| 
       8 
     | 
    
         
            -
             
     | 
| 
       9 
     | 
    
         
            -
             
     | 
| 
       10 
     | 
    
         
            -
             
     | 
| 
       11 
     | 
    
         
            -
             
     | 
| 
       12 
     | 
    
         
            -
             
     | 
| 
       13 
     | 
    
         
            -
             
     | 
| 
       14 
     | 
    
         
            -
             
     | 
| 
       15 
     | 
    
         
            -
             
     | 
| 
       16 
     | 
    
         
            -
             
     | 
| 
       17 
     | 
    
         
            -
             
     | 
| 
       18 
     | 
    
         
            -
             
     | 
| 
       19 
     | 
    
         
            -
             
     | 
| 
       20 
     | 
    
         
            -
             
     | 
| 
       21 
     | 
    
         
            -
             
     | 
| 
       22 
     | 
    
         
            -
             
     | 
| 
       23 
     | 
    
         
            -
             
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
      
 10 
     | 
    
         
            +
            descriptor_data = "\n3google/cloud/documentai/v1/operation_metadata.proto\x12\x1agoogle.cloud.documentai.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd5\x02\n\x17\x43ommonOperationMetadata\x12H\n\x05state\x18\x01 \x01(\x0e\x32\x39.google.cloud.documentai.v1.CommonOperationMetadata.State\x12\x15\n\rstate_message\x18\x02 \x01(\t\x12\x10\n\x08resource\x18\x05 \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\"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\x42\xd4\x01\n\x1e\x63om.google.cloud.documentai.v1B\x16OperationMetadataProtoP\x01Z>cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb\xaa\x02\x1aGoogle.Cloud.DocumentAI.V1\xca\x02\x1aGoogle\\Cloud\\DocumentAI\\V1\xea\x02\x1dGoogle::Cloud::DocumentAI::V1b\x06proto3"
         
     | 
| 
      
 11 
     | 
    
         
            +
             
     | 
| 
      
 12 
     | 
    
         
            +
            pool = Google::Protobuf::DescriptorPool.generated_pool
         
     | 
| 
      
 13 
     | 
    
         
            +
             
     | 
| 
      
 14 
     | 
    
         
            +
            begin
         
     | 
| 
      
 15 
     | 
    
         
            +
              pool.add_serialized_file(descriptor_data)
         
     | 
| 
      
 16 
     | 
    
         
            +
            rescue TypeError => e
         
     | 
| 
      
 17 
     | 
    
         
            +
              # Compatibility code: will be removed in the next major version.
         
     | 
| 
      
 18 
     | 
    
         
            +
              require 'google/protobuf/descriptor_pb'
         
     | 
| 
      
 19 
     | 
    
         
            +
              parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
         
     | 
| 
      
 20 
     | 
    
         
            +
              parsed.clear_dependency
         
     | 
| 
      
 21 
     | 
    
         
            +
              serialized = parsed.class.encode(parsed)
         
     | 
| 
      
 22 
     | 
    
         
            +
              file = pool.add_serialized_file(serialized)
         
     | 
| 
      
 23 
     | 
    
         
            +
              warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
         
     | 
| 
      
 24 
     | 
    
         
            +
              imports = [
         
     | 
| 
      
 25 
     | 
    
         
            +
                ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
         
     | 
| 
      
 26 
     | 
    
         
            +
              ]
         
     | 
| 
      
 27 
     | 
    
         
            +
              imports.each do |type_name, expected_filename|
         
     | 
| 
      
 28 
     | 
    
         
            +
                import_file = pool.lookup(type_name).file_descriptor
         
     | 
| 
      
 29 
     | 
    
         
            +
                if import_file.name != expected_filename
         
     | 
| 
      
 30 
     | 
    
         
            +
                  warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
         
     | 
| 
       24 
31 
     | 
    
         
             
                end
         
     | 
| 
       25 
32 
     | 
    
         
             
              end
         
     | 
| 
      
 33 
     | 
    
         
            +
              warn "Each proto file must use a consistent fully-qualified name."
         
     | 
| 
      
 34 
     | 
    
         
            +
              warn "This will become an error in the next major version."
         
     | 
| 
       26 
35 
     | 
    
         
             
            end
         
     | 
| 
       27 
36 
     | 
    
         | 
| 
       28 
37 
     | 
    
         
             
            module Google
         
     |