<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: livekit_room.proto

namespace Livekit;

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

/**
 * Generated from protobuf message <code>livekit.ListRoomsRequest</code>
 */
class ListRoomsRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * when set, will only return rooms with name match
     *
     * Generated from protobuf field <code>repeated string names = 1;</code>
     */
    private $names;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string[] $names
     *           when set, will only return rooms with name match
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitRoom::initOnce();
        parent::__construct($data);
    }

    /**
     * when set, will only return rooms with name match
     *
     * Generated from protobuf field <code>repeated string names = 1;</code>
     * @return RepeatedField<string>
     */
    public function getNames()
    {
        return $this->names;
    }

    /**
     * when set, will only return rooms with name match
     *
     * Generated from protobuf field <code>repeated string names = 1;</code>
     * @param string[] $var
     * @return $this
     */
    public function setNames($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->names = $arr;

        return $this;
    }

}

