154 lines
4.1 KiB
PHP
154 lines
4.1 KiB
PHP
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
# source: timedPlayback.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.TriggerSource</code>
|
|
*/
|
|
class TriggerSource extends \Google\Protobuf\Internal\Message
|
|
{
|
|
protected $Location;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type \Rv\Data\TriggerSource\Library $library_location
|
|
* @type \Rv\Data\TriggerSource\Playlist $playlist_location
|
|
* @type \Rv\Data\TriggerSource\Playlist $media_playlist_location
|
|
* @type \Rv\Data\TriggerSource\Playlist $audio_playlist_location
|
|
* }
|
|
*/
|
|
public function __construct($data = NULL) {
|
|
\GPBMetadata\TimedPlayback::initOnce();
|
|
parent::__construct($data);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.TriggerSource.Library library_location = 1;</code>
|
|
* @return \Rv\Data\TriggerSource\Library|null
|
|
*/
|
|
public function getLibraryLocation()
|
|
{
|
|
return $this->readOneof(1);
|
|
}
|
|
|
|
public function hasLibraryLocation()
|
|
{
|
|
return $this->hasOneof(1);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.TriggerSource.Library library_location = 1;</code>
|
|
* @param \Rv\Data\TriggerSource\Library $var
|
|
* @return $this
|
|
*/
|
|
public function setLibraryLocation($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\TriggerSource\Library::class);
|
|
$this->writeOneof(1, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.TriggerSource.Playlist playlist_location = 2;</code>
|
|
* @return \Rv\Data\TriggerSource\Playlist|null
|
|
*/
|
|
public function getPlaylistLocation()
|
|
{
|
|
return $this->readOneof(2);
|
|
}
|
|
|
|
public function hasPlaylistLocation()
|
|
{
|
|
return $this->hasOneof(2);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.TriggerSource.Playlist playlist_location = 2;</code>
|
|
* @param \Rv\Data\TriggerSource\Playlist $var
|
|
* @return $this
|
|
*/
|
|
public function setPlaylistLocation($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\TriggerSource\Playlist::class);
|
|
$this->writeOneof(2, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.TriggerSource.Playlist media_playlist_location = 3;</code>
|
|
* @return \Rv\Data\TriggerSource\Playlist|null
|
|
*/
|
|
public function getMediaPlaylistLocation()
|
|
{
|
|
return $this->readOneof(3);
|
|
}
|
|
|
|
public function hasMediaPlaylistLocation()
|
|
{
|
|
return $this->hasOneof(3);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.TriggerSource.Playlist media_playlist_location = 3;</code>
|
|
* @param \Rv\Data\TriggerSource\Playlist $var
|
|
* @return $this
|
|
*/
|
|
public function setMediaPlaylistLocation($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\TriggerSource\Playlist::class);
|
|
$this->writeOneof(3, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.TriggerSource.Playlist audio_playlist_location = 4;</code>
|
|
* @return \Rv\Data\TriggerSource\Playlist|null
|
|
*/
|
|
public function getAudioPlaylistLocation()
|
|
{
|
|
return $this->readOneof(4);
|
|
}
|
|
|
|
public function hasAudioPlaylistLocation()
|
|
{
|
|
return $this->hasOneof(4);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.TriggerSource.Playlist audio_playlist_location = 4;</code>
|
|
* @param \Rv\Data\TriggerSource\Playlist $var
|
|
* @return $this
|
|
*/
|
|
public function setAudioPlaylistLocation($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\TriggerSource\Playlist::class);
|
|
$this->writeOneof(4, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getLocation()
|
|
{
|
|
return $this->whichOneof("Location");
|
|
}
|
|
|
|
}
|
|
|