<?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.DescribeWorkerDeploymentVersionResponse</code>
 */
class DescribeWorkerDeploymentVersionResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.temporal.api.deployment.v1.WorkerDeploymentVersionInfo worker_deployment_version_info = 1;</code>
     */
    protected $worker_deployment_version_info = null;
    /**
     * All the Task Queues that have ever polled from this Deployment version.
     *
     * Generated from protobuf field <code>repeated .temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse.VersionTaskQueue version_task_queues = 2;</code>
     */
    private $version_task_queues;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Temporal\Api\Deployment\V1\WorkerDeploymentVersionInfo $worker_deployment_version_info
     *     @type \Temporal\Api\Workflowservice\V1\DescribeWorkerDeploymentVersionResponse\VersionTaskQueue[] $version_task_queues
     *           All the Task Queues that have ever polled from this Deployment version.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
        parent::__construct($data);
    }

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

    public function hasWorkerDeploymentVersionInfo()
    {
        return isset($this->worker_deployment_version_info);
    }

    public function clearWorkerDeploymentVersionInfo()
    {
        unset($this->worker_deployment_version_info);
    }

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

        return $this;
    }

    /**
     * All the Task Queues that have ever polled from this Deployment version.
     *
     * Generated from protobuf field <code>repeated .temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse.VersionTaskQueue version_task_queues = 2;</code>
     * @return RepeatedField<\Temporal\Api\Workflowservice\V1\DescribeWorkerDeploymentVersionResponse\VersionTaskQueue>
     */
    public function getVersionTaskQueues()
    {
        return $this->version_task_queues;
    }

    /**
     * All the Task Queues that have ever polled from this Deployment version.
     *
     * Generated from protobuf field <code>repeated .temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse.VersionTaskQueue version_task_queues = 2;</code>
     * @param \Temporal\Api\Workflowservice\V1\DescribeWorkerDeploymentVersionResponse\VersionTaskQueue[] $var
     * @return $this
     */
    public function setVersionTaskQueues($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Workflowservice\V1\DescribeWorkerDeploymentVersionResponse\VersionTaskQueue::class);
        $this->version_task_queues = $arr;

        return $this;
    }

}

