<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: livekit_models.proto

namespace Livekit;

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

/**
 * ListUpdate is used for updated APIs where 'repeated string' field is modified.
 *
 * Generated from protobuf message <code>livekit.ListUpdate</code>
 */
class ListUpdate extends \Google\Protobuf\Internal\Message
{
    /**
     * set the field to a new list
     *
     * Generated from protobuf field <code>repeated string set = 1;</code>
     */
    private $set;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string[]|\Google\Protobuf\Internal\RepeatedField $set
     *           set the field to a new list
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitModels::initOnce();
        parent::__construct($data);
    }

    /**
     * set the field to a new list
     *
     * Generated from protobuf field <code>repeated string set = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getSet()
    {
        return $this->set;
    }

    /**
     * set the field to a new list
     *
     * Generated from protobuf field <code>repeated string set = 1;</code>
     * @param string[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setSet($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->set = $arr;

        return $this;
    }

}

