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

namespace Google\Cloud\ResourceManager\V3;

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

/**
 * A status object which is used as the `metadata` field for the Operation
 * returned by CreateProject. It provides insight for when significant phases of
 * Project creation have completed.
 *
 * Generated from protobuf message <code>google.cloud.resourcemanager.v3.CreateProjectMetadata</code>
 */
class CreateProjectMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Creation time of the project creation workflow.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp create_time = 1;</code>
     */
    private $create_time = null;
    /**
     * True if the project can be retrieved using `GetProject`. No other
     * operations on the project are guaranteed to work until the project creation
     * is complete.
     *
     * Generated from protobuf field <code>bool gettable = 2;</code>
     */
    private $gettable = false;
    /**
     * True if the project creation process is complete.
     *
     * Generated from protobuf field <code>bool ready = 3;</code>
     */
    private $ready = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Protobuf\Timestamp $create_time
     *           Creation time of the project creation workflow.
     *     @type bool $gettable
     *           True if the project can be retrieved using `GetProject`. No other
     *           operations on the project are guaranteed to work until the project creation
     *           is complete.
     *     @type bool $ready
     *           True if the project creation process is complete.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Resourcemanager\V3\Projects::initOnce();
        parent::__construct($data);
    }

    /**
     * Creation time of the project creation workflow.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp create_time = 1;</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getCreateTime()
    {
        return $this->create_time;
    }

    public function hasCreateTime()
    {
        return isset($this->create_time);
    }

    public function clearCreateTime()
    {
        unset($this->create_time);
    }

    /**
     * Creation time of the project creation workflow.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp create_time = 1;</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setCreateTime($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->create_time = $var;

        return $this;
    }

    /**
     * True if the project can be retrieved using `GetProject`. No other
     * operations on the project are guaranteed to work until the project creation
     * is complete.
     *
     * Generated from protobuf field <code>bool gettable = 2;</code>
     * @return bool
     */
    public function getGettable()
    {
        return $this->gettable;
    }

    /**
     * True if the project can be retrieved using `GetProject`. No other
     * operations on the project are guaranteed to work until the project creation
     * is complete.
     *
     * Generated from protobuf field <code>bool gettable = 2;</code>
     * @param bool $var
     * @return $this
     */
    public function setGettable($var)
    {
        GPBUtil::checkBool($var);
        $this->gettable = $var;

        return $this;
    }

    /**
     * True if the project creation process is complete.
     *
     * Generated from protobuf field <code>bool ready = 3;</code>
     * @return bool
     */
    public function getReady()
    {
        return $this->ready;
    }

    /**
     * True if the project creation process is complete.
     *
     * Generated from protobuf field <code>bool ready = 3;</code>
     * @param bool $var
     * @return $this
     */
    public function setReady($var)
    {
        GPBUtil::checkBool($var);
        $this->ready = $var;

        return $this;
    }

}

