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

namespace Google\Cloud\DocumentAI\V1;

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

/**
 * Contains the alias and the aliased resource name of processor version.
 *
 * Generated from protobuf message <code>google.cloud.documentai.v1.ProcessorVersionAlias</code>
 */
class ProcessorVersionAlias extends \Google\Protobuf\Internal\Message
{
    /**
     * The alias in the form of `processor_version` resource name.
     *
     * Generated from protobuf field <code>string alias = 1;</code>
     */
    private $alias = '';
    /**
     * The resource name of aliased processor version.
     *
     * Generated from protobuf field <code>string processor_version = 2 [(.google.api.resource_reference) = {</code>
     */
    private $processor_version = '';

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

    /**
     * The alias in the form of `processor_version` resource name.
     *
     * Generated from protobuf field <code>string alias = 1;</code>
     * @return string
     */
    public function getAlias()
    {
        return $this->alias;
    }

    /**
     * The alias in the form of `processor_version` resource name.
     *
     * Generated from protobuf field <code>string alias = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setAlias($var)
    {
        GPBUtil::checkString($var, True);
        $this->alias = $var;

        return $this;
    }

    /**
     * The resource name of aliased processor version.
     *
     * Generated from protobuf field <code>string processor_version = 2 [(.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getProcessorVersion()
    {
        return $this->processor_version;
    }

    /**
     * The resource name of aliased processor version.
     *
     * Generated from protobuf field <code>string processor_version = 2 [(.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setProcessorVersion($var)
    {
        GPBUtil::checkString($var, True);
        $this->processor_version = $var;

        return $this;
    }

}

