<?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.TrackPublishedResponse</code>
 */
class TrackPublishedResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string cid = 1;</code>
     */
    protected $cid = '';
    /**
     * Generated from protobuf field <code>.livekit.TrackInfo track = 2;</code>
     */
    protected $track = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $cid
     *     @type \Livekit\TrackInfo $track
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitRtc::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>string cid = 1;</code>
     * @return string
     */
    public function getCid()
    {
        return $this->cid;
    }

    /**
     * Generated from protobuf field <code>string cid = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setCid($var)
    {
        GPBUtil::checkString($var, True);
        $this->cid = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.livekit.TrackInfo track = 2;</code>
     * @return \Livekit\TrackInfo|null
     */
    public function getTrack()
    {
        return $this->track;
    }

    public function hasTrack()
    {
        return isset($this->track);
    }

    public function clearTrack()
    {
        unset($this->track);
    }

    /**
     * Generated from protobuf field <code>.livekit.TrackInfo track = 2;</code>
     * @param \Livekit\TrackInfo $var
     * @return $this
     */
    public function setTrack($var)
    {
        GPBUtil::checkMessage($var, \Livekit\TrackInfo::class);
        $this->track = $var;

        return $this;
    }

}

