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

namespace Temporal\Api\Taskqueue\V1;

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

/**
 * Used for specifying versions the caller is interested in.
 *
 * Generated from protobuf message <code>temporal.api.taskqueue.v1.TaskQueueVersionSelection</code>
 */
class TaskQueueVersionSelection extends \Google\Protobuf\Internal\Message
{
    /**
     * Include specific Build IDs.
     *
     * Generated from protobuf field <code>repeated string build_ids = 1;</code>
     */
    private $build_ids;
    /**
     * Include the unversioned queue.
     *
     * Generated from protobuf field <code>bool unversioned = 2;</code>
     */
    protected $unversioned = false;
    /**
     * Include all active versions. A version is considered active if, in the last few minutes,
     * it has had new tasks or polls, or it has been the subject of certain task queue API calls.
     *
     * Generated from protobuf field <code>bool all_active = 3;</code>
     */
    protected $all_active = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string[] $build_ids
     *           Include specific Build IDs.
     *     @type bool $unversioned
     *           Include the unversioned queue.
     *     @type bool $all_active
     *           Include all active versions. A version is considered active if, in the last few minutes,
     *           it has had new tasks or polls, or it has been the subject of certain task queue API calls.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Temporal\Api\Taskqueue\V1\Message::initOnce();
        parent::__construct($data);
    }

    /**
     * Include specific Build IDs.
     *
     * Generated from protobuf field <code>repeated string build_ids = 1;</code>
     * @return RepeatedField<string>
     */
    public function getBuildIds()
    {
        return $this->build_ids;
    }

    /**
     * Include specific Build IDs.
     *
     * Generated from protobuf field <code>repeated string build_ids = 1;</code>
     * @param string[] $var
     * @return $this
     */
    public function setBuildIds($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->build_ids = $arr;

        return $this;
    }

    /**
     * Include the unversioned queue.
     *
     * Generated from protobuf field <code>bool unversioned = 2;</code>
     * @return bool
     */
    public function getUnversioned()
    {
        return $this->unversioned;
    }

    /**
     * Include the unversioned queue.
     *
     * Generated from protobuf field <code>bool unversioned = 2;</code>
     * @param bool $var
     * @return $this
     */
    public function setUnversioned($var)
    {
        GPBUtil::checkBool($var);
        $this->unversioned = $var;

        return $this;
    }

    /**
     * Include all active versions. A version is considered active if, in the last few minutes,
     * it has had new tasks or polls, or it has been the subject of certain task queue API calls.
     *
     * Generated from protobuf field <code>bool all_active = 3;</code>
     * @return bool
     */
    public function getAllActive()
    {
        return $this->all_active;
    }

    /**
     * Include all active versions. A version is considered active if, in the last few minutes,
     * it has had new tasks or polls, or it has been the subject of certain task queue API calls.
     *
     * Generated from protobuf field <code>bool all_active = 3;</code>
     * @param bool $var
     * @return $this
     */
    public function setAllActive($var)
    {
        GPBUtil::checkBool($var);
        $this->all_active = $var;

        return $this;
    }

}

