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

namespace Livekit;

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

/**
 * Generated from protobuf message <code>livekit.UpdateDataSubscription</code>
 */
class UpdateDataSubscription extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>repeated .livekit.UpdateDataSubscription.Update updates = 1;</code>
     */
    private $updates;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Livekit\UpdateDataSubscription\Update[] $updates
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitRtc::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>repeated .livekit.UpdateDataSubscription.Update updates = 1;</code>
     * @return RepeatedField<\Livekit\UpdateDataSubscription\Update>
     */
    public function getUpdates()
    {
        return $this->updates;
    }

    /**
     * Generated from protobuf field <code>repeated .livekit.UpdateDataSubscription.Update updates = 1;</code>
     * @param \Livekit\UpdateDataSubscription\Update[] $var
     * @return $this
     */
    public function setUpdates($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Livekit\UpdateDataSubscription\Update::class);
        $this->updates = $arr;

        return $this;
    }

}

