<?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.DataTrackSubscriberHandles</code>
 */
class DataTrackSubscriberHandles extends \Google\Protobuf\Internal\Message
{
    /**
     * Maps handles from incoming packets to the track SIDs that the packets belong to.
     *
     * Generated from protobuf field <code>map<uint32, .livekit.DataTrackSubscriberHandles.PublishedDataTrack> sub_handles = 1;</code>
     */
    private $sub_handles;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array|\Google\Protobuf\Internal\MapField $sub_handles
     *           Maps handles from incoming packets to the track SIDs that the packets belong to.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitRtc::initOnce();
        parent::__construct($data);
    }

    /**
     * Maps handles from incoming packets to the track SIDs that the packets belong to.
     *
     * Generated from protobuf field <code>map<uint32, .livekit.DataTrackSubscriberHandles.PublishedDataTrack> sub_handles = 1;</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getSubHandles()
    {
        return $this->sub_handles;
    }

    /**
     * Maps handles from incoming packets to the track SIDs that the packets belong to.
     *
     * Generated from protobuf field <code>map<uint32, .livekit.DataTrackSubscriberHandles.PublishedDataTrack> sub_handles = 1;</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setSubHandles($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::UINT32, \Google\Protobuf\Internal\GPBType::MESSAGE, \Livekit\DataTrackSubscriberHandles\PublishedDataTrack::class);
        $this->sub_handles = $arr;

        return $this;
    }

}

