<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: temporal/api/deployment/v1/message.proto

namespace Temporal\Api\Deployment\V1;

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

/**
 * DeploymentListInfo is an abbreviated set of fields from DeploymentInfo that's returned in
 * ListDeployments.
 * Deprecated.
 *
 * Generated from protobuf message <code>temporal.api.deployment.v1.DeploymentListInfo</code>
 */
class DeploymentListInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.temporal.api.deployment.v1.Deployment deployment = 1;</code>
     */
    protected $deployment = null;
    /**
     * Generated from protobuf field <code>.google.protobuf.Timestamp create_time = 2;</code>
     */
    protected $create_time = null;
    /**
     * If this deployment is the current deployment of its deployment series.
     *
     * Generated from protobuf field <code>bool is_current = 3;</code>
     */
    protected $is_current = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Temporal\Api\Deployment\V1\Deployment $deployment
     *     @type \Google\Protobuf\Timestamp $create_time
     *     @type bool $is_current
     *           If this deployment is the current deployment of its deployment series.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Temporal\Api\Deployment\V1\Message::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.temporal.api.deployment.v1.Deployment deployment = 1;</code>
     * @return \Temporal\Api\Deployment\V1\Deployment|null
     */
    public function getDeployment()
    {
        return $this->deployment;
    }

    public function hasDeployment()
    {
        return isset($this->deployment);
    }

    public function clearDeployment()
    {
        unset($this->deployment);
    }

    /**
     * Generated from protobuf field <code>.temporal.api.deployment.v1.Deployment deployment = 1;</code>
     * @param \Temporal\Api\Deployment\V1\Deployment $var
     * @return $this
     */
    public function setDeployment($var)
    {
        GPBUtil::checkMessage($var, \Temporal\Api\Deployment\V1\Deployment::class);
        $this->deployment = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.google.protobuf.Timestamp create_time = 2;</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);
    }

    /**
     * Generated from protobuf field <code>.google.protobuf.Timestamp create_time = 2;</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;
    }

    /**
     * If this deployment is the current deployment of its deployment series.
     *
     * Generated from protobuf field <code>bool is_current = 3;</code>
     * @return bool
     */
    public function getIsCurrent()
    {
        return $this->is_current;
    }

    /**
     * If this deployment is the current deployment of its deployment series.
     *
     * Generated from protobuf field <code>bool is_current = 3;</code>
     * @param bool $var
     * @return $this
     */
    public function setIsCurrent($var)
    {
        GPBUtil::checkBool($var);
        $this->is_current = $var;

        return $this;
    }

}

