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

namespace Google\Cloud\Compute\V1;

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

/**
 * Deprecation status for a public resource.
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.DeprecationStatus</code>
 */
class DeprecationStatus extends \Google\Protobuf\Internal\Message
{
    /**
     * An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DELETED. This is only informational and the status will not change unless the client explicitly changes it.
     *
     * Generated from protobuf field <code>string deleted = 208285721;</code>
     */
    private $deleted = '';
    /**
     * An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DEPRECATED. This is only informational and the status will not change unless the client explicitly changes it.
     *
     * Generated from protobuf field <code>string deprecated = 246703539;</code>
     */
    private $deprecated = '';
    /**
     * An optional RFC3339 timestamp on or after which the state of this resource is intended to change to OBSOLETE. This is only informational and the status will not change unless the client explicitly changes it.
     *
     * Generated from protobuf field <code>string obsolete = 89212313;</code>
     */
    private $obsolete = '';
    /**
     * The URL of the suggested replacement for a deprecated resource. The suggested replacement resource must be the same kind of resource as the deprecated resource.
     *
     * Generated from protobuf field <code>string replacement = 162483730;</code>
     */
    private $replacement = '';
    /**
     * The deprecation state of this resource. This can be ACTIVE, DEPRECATED, OBSOLETE, or DELETED. Operations which communicate the end of life date for an image, can use ACTIVE. Operations which create a new resource using a DEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE or DELETED resources will be rejected and result in an error.
     *
     * Generated from protobuf field <code>.google.cloud.compute.v1.DeprecationStatus.State state = 109757585;</code>
     */
    private $state = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $deleted
     *           An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DELETED. This is only informational and the status will not change unless the client explicitly changes it.
     *     @type string $deprecated
     *           An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DEPRECATED. This is only informational and the status will not change unless the client explicitly changes it.
     *     @type string $obsolete
     *           An optional RFC3339 timestamp on or after which the state of this resource is intended to change to OBSOLETE. This is only informational and the status will not change unless the client explicitly changes it.
     *     @type string $replacement
     *           The URL of the suggested replacement for a deprecated resource. The suggested replacement resource must be the same kind of resource as the deprecated resource.
     *     @type int $state
     *           The deprecation state of this resource. This can be ACTIVE, DEPRECATED, OBSOLETE, or DELETED. Operations which communicate the end of life date for an image, can use ACTIVE. Operations which create a new resource using a DEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE or DELETED resources will be rejected and result in an error.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DELETED. This is only informational and the status will not change unless the client explicitly changes it.
     *
     * Generated from protobuf field <code>string deleted = 208285721;</code>
     * @return string
     */
    public function getDeleted()
    {
        return $this->deleted;
    }

    /**
     * An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DELETED. This is only informational and the status will not change unless the client explicitly changes it.
     *
     * Generated from protobuf field <code>string deleted = 208285721;</code>
     * @param string $var
     * @return $this
     */
    public function setDeleted($var)
    {
        GPBUtil::checkString($var, True);
        $this->deleted = $var;

        return $this;
    }

    /**
     * An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DEPRECATED. This is only informational and the status will not change unless the client explicitly changes it.
     *
     * Generated from protobuf field <code>string deprecated = 246703539;</code>
     * @return string
     */
    public function getDeprecated()
    {
        return $this->deprecated;
    }

    /**
     * An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DEPRECATED. This is only informational and the status will not change unless the client explicitly changes it.
     *
     * Generated from protobuf field <code>string deprecated = 246703539;</code>
     * @param string $var
     * @return $this
     */
    public function setDeprecated($var)
    {
        GPBUtil::checkString($var, True);
        $this->deprecated = $var;

        return $this;
    }

    /**
     * An optional RFC3339 timestamp on or after which the state of this resource is intended to change to OBSOLETE. This is only informational and the status will not change unless the client explicitly changes it.
     *
     * Generated from protobuf field <code>string obsolete = 89212313;</code>
     * @return string
     */
    public function getObsolete()
    {
        return $this->obsolete;
    }

    /**
     * An optional RFC3339 timestamp on or after which the state of this resource is intended to change to OBSOLETE. This is only informational and the status will not change unless the client explicitly changes it.
     *
     * Generated from protobuf field <code>string obsolete = 89212313;</code>
     * @param string $var
     * @return $this
     */
    public function setObsolete($var)
    {
        GPBUtil::checkString($var, True);
        $this->obsolete = $var;

        return $this;
    }

    /**
     * The URL of the suggested replacement for a deprecated resource. The suggested replacement resource must be the same kind of resource as the deprecated resource.
     *
     * Generated from protobuf field <code>string replacement = 162483730;</code>
     * @return string
     */
    public function getReplacement()
    {
        return $this->replacement;
    }

    /**
     * The URL of the suggested replacement for a deprecated resource. The suggested replacement resource must be the same kind of resource as the deprecated resource.
     *
     * Generated from protobuf field <code>string replacement = 162483730;</code>
     * @param string $var
     * @return $this
     */
    public function setReplacement($var)
    {
        GPBUtil::checkString($var, True);
        $this->replacement = $var;

        return $this;
    }

    /**
     * The deprecation state of this resource. This can be ACTIVE, DEPRECATED, OBSOLETE, or DELETED. Operations which communicate the end of life date for an image, can use ACTIVE. Operations which create a new resource using a DEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE or DELETED resources will be rejected and result in an error.
     *
     * Generated from protobuf field <code>.google.cloud.compute.v1.DeprecationStatus.State state = 109757585;</code>
     * @return int
     */
    public function getState()
    {
        return $this->state;
    }

    /**
     * The deprecation state of this resource. This can be ACTIVE, DEPRECATED, OBSOLETE, or DELETED. Operations which communicate the end of life date for an image, can use ACTIVE. Operations which create a new resource using a DEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE or DELETED resources will be rejected and result in an error.
     *
     * Generated from protobuf field <code>.google.cloud.compute.v1.DeprecationStatus.State state = 109757585;</code>
     * @param int $var
     * @return $this
     */
    public function setState($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Compute\V1\DeprecationStatus\State::class);
        $this->state = $var;

        return $this;
    }

}

