rv.analytics.ProContent
*/
class ProContent extends \Google\Protobuf\Internal\Message
{
protected $Event;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Rv\Analytics\ProContent\ViewMediaBin $media_bin
* @type \Rv\Analytics\ProContent\Download $download
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\AnalyticsProContent::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field .rv.analytics.ProContent.ViewMediaBin media_bin = 1;
* @return \Rv\Analytics\ProContent\ViewMediaBin|null
*/
public function getMediaBin()
{
return $this->readOneof(1);
}
public function hasMediaBin()
{
return $this->hasOneof(1);
}
/**
* Generated from protobuf field .rv.analytics.ProContent.ViewMediaBin media_bin = 1;
* @param \Rv\Analytics\ProContent\ViewMediaBin $var
* @return $this
*/
public function setMediaBin($var)
{
GPBUtil::checkMessage($var, \Rv\Analytics\ProContent\ViewMediaBin::class);
$this->writeOneof(1, $var);
return $this;
}
/**
* Generated from protobuf field .rv.analytics.ProContent.Download download = 2;
* @return \Rv\Analytics\ProContent\Download|null
*/
public function getDownload()
{
return $this->readOneof(2);
}
public function hasDownload()
{
return $this->hasOneof(2);
}
/**
* Generated from protobuf field .rv.analytics.ProContent.Download download = 2;
* @param \Rv\Analytics\ProContent\Download $var
* @return $this
*/
public function setDownload($var)
{
GPBUtil::checkMessage($var, \Rv\Analytics\ProContent\Download::class);
$this->writeOneof(2, $var);
return $this;
}
/**
* @return string
*/
public function getEvent()
{
return $this->whichOneof("Event");
}
}