<?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]
 *
 * Generated from protobuf message <code>temporal.api.workflowservice.v1.GetWorkerBuildIdCompatibilityRequest</code>
 */
class GetWorkerBuildIdCompatibilityRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string namespace = 1;</code>
     */
    protected $namespace = '';
    /**
     * Must be set, the task queue to interrogate about worker id compatibility.
     *
     * Generated from protobuf field <code>string task_queue = 2;</code>
     */
    protected $task_queue = '';
    /**
     * Limits how many compatible sets will be returned. Specify 1 to only return the current
     * default major version set. 0 returns all sets.
     *
     * Generated from protobuf field <code>int32 max_sets = 3;</code>
     */
    protected $max_sets = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $namespace
     *     @type string $task_queue
     *           Must be set, the task queue to interrogate about worker id compatibility.
     *     @type int $max_sets
     *           Limits how many compatible sets will be returned. Specify 1 to only return the current
     *           default major version set. 0 returns all sets.
     * }
     */
    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;
    }

    /**
     * Must be set, the task queue to interrogate about worker id compatibility.
     *
     * Generated from protobuf field <code>string task_queue = 2;</code>
     * @return string
     */
    public function getTaskQueue()
    {
        return $this->task_queue;
    }

    /**
     * Must be set, the task queue to interrogate about worker id compatibility.
     *
     * Generated from protobuf field <code>string task_queue = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setTaskQueue($var)
    {
        GPBUtil::checkString($var, True);
        $this->task_queue = $var;

        return $this;
    }

    /**
     * Limits how many compatible sets will be returned. Specify 1 to only return the current
     * default major version set. 0 returns all sets.
     *
     * Generated from protobuf field <code>int32 max_sets = 3;</code>
     * @return int
     */
    public function getMaxSets()
    {
        return $this->max_sets;
    }

    /**
     * Limits how many compatible sets will be returned. Specify 1 to only return the current
     * default major version set. 0 returns all sets.
     *
     * Generated from protobuf field <code>int32 max_sets = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setMaxSets($var)
    {
        GPBUtil::checkInt32($var);
        $this->max_sets = $var;

        return $this;
    }

}

