Google Cloud Document Ai V1 Client - Class InputData (1.8.2)

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

The input data used to train a new ProcessorVersion.

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

Namespace

Google \ Cloud \ DocumentAI \ V1 \ TrainProcessorVersionRequest

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ training_documents Google\Cloud\DocumentAI\V1\BatchDocumentsInputConfig

The documents used for training the new version.

↳ test_documents Google\Cloud\DocumentAI\V1\BatchDocumentsInputConfig

The documents used for testing the trained version.

getTrainingDocuments

The documents used for training the new version.

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

hasTrainingDocuments

clearTrainingDocuments

setTrainingDocuments

The documents used for training the new version.

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

getTestDocuments

The documents used for testing the trained version.

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

hasTestDocuments

clearTestDocuments

setTestDocuments

The documents used for testing the trained version.

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