ProjectsLocationsProcessors
class ProjectsLocationsProcessors extends Resource (View source)
The "processors" collection of methods.
Typical usage is:
$documentaiService = new Google\Service\Document(...);
$processors = $documentaiService->projects_locations_processors;
Methods
LRO endpoint to batch process many documents. The output is written to Cloud Storage as JSON in the [Document] format. (processors.batchProcess)
Creates a processor from the ProcessorType provided. The processor will be at
ENABLED
state by default after its creation. Note that this method requires
the documentai.processors.create
permission on the project, which is highly
privileged. A user or service account with this permission can create new
processors that can interact with any gcs bucket in your project.
Deletes the processor, unloads all deployed model artifacts if it was enabled and then deletes all artifacts associated with this processor.
Disables a processor (processors.disable)
Enables a processor (processors.enable)
Gets a processor detail. (processors.get)
Lists all processors which belong to this project.
Processes a single document. (processors.process)
Set the default (active) version of a Processor that will be used in ProcessDocument and BatchProcessDocuments.
Details
GoogleLongrunningOperation
batchProcess(string $name, GoogleCloudDocumentaiV1BatchProcessRequest $postBody, array $optParams = [])
LRO endpoint to batch process many documents. The output is written to Cloud Storage as JSON in the [Document] format. (processors.batchProcess)
GoogleCloudDocumentaiV1Processor
create(string $parent, GoogleCloudDocumentaiV1Processor $postBody, array $optParams = [])
Creates a processor from the ProcessorType provided. The processor will be at
ENABLED
state by default after its creation. Note that this method requires
the documentai.processors.create
permission on the project, which is highly
privileged. A user or service account with this permission can create new
processors that can interact with any gcs bucket in your project.
(processors.create)
GoogleLongrunningOperation
delete(string $name, array $optParams = [])
Deletes the processor, unloads all deployed model artifacts if it was enabled and then deletes all artifacts associated with this processor.
(processors.delete)
GoogleLongrunningOperation
disable(string $name, GoogleCloudDocumentaiV1DisableProcessorRequest $postBody, array $optParams = [])
Disables a processor (processors.disable)
GoogleLongrunningOperation
enable(string $name, GoogleCloudDocumentaiV1EnableProcessorRequest $postBody, array $optParams = [])
Enables a processor (processors.enable)
GoogleCloudDocumentaiV1Processor
get(string $name, array $optParams = [])
Gets a processor detail. (processors.get)
GoogleCloudDocumentaiV1ListProcessorsResponse
listProjectsLocationsProcessors(string $parent, array $optParams = [])
Lists all processors which belong to this project.
(processors.listProjectsLocationsProcessors)
GoogleCloudDocumentaiV1ProcessResponse
process(string $name, GoogleCloudDocumentaiV1ProcessRequest $postBody, array $optParams = [])
Processes a single document. (processors.process)
GoogleLongrunningOperation
setDefaultProcessorVersion(string $processor, GoogleCloudDocumentaiV1SetDefaultProcessorVersionRequest $postBody, array $optParams = [])
Set the default (active) version of a Processor that will be used in ProcessDocument and BatchProcessDocuments.
(processors.setDefaultProcessorVersion)