- Move src/, tests/, bin/, generated/, proto/, composer.json, composer.lock, phpunit.xml from php/ to repo root - Move ref/ to doc/reference_samples/ for better organization - Remove vendor/ from git tracking (now properly gitignored) - Update all test file paths (dirname adjustments and ref/ -> doc/reference_samples/) - Update all documentation paths (AGENTS.md, doc/*.md) - Remove php.bak/ directory - All 252 tests pass
330 lines
7.6 KiB
PHP
330 lines
7.6 KiB
PHP
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
# source: proCore.proto
|
|
|
|
namespace Rv\Data\MediaMetadataRequestResponse;
|
|
|
|
use Google\Protobuf\Internal\GPBType;
|
|
use Google\Protobuf\Internal\RepeatedField;
|
|
use Google\Protobuf\Internal\GPBUtil;
|
|
|
|
/**
|
|
* Generated from protobuf message <code>rv.data.MediaMetadataRequestResponse.Metadata</code>
|
|
*/
|
|
class Metadata extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Generated from protobuf field <code>uint32 width = 1;</code>
|
|
*/
|
|
protected $width = 0;
|
|
/**
|
|
* Generated from protobuf field <code>uint32 height = 2;</code>
|
|
*/
|
|
protected $height = 0;
|
|
/**
|
|
* Generated from protobuf field <code>float fps = 3;</code>
|
|
*/
|
|
protected $fps = 0.0;
|
|
/**
|
|
* Generated from protobuf field <code>float duration = 4;</code>
|
|
*/
|
|
protected $duration = 0.0;
|
|
/**
|
|
* Generated from protobuf field <code>uint32 number_audio_channels = 5;</code>
|
|
*/
|
|
protected $number_audio_channels = 0;
|
|
/**
|
|
* Generated from protobuf field <code>string codec = 6;</code>
|
|
*/
|
|
protected $codec = '';
|
|
/**
|
|
* Generated from protobuf field <code>string artist = 7;</code>
|
|
*/
|
|
protected $artist = '';
|
|
/**
|
|
* Generated from protobuf field <code>string title = 8;</code>
|
|
*/
|
|
protected $title = '';
|
|
/**
|
|
* Generated from protobuf field <code>float rotation = 9;</code>
|
|
*/
|
|
protected $rotation = 0.0;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.MediaMetadataRequestResponse.Metadata.ContentType content_type = 10;</code>
|
|
*/
|
|
protected $content_type = 0;
|
|
/**
|
|
* Generated from protobuf field <code>bool has_alpha_channel = 11;</code>
|
|
*/
|
|
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 <code>uint32 width = 1;</code>
|
|
* @return int
|
|
*/
|
|
public function getWidth()
|
|
{
|
|
return $this->width;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>uint32 width = 1;</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 = 2;</code>
|
|
* @return int
|
|
*/
|
|
public function getHeight()
|
|
{
|
|
return $this->height;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>uint32 height = 2;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setHeight($var)
|
|
{
|
|
GPBUtil::checkUint32($var);
|
|
$this->height = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>float fps = 3;</code>
|
|
* @return float
|
|
*/
|
|
public function getFps()
|
|
{
|
|
return $this->fps;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>float fps = 3;</code>
|
|
* @param float $var
|
|
* @return $this
|
|
*/
|
|
public function setFps($var)
|
|
{
|
|
GPBUtil::checkFloat($var);
|
|
$this->fps = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>float duration = 4;</code>
|
|
* @return float
|
|
*/
|
|
public function getDuration()
|
|
{
|
|
return $this->duration;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>float duration = 4;</code>
|
|
* @param float $var
|
|
* @return $this
|
|
*/
|
|
public function setDuration($var)
|
|
{
|
|
GPBUtil::checkFloat($var);
|
|
$this->duration = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>uint32 number_audio_channels = 5;</code>
|
|
* @return int
|
|
*/
|
|
public function getNumberAudioChannels()
|
|
{
|
|
return $this->number_audio_channels;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>uint32 number_audio_channels = 5;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setNumberAudioChannels($var)
|
|
{
|
|
GPBUtil::checkUint32($var);
|
|
$this->number_audio_channels = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string codec = 6;</code>
|
|
* @return string
|
|
*/
|
|
public function getCodec()
|
|
{
|
|
return $this->codec;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string codec = 6;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setCodec($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->codec = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string artist = 7;</code>
|
|
* @return string
|
|
*/
|
|
public function getArtist()
|
|
{
|
|
return $this->artist;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string artist = 7;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setArtist($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->artist = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string title = 8;</code>
|
|
* @return string
|
|
*/
|
|
public function getTitle()
|
|
{
|
|
return $this->title;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string title = 8;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setTitle($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->title = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>float rotation = 9;</code>
|
|
* @return float
|
|
*/
|
|
public function getRotation()
|
|
{
|
|
return $this->rotation;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>float rotation = 9;</code>
|
|
* @param float $var
|
|
* @return $this
|
|
*/
|
|
public function setRotation($var)
|
|
{
|
|
GPBUtil::checkFloat($var);
|
|
$this->rotation = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.MediaMetadataRequestResponse.Metadata.ContentType content_type = 10;</code>
|
|
* @return int
|
|
*/
|
|
public function getContentType()
|
|
{
|
|
return $this->content_type;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.MediaMetadataRequestResponse.Metadata.ContentType content_type = 10;</code>
|
|
* @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 <code>bool has_alpha_channel = 11;</code>
|
|
* @return bool
|
|
*/
|
|
public function getHasAlphaChannel()
|
|
{
|
|
return $this->has_alpha_channel;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool has_alpha_channel = 11;</code>
|
|
* @param bool $var
|
|
* @return $this
|
|
*/
|
|
public function setHasAlphaChannel($var)
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
$this->has_alpha_channel = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|