<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: livekit_models.proto

namespace Livekit;

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

/**
 * Generated from protobuf message <code>livekit.RTPMungerState</code>
 */
class RTPMungerState extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>uint64 ext_last_sequence_number = 1;</code>
     */
    protected $ext_last_sequence_number = 0;
    /**
     * Generated from protobuf field <code>uint64 ext_second_last_sequence_number = 2;</code>
     */
    protected $ext_second_last_sequence_number = 0;
    /**
     * Generated from protobuf field <code>uint64 ext_last_timestamp = 3;</code>
     */
    protected $ext_last_timestamp = 0;
    /**
     * Generated from protobuf field <code>uint64 ext_second_last_timestamp = 4;</code>
     */
    protected $ext_second_last_timestamp = 0;
    /**
     * Generated from protobuf field <code>bool last_marker = 5;</code>
     */
    protected $last_marker = false;
    /**
     * Generated from protobuf field <code>bool second_last_marker = 6;</code>
     */
    protected $second_last_marker = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $ext_last_sequence_number
     *     @type int|string $ext_second_last_sequence_number
     *     @type int|string $ext_last_timestamp
     *     @type int|string $ext_second_last_timestamp
     *     @type bool $last_marker
     *     @type bool $second_last_marker
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitModels::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>uint64 ext_last_sequence_number = 1;</code>
     * @return int|string
     */
    public function getExtLastSequenceNumber()
    {
        return $this->ext_last_sequence_number;
    }

    /**
     * Generated from protobuf field <code>uint64 ext_last_sequence_number = 1;</code>
     * @param int|string $var
     * @return $this
     */
    public function setExtLastSequenceNumber($var)
    {
        GPBUtil::checkUint64($var);
        $this->ext_last_sequence_number = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint64 ext_second_last_sequence_number = 2;</code>
     * @return int|string
     */
    public function getExtSecondLastSequenceNumber()
    {
        return $this->ext_second_last_sequence_number;
    }

    /**
     * Generated from protobuf field <code>uint64 ext_second_last_sequence_number = 2;</code>
     * @param int|string $var
     * @return $this
     */
    public function setExtSecondLastSequenceNumber($var)
    {
        GPBUtil::checkUint64($var);
        $this->ext_second_last_sequence_number = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint64 ext_last_timestamp = 3;</code>
     * @return int|string
     */
    public function getExtLastTimestamp()
    {
        return $this->ext_last_timestamp;
    }

    /**
     * Generated from protobuf field <code>uint64 ext_last_timestamp = 3;</code>
     * @param int|string $var
     * @return $this
     */
    public function setExtLastTimestamp($var)
    {
        GPBUtil::checkUint64($var);
        $this->ext_last_timestamp = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint64 ext_second_last_timestamp = 4;</code>
     * @return int|string
     */
    public function getExtSecondLastTimestamp()
    {
        return $this->ext_second_last_timestamp;
    }

    /**
     * Generated from protobuf field <code>uint64 ext_second_last_timestamp = 4;</code>
     * @param int|string $var
     * @return $this
     */
    public function setExtSecondLastTimestamp($var)
    {
        GPBUtil::checkUint64($var);
        $this->ext_second_last_timestamp = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool last_marker = 5;</code>
     * @return bool
     */
    public function getLastMarker()
    {
        return $this->last_marker;
    }

    /**
     * Generated from protobuf field <code>bool last_marker = 5;</code>
     * @param bool $var
     * @return $this
     */
    public function setLastMarker($var)
    {
        GPBUtil::checkBool($var);
        $this->last_marker = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool second_last_marker = 6;</code>
     * @return bool
     */
    public function getSecondLastMarker()
    {
        return $this->second_last_marker;
    }

    /**
     * Generated from protobuf field <code>bool second_last_marker = 6;</code>
     * @param bool $var
     * @return $this
     */
    public function setSecondLastMarker($var)
    {
        GPBUtil::checkBool($var);
        $this->second_last_marker = $var;

        return $this;
    }

}

