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

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
Name Description
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
Type Description
Google\Cloud\DocumentAI\V1\BatchDocumentsInputConfig|null

hasTrainingDocuments

clearTrainingDocuments

setTrainingDocuments

The documents used for training the new version.

Parameter
Name Description
var Google\Cloud\DocumentAI\V1\BatchDocumentsInputConfig
Returns
Type Description
$this

getTestDocuments

The documents used for testing the trained version.

Returns
Type Description
Google\Cloud\DocumentAI\V1\BatchDocumentsInputConfig|null

hasTestDocuments

clearTestDocuments

setTestDocuments

The documents used for testing the trained version.

Parameter
Name Description
var Google\Cloud\DocumentAI\V1\BatchDocumentsInputConfig
Returns
Type Description
$this

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.