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

namespace Temporal\Api\Workflowservice\V1;

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

/**
 * [cleanup-wv-pre-release] Pre-release deployment APIs, clean up later
 *
 * Generated from protobuf message <code>temporal.api.workflowservice.v1.SetCurrentDeploymentRequest</code>
 */
class SetCurrentDeploymentRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string namespace = 1;</code>
     */
    protected $namespace = '';
    /**
     * Generated from protobuf field <code>.temporal.api.deployment.v1.Deployment deployment = 2;</code>
     */
    protected $deployment = null;
    /**
     * Optional. The identity of the client who initiated this request.
     *
     * Generated from protobuf field <code>string identity = 3;</code>
     */
    protected $identity = '';
    /**
     * Optional. Use to add or remove user-defined metadata entries. Metadata entries are exposed
     * when describing a deployment. It is a good place for information such as operator name,
     * links to internal deployment pipelines, etc.
     *
     * Generated from protobuf field <code>.temporal.api.deployment.v1.UpdateDeploymentMetadata update_metadata = 4;</code>
     */
    protected $update_metadata = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $namespace
     *     @type \Temporal\Api\Deployment\V1\Deployment $deployment
     *     @type string $identity
     *           Optional. The identity of the client who initiated this request.
     *     @type \Temporal\Api\Deployment\V1\UpdateDeploymentMetadata $update_metadata
     *           Optional. Use to add or remove user-defined metadata entries. Metadata entries are exposed
     *           when describing a deployment. It is a good place for information such as operator name,
     *           links to internal deployment pipelines, etc.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>string namespace = 1;</code>
     * @return string
     */
    public function getNamespace()
    {
        return $this->namespace;
    }

    /**
     * Generated from protobuf field <code>string namespace = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setNamespace($var)
    {
        GPBUtil::checkString($var, True);
        $this->namespace = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.temporal.api.deployment.v1.Deployment deployment = 2;</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 = 2;</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;
    }

    /**
     * Optional. The identity of the client who initiated this request.
     *
     * Generated from protobuf field <code>string identity = 3;</code>
     * @return string
     */
    public function getIdentity()
    {
        return $this->identity;
    }

    /**
     * Optional. The identity of the client who initiated this request.
     *
     * Generated from protobuf field <code>string identity = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setIdentity($var)
    {
        GPBUtil::checkString($var, True);
        $this->identity = $var;

        return $this;
    }

    /**
     * Optional. Use to add or remove user-defined metadata entries. Metadata entries are exposed
     * when describing a deployment. It is a good place for information such as operator name,
     * links to internal deployment pipelines, etc.
     *
     * Generated from protobuf field <code>.temporal.api.deployment.v1.UpdateDeploymentMetadata update_metadata = 4;</code>
     * @return \Temporal\Api\Deployment\V1\UpdateDeploymentMetadata|null
     */
    public function getUpdateMetadata()
    {
        return $this->update_metadata;
    }

    public function hasUpdateMetadata()
    {
        return isset($this->update_metadata);
    }

    public function clearUpdateMetadata()
    {
        unset($this->update_metadata);
    }

    /**
     * Optional. Use to add or remove user-defined metadata entries. Metadata entries are exposed
     * when describing a deployment. It is a good place for information such as operator name,
     * links to internal deployment pipelines, etc.
     *
     * Generated from protobuf field <code>.temporal.api.deployment.v1.UpdateDeploymentMetadata update_metadata = 4;</code>
     * @param \Temporal\Api\Deployment\V1\UpdateDeploymentMetadata $var
     * @return $this
     */
    public function setUpdateMetadata($var)
    {
        GPBUtil::checkMessage($var, \Temporal\Api\Deployment\V1\UpdateDeploymentMetadata::class);
        $this->update_metadata = $var;

        return $this;
    }

}

