<?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.VP8MungerState</code>
 */
class VP8MungerState extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int32 ext_last_picture_id = 1;</code>
     */
    protected $ext_last_picture_id = 0;
    /**
     * Generated from protobuf field <code>bool picture_id_used = 2;</code>
     */
    protected $picture_id_used = false;
    /**
     * Generated from protobuf field <code>uint32 last_tl0_pic_idx = 3;</code>
     */
    protected $last_tl0_pic_idx = 0;
    /**
     * Generated from protobuf field <code>bool tl0_pic_idx_used = 4;</code>
     */
    protected $tl0_pic_idx_used = false;
    /**
     * Generated from protobuf field <code>bool tid_used = 5;</code>
     */
    protected $tid_used = false;
    /**
     * Generated from protobuf field <code>uint32 last_key_idx = 6;</code>
     */
    protected $last_key_idx = 0;
    /**
     * Generated from protobuf field <code>bool key_idx_used = 7;</code>
     */
    protected $key_idx_used = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $ext_last_picture_id
     *     @type bool $picture_id_used
     *     @type int $last_tl0_pic_idx
     *     @type bool $tl0_pic_idx_used
     *     @type bool $tid_used
     *     @type int $last_key_idx
     *     @type bool $key_idx_used
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitModels::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>int32 ext_last_picture_id = 1;</code>
     * @return int
     */
    public function getExtLastPictureId()
    {
        return $this->ext_last_picture_id;
    }

    /**
     * Generated from protobuf field <code>int32 ext_last_picture_id = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setExtLastPictureId($var)
    {
        GPBUtil::checkInt32($var);
        $this->ext_last_picture_id = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool picture_id_used = 2;</code>
     * @return bool
     */
    public function getPictureIdUsed()
    {
        return $this->picture_id_used;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint32 last_tl0_pic_idx = 3;</code>
     * @return int
     */
    public function getLastTl0PicIdx()
    {
        return $this->last_tl0_pic_idx;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool tl0_pic_idx_used = 4;</code>
     * @return bool
     */
    public function getTl0PicIdxUsed()
    {
        return $this->tl0_pic_idx_used;
    }

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint32 last_key_idx = 6;</code>
     * @return int
     */
    public function getLastKeyIdx()
    {
        return $this->last_key_idx;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool key_idx_used = 7;</code>
     * @return bool
     */
    public function getKeyIdxUsed()
    {
        return $this->key_idx_used;
    }

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

        return $this;
    }

}

