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

namespace Livekit;

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

/**
 * Generated from protobuf message <code>livekit.DataConfig</code>
 */
class DataConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * If empty, all data tracks captured.
     * If non-empty, only matching data tracks are captured.
     *
     * Generated from protobuf field <code>repeated .livekit.DataSelector selectors = 1;</code>
     */
    private $selectors;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Livekit\DataSelector[] $selectors
     *           If empty, all data tracks captured.
     *           If non-empty, only matching data tracks are captured.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitEgress::initOnce();
        parent::__construct($data);
    }

    /**
     * If empty, all data tracks captured.
     * If non-empty, only matching data tracks are captured.
     *
     * Generated from protobuf field <code>repeated .livekit.DataSelector selectors = 1;</code>
     * @return RepeatedField<\Livekit\DataSelector>
     */
    public function getSelectors()
    {
        return $this->selectors;
    }

    /**
     * If empty, all data tracks captured.
     * If non-empty, only matching data tracks are captured.
     *
     * Generated from protobuf field <code>repeated .livekit.DataSelector selectors = 1;</code>
     * @param \Livekit\DataSelector[] $var
     * @return $this
     */
    public function setSelectors($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Livekit\DataSelector::class);
        $this->selectors = $arr;

        return $this;
    }

}

