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

namespace Livekit\DataTrackSubscriberHandles;

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

/**
 * Generated from protobuf message <code>livekit.DataTrackSubscriberHandles.PublishedDataTrack</code>
 */
class PublishedDataTrack extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string publisher_identity = 1;</code>
     */
    protected $publisher_identity = '';
    /**
     * Generated from protobuf field <code>string publisher_sid = 2;</code>
     */
    protected $publisher_sid = '';
    /**
     * Generated from protobuf field <code>string track_sid = 3;</code>
     */
    protected $track_sid = '';

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

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string publisher_sid = 2;</code>
     * @return string
     */
    public function getPublisherSid()
    {
        return $this->publisher_sid;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string track_sid = 3;</code>
     * @return string
     */
    public function getTrackSid()
    {
        return $this->track_sid;
    }

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

        return $this;
    }

}

