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

namespace Rv\Data\Recording\Stream;

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

/**
 * Generated from protobuf message <code>rv.data.Recording.Stream.Encoder</code>
 */
class Encoder extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.Recording.Stream.Codec codec = 1;</code>
     */
    protected $codec = 0;
    /**
     * Generated from protobuf field <code>uint32 video_width = 2;</code>
     */
    protected $video_width = 0;
    /**
     * Generated from protobuf field <code>uint32 video_height = 3;</code>
     */
    protected $video_height = 0;
    /**
     * Generated from protobuf field <code>bool is_interlaced = 4;</code>
     */
    protected $is_interlaced = false;
    /**
     * Generated from protobuf field <code>.rv.data.Recording.Stream.FrameRate frameRate = 5;</code>
     */
    protected $frameRate = 0;
    /**
     * Generated from protobuf field <code>uint32 video_bitrate = 6;</code>
     */
    protected $video_bitrate = 0;
    /**
     * Generated from protobuf field <code>uint32 audio_bitrate = 7;</code>
     */
    protected $audio_bitrate = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $codec
     *     @type int $video_width
     *     @type int $video_height
     *     @type bool $is_interlaced
     *     @type int $frameRate
     *     @type int $video_bitrate
     *     @type int $audio_bitrate
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Recording::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.data.Recording.Stream.Codec codec = 1;</code>
     * @return int
     */
    public function getCodec()
    {
        return $this->codec;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Recording.Stream.Codec codec = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setCodec($var)
    {
        GPBUtil::checkEnum($var, \Rv\Data\Recording\Stream\Codec::class);
        $this->codec = $var;

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Recording.Stream.FrameRate frameRate = 5;</code>
     * @return int
     */
    public function getFrameRate()
    {
        return $this->frameRate;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Recording.Stream.FrameRate frameRate = 5;</code>
     * @param int $var
     * @return $this
     */
    public function setFrameRate($var)
    {
        GPBUtil::checkEnum($var, \Rv\Data\Recording\Stream\FrameRate::class);
        $this->frameRate = $var;

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

}

