class ProjectsLocationsProcessorsProcessorVersions extends Resource (View source)

The "processorVersions" collection of methods.

Typical usage is:

 $documentaiService = new Google\Service\Document(...);
 $processorVersions = $documentaiService->projects_locations_processors_processorVersions;

Methods

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. (processorVersions.batchProcess)

delete(string $name, array $optParams = [])

Deletes the processor version, all artifacts under the processor version will be deleted. (processorVersions.delete)

deploy(string $name, GoogleCloudDocumentaiV1DeployProcessorVersionRequest $postBody, array $optParams = [])

Deploys the processor version. (processorVersions.deploy)

evaluateProcessorVersion(string $processorVersion, GoogleCloudDocumentaiV1EvaluateProcessorVersionRequest $postBody, array $optParams = [])

Evaluates a ProcessorVersion against annotated documents, producing an Evaluation. (processorVersions.evaluateProcessorVersion)

get(string $name, array $optParams = [])

Gets a processor version detail. (processorVersions.get)

listProjectsLocationsProcessorsProcessorVersions(string $parent, array $optParams = [])

Lists all versions of a processor.

process(string $name, GoogleCloudDocumentaiV1ProcessRequest $postBody, array $optParams = [])

Processes a single document. (processorVersions.process)

train(string $parent, GoogleCloudDocumentaiV1TrainProcessorVersionRequest $postBody, array $optParams = [])

Trains a new processor version. Operation metadata is returned as TrainProcessorVersionMetadata. (processorVersions.train)

undeploy(string $name, GoogleCloudDocumentaiV1UndeployProcessorVersionRequest $postBody, array $optParams = [])

Undeploys the processor version. (processorVersions.undeploy)

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. (processorVersions.batchProcess)

Parameters

string $name

Required. The resource name of Processor or ProcessorVersion. Format: projects/{project}/locations/{location}/processors/{processor}, or project s/{project}/locations/{location}/processors/{processor}/processorVersions/{pr ocessorVersion}

GoogleCloudDocumentaiV1BatchProcessRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception

GoogleLongrunningOperation delete(string $name, array $optParams = [])

Deletes the processor version, all artifacts under the processor version will be deleted. (processorVersions.delete)

Parameters

string $name

Required. The processor version resource name to be deleted.

array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception

GoogleLongrunningOperation deploy(string $name, GoogleCloudDocumentaiV1DeployProcessorVersionRequest $postBody, array $optParams = [])

Deploys the processor version. (processorVersions.deploy)

Parameters

string $name

Required. The processor version resource name to be deployed.

GoogleCloudDocumentaiV1DeployProcessorVersionRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception

GoogleLongrunningOperation evaluateProcessorVersion(string $processorVersion, GoogleCloudDocumentaiV1EvaluateProcessorVersionRequest $postBody, array $optParams = [])

Evaluates a ProcessorVersion against annotated documents, producing an Evaluation. (processorVersions.evaluateProcessorVersion)

Parameters

string $processorVersion

Required. The resource name of the ProcessorVersion to evaluate. projects/{project}/locations/{location}/proces sors/{processor}/processorVersions/{processorVersion}

GoogleCloudDocumentaiV1EvaluateProcessorVersionRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception

GoogleCloudDocumentaiV1ProcessorVersion get(string $name, array $optParams = [])

Gets a processor version detail. (processorVersions.get)

Parameters

string $name

Required. The processor resource name.

array $optParams

Optional parameters.

Return Value

GoogleCloudDocumentaiV1ProcessorVersion

Exceptions

Exception

GoogleCloudDocumentaiV1ListProcessorVersionsResponse listProjectsLocationsProcessorsProcessorVersions(string $parent, array $optParams = [])

Lists all versions of a processor.

(processorVersions.listProjectsLocationsProcessorsProcessorVersions)

Parameters

string $parent

Required. The parent (project, location and processor) to list all versions. Format: projects/{project}/locations/{location}/processors/{processor}

array $optParams

Optional parameters.

Return Value

GoogleCloudDocumentaiV1ListProcessorVersionsResponse

Exceptions

Exception

GoogleCloudDocumentaiV1ProcessResponse process(string $name, GoogleCloudDocumentaiV1ProcessRequest $postBody, array $optParams = [])

Processes a single document. (processorVersions.process)

Parameters

string $name

Required. The resource name of the Processor or ProcessorVersion to use for processing. If a Processor is specified, the server will use its default version. Format: projects/{project}/locations/{location}/processors/{processor}, or project s/{project}/locations/{location}/processors/{processor}/processorVersions/{pr ocessorVersion}

GoogleCloudDocumentaiV1ProcessRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudDocumentaiV1ProcessResponse

Exceptions

Exception

GoogleLongrunningOperation train(string $parent, GoogleCloudDocumentaiV1TrainProcessorVersionRequest $postBody, array $optParams = [])

Trains a new processor version. Operation metadata is returned as TrainProcessorVersionMetadata. (processorVersions.train)

Parameters

string $parent

Required. The parent (project, location and processor) to create the new version for. Format: projects/{project}/locations/{location}/processors/{processor}.

GoogleCloudDocumentaiV1TrainProcessorVersionRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception

GoogleLongrunningOperation undeploy(string $name, GoogleCloudDocumentaiV1UndeployProcessorVersionRequest $postBody, array $optParams = [])

Undeploys the processor version. (processorVersions.undeploy)

Parameters

string $name

Required. The processor version resource name to be undeployed.

GoogleCloudDocumentaiV1UndeployProcessorVersionRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception