rv.data.Recording.Stream.Encoder
*/
class Encoder extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field .rv.data.Recording.Stream.Codec codec = 1;
*/
protected $codec = 0;
/**
* Generated from protobuf field uint32 video_width = 2;
*/
protected $video_width = 0;
/**
* Generated from protobuf field uint32 video_height = 3;
*/
protected $video_height = 0;
/**
* Generated from protobuf field bool is_interlaced = 4;
*/
protected $is_interlaced = false;
/**
* Generated from protobuf field .rv.data.Recording.Stream.FrameRate frameRate = 5;
*/
protected $frameRate = 0;
/**
* Generated from protobuf field uint32 video_bitrate = 6;
*/
protected $video_bitrate = 0;
/**
* Generated from protobuf field uint32 audio_bitrate = 7;
*/
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 .rv.data.Recording.Stream.Codec codec = 1;
* @return int
*/
public function getCodec()
{
return $this->codec;
}
/**
* Generated from protobuf field .rv.data.Recording.Stream.Codec codec = 1;
* @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 uint32 video_width = 2;
* @return int
*/
public function getVideoWidth()
{
return $this->video_width;
}
/**
* Generated from protobuf field uint32 video_width = 2;
* @param int $var
* @return $this
*/
public function setVideoWidth($var)
{
GPBUtil::checkUint32($var);
$this->video_width = $var;
return $this;
}
/**
* Generated from protobuf field uint32 video_height = 3;
* @return int
*/
public function getVideoHeight()
{
return $this->video_height;
}
/**
* Generated from protobuf field uint32 video_height = 3;
* @param int $var
* @return $this
*/
public function setVideoHeight($var)
{
GPBUtil::checkUint32($var);
$this->video_height = $var;
return $this;
}
/**
* Generated from protobuf field bool is_interlaced = 4;
* @return bool
*/
public function getIsInterlaced()
{
return $this->is_interlaced;
}
/**
* Generated from protobuf field bool is_interlaced = 4;
* @param bool $var
* @return $this
*/
public function setIsInterlaced($var)
{
GPBUtil::checkBool($var);
$this->is_interlaced = $var;
return $this;
}
/**
* Generated from protobuf field .rv.data.Recording.Stream.FrameRate frameRate = 5;
* @return int
*/
public function getFrameRate()
{
return $this->frameRate;
}
/**
* Generated from protobuf field .rv.data.Recording.Stream.FrameRate frameRate = 5;
* @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 uint32 video_bitrate = 6;
* @return int
*/
public function getVideoBitrate()
{
return $this->video_bitrate;
}
/**
* Generated from protobuf field uint32 video_bitrate = 6;
* @param int $var
* @return $this
*/
public function setVideoBitrate($var)
{
GPBUtil::checkUint32($var);
$this->video_bitrate = $var;
return $this;
}
/**
* Generated from protobuf field uint32 audio_bitrate = 7;
* @return int
*/
public function getAudioBitrate()
{
return $this->audio_bitrate;
}
/**
* Generated from protobuf field uint32 audio_bitrate = 7;
* @param int $var
* @return $this
*/
public function setAudioBitrate($var)
{
GPBUtil::checkUint32($var);
$this->audio_bitrate = $var;
return $this;
}
}