<?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.DataChannelReceiveState</code>
 */
class DataChannelReceiveState extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string publisher_sid = 1;</code>
     */
    protected $publisher_sid = '';
    /**
     * Generated from protobuf field <code>uint32 last_seq = 2;</code>
     */
    protected $last_seq = 0;

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

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

    /**
     * Generated from protobuf field <code>string publisher_sid = 1;</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>uint32 last_seq = 2;</code>
     * @return int
     */
    public function getLastSeq()
    {
        return $this->last_seq;
    }

    /**
     * Generated from protobuf field <code>uint32 last_seq = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setLastSeq($var)
    {
        GPBUtil::checkUint32($var);
        $this->last_seq = $var;

        return $this;
    }

}

