- 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
293 lines
7.1 KiB
PHP
293 lines
7.1 KiB
PHP
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
# source: graphicsData.proto
|
|
|
|
namespace Rv\Data;
|
|
|
|
use Google\Protobuf\Internal\GPBType;
|
|
use Google\Protobuf\Internal\RepeatedField;
|
|
use Google\Protobuf\Internal\GPBUtil;
|
|
|
|
/**
|
|
* Generated from protobuf message <code>rv.data.Media</code>
|
|
*/
|
|
class Media extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.UUID uuid = 1;</code>
|
|
*/
|
|
protected $uuid = null;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.URL url = 2;</code>
|
|
*/
|
|
protected $url = null;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Media.Metadata metadata = 3;</code>
|
|
*/
|
|
protected $metadata = null;
|
|
protected $TypeProperties;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type \Rv\Data\UUID $uuid
|
|
* @type \Rv\Data\URL $url
|
|
* @type \Rv\Data\Media\Metadata $metadata
|
|
* @type \Rv\Data\Media\AudioTypeProperties $audio
|
|
* @type \Rv\Data\Media\ImageTypeProperties $image
|
|
* @type \Rv\Data\Media\VideoTypeProperties $video
|
|
* @type \Rv\Data\Media\LiveVideoTypeProperties $live_video
|
|
* @type \Rv\Data\Media\WebContentTypeProperties $web_content
|
|
* }
|
|
*/
|
|
public function __construct($data = NULL) {
|
|
\GPBMetadata\GraphicsData::initOnce();
|
|
parent::__construct($data);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.UUID uuid = 1;</code>
|
|
* @return \Rv\Data\UUID|null
|
|
*/
|
|
public function getUuid()
|
|
{
|
|
return $this->uuid;
|
|
}
|
|
|
|
public function hasUuid()
|
|
{
|
|
return isset($this->uuid);
|
|
}
|
|
|
|
public function clearUuid()
|
|
{
|
|
unset($this->uuid);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.UUID uuid = 1;</code>
|
|
* @param \Rv\Data\UUID $var
|
|
* @return $this
|
|
*/
|
|
public function setUuid($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\UUID::class);
|
|
$this->uuid = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.URL url = 2;</code>
|
|
* @return \Rv\Data\URL|null
|
|
*/
|
|
public function getUrl()
|
|
{
|
|
return $this->url;
|
|
}
|
|
|
|
public function hasUrl()
|
|
{
|
|
return isset($this->url);
|
|
}
|
|
|
|
public function clearUrl()
|
|
{
|
|
unset($this->url);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.URL url = 2;</code>
|
|
* @param \Rv\Data\URL $var
|
|
* @return $this
|
|
*/
|
|
public function setUrl($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\URL::class);
|
|
$this->url = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Media.Metadata metadata = 3;</code>
|
|
* @return \Rv\Data\Media\Metadata|null
|
|
*/
|
|
public function getMetadata()
|
|
{
|
|
return $this->metadata;
|
|
}
|
|
|
|
public function hasMetadata()
|
|
{
|
|
return isset($this->metadata);
|
|
}
|
|
|
|
public function clearMetadata()
|
|
{
|
|
unset($this->metadata);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Media.Metadata metadata = 3;</code>
|
|
* @param \Rv\Data\Media\Metadata $var
|
|
* @return $this
|
|
*/
|
|
public function setMetadata($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\Media\Metadata::class);
|
|
$this->metadata = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Media.AudioTypeProperties audio = 4;</code>
|
|
* @return \Rv\Data\Media\AudioTypeProperties|null
|
|
*/
|
|
public function getAudio()
|
|
{
|
|
return $this->readOneof(4);
|
|
}
|
|
|
|
public function hasAudio()
|
|
{
|
|
return $this->hasOneof(4);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Media.AudioTypeProperties audio = 4;</code>
|
|
* @param \Rv\Data\Media\AudioTypeProperties $var
|
|
* @return $this
|
|
*/
|
|
public function setAudio($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\Media\AudioTypeProperties::class);
|
|
$this->writeOneof(4, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Media.ImageTypeProperties image = 5;</code>
|
|
* @return \Rv\Data\Media\ImageTypeProperties|null
|
|
*/
|
|
public function getImage()
|
|
{
|
|
return $this->readOneof(5);
|
|
}
|
|
|
|
public function hasImage()
|
|
{
|
|
return $this->hasOneof(5);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Media.ImageTypeProperties image = 5;</code>
|
|
* @param \Rv\Data\Media\ImageTypeProperties $var
|
|
* @return $this
|
|
*/
|
|
public function setImage($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\Media\ImageTypeProperties::class);
|
|
$this->writeOneof(5, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Media.VideoTypeProperties video = 6;</code>
|
|
* @return \Rv\Data\Media\VideoTypeProperties|null
|
|
*/
|
|
public function getVideo()
|
|
{
|
|
return $this->readOneof(6);
|
|
}
|
|
|
|
public function hasVideo()
|
|
{
|
|
return $this->hasOneof(6);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Media.VideoTypeProperties video = 6;</code>
|
|
* @param \Rv\Data\Media\VideoTypeProperties $var
|
|
* @return $this
|
|
*/
|
|
public function setVideo($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\Media\VideoTypeProperties::class);
|
|
$this->writeOneof(6, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Media.LiveVideoTypeProperties live_video = 7;</code>
|
|
* @return \Rv\Data\Media\LiveVideoTypeProperties|null
|
|
*/
|
|
public function getLiveVideo()
|
|
{
|
|
return $this->readOneof(7);
|
|
}
|
|
|
|
public function hasLiveVideo()
|
|
{
|
|
return $this->hasOneof(7);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Media.LiveVideoTypeProperties live_video = 7;</code>
|
|
* @param \Rv\Data\Media\LiveVideoTypeProperties $var
|
|
* @return $this
|
|
*/
|
|
public function setLiveVideo($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\Media\LiveVideoTypeProperties::class);
|
|
$this->writeOneof(7, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Media.WebContentTypeProperties web_content = 8;</code>
|
|
* @return \Rv\Data\Media\WebContentTypeProperties|null
|
|
*/
|
|
public function getWebContent()
|
|
{
|
|
return $this->readOneof(8);
|
|
}
|
|
|
|
public function hasWebContent()
|
|
{
|
|
return $this->hasOneof(8);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Media.WebContentTypeProperties web_content = 8;</code>
|
|
* @param \Rv\Data\Media\WebContentTypeProperties $var
|
|
* @return $this
|
|
*/
|
|
public function setWebContent($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\Media\WebContentTypeProperties::class);
|
|
$this->writeOneof(8, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getTypeProperties()
|
|
{
|
|
return $this->whichOneof("TypeProperties");
|
|
}
|
|
|
|
}
|
|
|