rv.data.MediaMetadataRequestResponse.Metadata
*/
class Metadata extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field uint32 width = 1;
*/
protected $width = 0;
/**
* Generated from protobuf field uint32 height = 2;
*/
protected $height = 0;
/**
* Generated from protobuf field float fps = 3;
*/
protected $fps = 0.0;
/**
* Generated from protobuf field float duration = 4;
*/
protected $duration = 0.0;
/**
* Generated from protobuf field uint32 number_audio_channels = 5;
*/
protected $number_audio_channels = 0;
/**
* Generated from protobuf field string codec = 6;
*/
protected $codec = '';
/**
* Generated from protobuf field string artist = 7;
*/
protected $artist = '';
/**
* Generated from protobuf field string title = 8;
*/
protected $title = '';
/**
* Generated from protobuf field float rotation = 9;
*/
protected $rotation = 0.0;
/**
* Generated from protobuf field .rv.data.MediaMetadataRequestResponse.Metadata.ContentType content_type = 10;
*/
protected $content_type = 0;
/**
* Generated from protobuf field bool has_alpha_channel = 11;
*/
protected $has_alpha_channel = false;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $width
* @type int $height
* @type float $fps
* @type float $duration
* @type int $number_audio_channels
* @type string $codec
* @type string $artist
* @type string $title
* @type float $rotation
* @type int $content_type
* @type bool $has_alpha_channel
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\ProCore::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field uint32 width = 1;
* @return int
*/
public function getWidth()
{
return $this->width;
}
/**
* Generated from protobuf field uint32 width = 1;
* @param int $var
* @return $this
*/
public function setWidth($var)
{
GPBUtil::checkUint32($var);
$this->width = $var;
return $this;
}
/**
* Generated from protobuf field uint32 height = 2;
* @return int
*/
public function getHeight()
{
return $this->height;
}
/**
* Generated from protobuf field uint32 height = 2;
* @param int $var
* @return $this
*/
public function setHeight($var)
{
GPBUtil::checkUint32($var);
$this->height = $var;
return $this;
}
/**
* Generated from protobuf field float fps = 3;
* @return float
*/
public function getFps()
{
return $this->fps;
}
/**
* Generated from protobuf field float fps = 3;
* @param float $var
* @return $this
*/
public function setFps($var)
{
GPBUtil::checkFloat($var);
$this->fps = $var;
return $this;
}
/**
* Generated from protobuf field float duration = 4;
* @return float
*/
public function getDuration()
{
return $this->duration;
}
/**
* Generated from protobuf field float duration = 4;
* @param float $var
* @return $this
*/
public function setDuration($var)
{
GPBUtil::checkFloat($var);
$this->duration = $var;
return $this;
}
/**
* Generated from protobuf field uint32 number_audio_channels = 5;
* @return int
*/
public function getNumberAudioChannels()
{
return $this->number_audio_channels;
}
/**
* Generated from protobuf field uint32 number_audio_channels = 5;
* @param int $var
* @return $this
*/
public function setNumberAudioChannels($var)
{
GPBUtil::checkUint32($var);
$this->number_audio_channels = $var;
return $this;
}
/**
* Generated from protobuf field string codec = 6;
* @return string
*/
public function getCodec()
{
return $this->codec;
}
/**
* Generated from protobuf field string codec = 6;
* @param string $var
* @return $this
*/
public function setCodec($var)
{
GPBUtil::checkString($var, True);
$this->codec = $var;
return $this;
}
/**
* Generated from protobuf field string artist = 7;
* @return string
*/
public function getArtist()
{
return $this->artist;
}
/**
* Generated from protobuf field string artist = 7;
* @param string $var
* @return $this
*/
public function setArtist($var)
{
GPBUtil::checkString($var, True);
$this->artist = $var;
return $this;
}
/**
* Generated from protobuf field string title = 8;
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* Generated from protobuf field string title = 8;
* @param string $var
* @return $this
*/
public function setTitle($var)
{
GPBUtil::checkString($var, True);
$this->title = $var;
return $this;
}
/**
* Generated from protobuf field float rotation = 9;
* @return float
*/
public function getRotation()
{
return $this->rotation;
}
/**
* Generated from protobuf field float rotation = 9;
* @param float $var
* @return $this
*/
public function setRotation($var)
{
GPBUtil::checkFloat($var);
$this->rotation = $var;
return $this;
}
/**
* Generated from protobuf field .rv.data.MediaMetadataRequestResponse.Metadata.ContentType content_type = 10;
* @return int
*/
public function getContentType()
{
return $this->content_type;
}
/**
* Generated from protobuf field .rv.data.MediaMetadataRequestResponse.Metadata.ContentType content_type = 10;
* @param int $var
* @return $this
*/
public function setContentType($var)
{
GPBUtil::checkEnum($var, \Rv\Data\MediaMetadataRequestResponse\Metadata\ContentType::class);
$this->content_type = $var;
return $this;
}
/**
* Generated from protobuf field bool has_alpha_channel = 11;
* @return bool
*/
public function getHasAlphaChannel()
{
return $this->has_alpha_channel;
}
/**
* Generated from protobuf field bool has_alpha_channel = 11;
* @param bool $var
* @return $this
*/
public function setHasAlphaChannel($var)
{
GPBUtil::checkBool($var);
$this->has_alpha_channel = $var;
return $this;
}
}