<?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;

/**
 * Generated from protobuf message <code>temporal.api.workflowservice.v1.UpdateWorkerDeploymentVersionMetadataResponse</code>
 */
class UpdateWorkerDeploymentVersionMetadataResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Full metadata after performing the update.
     *
     * Generated from protobuf field <code>.temporal.api.deployment.v1.VersionMetadata metadata = 1;</code>
     */
    protected $metadata = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Temporal\Api\Deployment\V1\VersionMetadata $metadata
     *           Full metadata after performing the update.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
        parent::__construct($data);
    }

    /**
     * Full metadata after performing the update.
     *
     * Generated from protobuf field <code>.temporal.api.deployment.v1.VersionMetadata metadata = 1;</code>
     * @return \Temporal\Api\Deployment\V1\VersionMetadata|null
     */
    public function getMetadata()
    {
        return $this->metadata;
    }

    public function hasMetadata()
    {
        return isset($this->metadata);
    }

    public function clearMetadata()
    {
        unset($this->metadata);
    }

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

        return $this;
    }

}

