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

namespace Google\Cloud\DocumentAI\V1\ProcessorVersion;

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

/**
 * Information about the upcoming deprecation of this processor version.
 *
 * Generated from protobuf message <code>google.cloud.documentai.v1.ProcessorVersion.DeprecationInfo</code>
 */
class DeprecationInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * The time at which this processor version will be deprecated.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp deprecation_time = 1;</code>
     */
    private $deprecation_time = null;
    /**
     * If set, the processor version that will be used as a replacement.
     *
     * Generated from protobuf field <code>string replacement_processor_version = 2 [(.google.api.resource_reference) = {</code>
     */
    private $replacement_processor_version = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Protobuf\Timestamp $deprecation_time
     *           The time at which this processor version will be deprecated.
     *     @type string $replacement_processor_version
     *           If set, the processor version that will be used as a replacement.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Documentai\V1\Processor::initOnce();
        parent::__construct($data);
    }

    /**
     * The time at which this processor version will be deprecated.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp deprecation_time = 1;</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getDeprecationTime()
    {
        return $this->deprecation_time;
    }

    public function hasDeprecationTime()
    {
        return isset($this->deprecation_time);
    }

    public function clearDeprecationTime()
    {
        unset($this->deprecation_time);
    }

    /**
     * The time at which this processor version will be deprecated.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp deprecation_time = 1;</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setDeprecationTime($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->deprecation_time = $var;

        return $this;
    }

    /**
     * If set, the processor version that will be used as a replacement.
     *
     * Generated from protobuf field <code>string replacement_processor_version = 2 [(.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getReplacementProcessorVersion()
    {
        return $this->replacement_processor_version;
    }

    /**
     * If set, the processor version that will be used as a replacement.
     *
     * Generated from protobuf field <code>string replacement_processor_version = 2 [(.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setReplacementProcessorVersion($var)
    {
        GPBUtil::checkString($var, True);
        $this->replacement_processor_version = $var;

        return $this;
    }

}


