Google Cloud Document Ai V1 Client - Class TrainProcessorVersionRequest (1.7.0)

Reference documentation and code samples for the Google Cloud Document Ai V1 Client class TrainProcessorVersionRequest.

Request message for the TrainProcessorVersion method.

Generated from protobuf message google.cloud.documentai.v1.TrainProcessorVersionRequest

Namespace

Google \ Cloud \ DocumentAI \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ custom_document_extraction_options Google\Cloud\DocumentAI\V1\TrainProcessorVersionRequest\CustomDocumentExtractionOptions

Options to control Custom Document Extraction (CDE) Processor.

↳ parent string

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

↳ processor_version Google\Cloud\DocumentAI\V1\ProcessorVersion

Required. The processor version to be created.

↳ document_schema Google\Cloud\DocumentAI\V1\DocumentSchema

Optional. The schema the processor version will be trained with.

↳ input_data Google\Cloud\DocumentAI\V1\TrainProcessorVersionRequest\InputData

Optional. The input data used to train the ProcessorVersion.

↳ base_processor_version string

Optional. The processor version to use as a base for training. This processor version must be a child of parent. Format: projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}.

getCustomDocumentExtractionOptions

Options to control Custom Document Extraction (CDE) Processor.

Returns
TypeDescription
Google\Cloud\DocumentAI\V1\TrainProcessorVersionRequest\CustomDocumentExtractionOptions|null

hasCustomDocumentExtractionOptions

setCustomDocumentExtractionOptions

Options to control Custom Document Extraction (CDE) Processor.

Parameter
NameDescription
var Google\Cloud\DocumentAI\V1\TrainProcessorVersionRequest\CustomDocumentExtractionOptions
Returns
TypeDescription
$this

getParent

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

Returns
TypeDescription
string

setParent

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getProcessorVersion

Required. The processor version to be created.

Returns
TypeDescription
Google\Cloud\DocumentAI\V1\ProcessorVersion|null

hasProcessorVersion

clearProcessorVersion

setProcessorVersion

Required. The processor version to be created.

Parameter
NameDescription
var Google\Cloud\DocumentAI\V1\ProcessorVersion
Returns
TypeDescription
$this

getDocumentSchema

Optional. The schema the processor version will be trained with.

Returns
TypeDescription
Google\Cloud\DocumentAI\V1\DocumentSchema|null

hasDocumentSchema

clearDocumentSchema

setDocumentSchema

Optional. The schema the processor version will be trained with.

Parameter
NameDescription
var Google\Cloud\DocumentAI\V1\DocumentSchema
Returns
TypeDescription
$this

getInputData

Optional. The input data used to train the ProcessorVersion.

Returns
TypeDescription
Google\Cloud\DocumentAI\V1\TrainProcessorVersionRequest\InputData|null

hasInputData

clearInputData

setInputData

Optional. The input data used to train the ProcessorVersion.

Parameter
NameDescription
var Google\Cloud\DocumentAI\V1\TrainProcessorVersionRequest\InputData
Returns
TypeDescription
$this

getBaseProcessorVersion

Optional. The processor version to use as a base for training. This processor version must be a child of parent. Format: projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}.

Returns
TypeDescription
string

setBaseProcessorVersion

Optional. The processor version to use as a base for training. This processor version must be a child of parent. Format: projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getProcessorFlags

Returns
TypeDescription
string

static::build

Parameters
NameDescription
parent string

Required. The parent (project, location and processor) to create the new version for. Format: projects/{project}/locations/{location}/processors/{processor}. Please see Google\Cloud\DocumentAI\V1\DocumentProcessorServiceClient::processorName() for help formatting this field.

processorVersion Google\Cloud\DocumentAI\V1\ProcessorVersion

Required. The processor version to be created.

Returns
TypeDescription
Google\Cloud\DocumentAI\V1\TrainProcessorVersionRequest