<?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.ListWorkerDeploymentsResponse</code>
 */
class ListWorkerDeploymentsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>bytes next_page_token = 1;</code>
     */
    protected $next_page_token = '';
    /**
     * The list of worker deployments.
     *
     * Generated from protobuf field <code>repeated .temporal.api.workflowservice.v1.ListWorkerDeploymentsResponse.WorkerDeploymentSummary worker_deployments = 2;</code>
     */
    private $worker_deployments;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $next_page_token
     *     @type \Temporal\Api\Workflowservice\V1\ListWorkerDeploymentsResponse\WorkerDeploymentSummary[] $worker_deployments
     *           The list of worker deployments.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

    /**
     * The list of worker deployments.
     *
     * Generated from protobuf field <code>repeated .temporal.api.workflowservice.v1.ListWorkerDeploymentsResponse.WorkerDeploymentSummary worker_deployments = 2;</code>
     * @return RepeatedField<\Temporal\Api\Workflowservice\V1\ListWorkerDeploymentsResponse\WorkerDeploymentSummary>
     */
    public function getWorkerDeployments()
    {
        return $this->worker_deployments;
    }

    /**
     * The list of worker deployments.
     *
     * Generated from protobuf field <code>repeated .temporal.api.workflowservice.v1.ListWorkerDeploymentsResponse.WorkerDeploymentSummary worker_deployments = 2;</code>
     * @param \Temporal\Api\Workflowservice\V1\ListWorkerDeploymentsResponse\WorkerDeploymentSummary[] $var
     * @return $this
     */
    public function setWorkerDeployments($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Workflowservice\V1\ListWorkerDeploymentsResponse\WorkerDeploymentSummary::class);
        $this->worker_deployments = $arr;

        return $this;
    }

}

