<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/documentai/v1/document_processor_service.proto

namespace Google\Cloud\DocumentAI\V1\TrainProcessorVersionRequest;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * The input data used to train a new `ProcessorVersion`.
 *
 * Generated from protobuf message <code>google.cloud.documentai.v1.TrainProcessorVersionRequest.InputData</code>
 */
class InputData extends \Google\Protobuf\Internal\Message
{
    /**
     * The documents used for training the new version.
     *
     * Generated from protobuf field <code>.google.cloud.documentai.v1.BatchDocumentsInputConfig training_documents = 3;</code>
     */
    private $training_documents = null;
    /**
     * The documents used for testing the trained version.
     *
     * Generated from protobuf field <code>.google.cloud.documentai.v1.BatchDocumentsInputConfig test_documents = 4;</code>
     */
    private $test_documents = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\DocumentAI\V1\BatchDocumentsInputConfig $training_documents
     *           The documents used for training the new version.
     *     @type \Google\Cloud\DocumentAI\V1\BatchDocumentsInputConfig $test_documents
     *           The documents used for testing the trained version.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce();
        parent::__construct($data);
    }

    /**
     * The documents used for training the new version.
     *
     * Generated from protobuf field <code>.google.cloud.documentai.v1.BatchDocumentsInputConfig training_documents = 3;</code>
     * @return \Google\Cloud\DocumentAI\V1\BatchDocumentsInputConfig|null
     */
    public function getTrainingDocuments()
    {
        return $this->training_documents;
    }

    public function hasTrainingDocuments()
    {
        return isset($this->training_documents);
    }

    public function clearTrainingDocuments()
    {
        unset($this->training_documents);
    }

    /**
     * The documents used for training the new version.
     *
     * Generated from protobuf field <code>.google.cloud.documentai.v1.BatchDocumentsInputConfig training_documents = 3;</code>
     * @param \Google\Cloud\DocumentAI\V1\BatchDocumentsInputConfig $var
     * @return $this
     */
    public function setTrainingDocuments($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\BatchDocumentsInputConfig::class);
        $this->training_documents = $var;

        return $this;
    }

    /**
     * The documents used for testing the trained version.
     *
     * Generated from protobuf field <code>.google.cloud.documentai.v1.BatchDocumentsInputConfig test_documents = 4;</code>
     * @return \Google\Cloud\DocumentAI\V1\BatchDocumentsInputConfig|null
     */
    public function getTestDocuments()
    {
        return $this->test_documents;
    }

    public function hasTestDocuments()
    {
        return isset($this->test_documents);
    }

    public function clearTestDocuments()
    {
        unset($this->test_documents);
    }

    /**
     * The documents used for testing the trained version.
     *
     * Generated from protobuf field <code>.google.cloud.documentai.v1.BatchDocumentsInputConfig test_documents = 4;</code>
     * @param \Google\Cloud\DocumentAI\V1\BatchDocumentsInputConfig $var
     * @return $this
     */
    public function setTestDocuments($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\BatchDocumentsInputConfig::class);
        $this->test_documents = $var;

        return $this;
    }

}


