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

namespace Google\Cloud\DocumentAI\V1;

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

/**
 * The response for the TrainProcessorVersion method.
 *
 * Generated from protobuf message <code>google.cloud.documentai.v1.TrainProcessorVersionResponse</code>
 */
class TrainProcessorVersionResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The resource name of the processor version produced by training.
     *
     * Generated from protobuf field <code>string processor_version = 1;</code>
     */
    private $processor_version = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $processor_version
     *           The resource name of the processor version produced by training.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce();
        parent::__construct($data);
    }

    /**
     * The resource name of the processor version produced by training.
     *
     * Generated from protobuf field <code>string processor_version = 1;</code>
     * @return string
     */
    public function getProcessorVersion()
    {
        return $this->processor_version;
    }

    /**
     * The resource name of the processor version produced by training.
     *
     * Generated from protobuf field <code>string processor_version = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setProcessorVersion($var)
    {
        GPBUtil::checkString($var, True);
        $this->processor_version = $var;

        return $this;
    }

}

