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

namespace Livekit;

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

/**
 * Generated from protobuf message <code>livekit.InputVideoState</code>
 */
class InputVideoState extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string mime_type = 1;</code>
     */
    protected $mime_type = '';
    /**
     * Generated from protobuf field <code>uint32 average_bitrate = 2;</code>
     */
    protected $average_bitrate = 0;
    /**
     * 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>double framerate = 5;</code>
     */
    protected $framerate = 0.0;

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

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

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

        return $this;
    }

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

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

        return $this;
    }

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

    /**
     * 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>double framerate = 5;</code>
     * @return float
     */
    public function getFramerate()
    {
        return $this->framerate;
    }

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

        return $this;
    }

}

