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

namespace Livekit;

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

/**
 * Generated from protobuf message <code>livekit.InputVideoState</code>
 */
class InputVideoState extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>uint32 mime_type = 1;</code>
     */
    protected $mime_type = 0;
    /**
     *  uint32 bitrate = 2;
     *
     * Generated from protobuf field <code>uint32 width = 3;</code>
     */
    protected $width = 0;
    /**
     * Generated from protobuf field <code>uint32 height = 4;</code>
     */
    protected $height = 0;
    /**
     * Generated from protobuf field <code>uint32 framerate = 5;</code>
     */
    protected $framerate = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $mime_type
     *     @type int $width
     *            uint32 bitrate = 2;
     *     @type int $height
     *     @type int $framerate
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitIngress::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

}

