378 lines
10 KiB
PHP
378 lines
10 KiB
PHP
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
# source: proApiV1Trigger.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.API_v1_Trigger_Request</code>
|
|
*/
|
|
class API_v1_Trigger_Request extends \Google\Protobuf\Internal\Message
|
|
{
|
|
protected $Request;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type \Rv\Data\API_v1_Trigger_Request\Cue $cue
|
|
* @type \Rv\Data\API_v1_Trigger_Request\Playlist $playlist
|
|
* @type \Rv\Data\API_v1_Trigger_Request\Media $media
|
|
* @type \Rv\Data\API_v1_Trigger_Request\Audio $audio
|
|
* @type \Rv\Data\API_v1_Trigger_Request\VideoInput $video_input
|
|
* @type \Rv\Data\API_v1_Trigger_Request\Library $library
|
|
* @type \Rv\Data\API_v1_Trigger_Request\Next $next
|
|
* @type \Rv\Data\API_v1_Trigger_Request\Previous $previous
|
|
* @type \Rv\Data\API_v1_Trigger_Request\MediaNext $media_next
|
|
* @type \Rv\Data\API_v1_Trigger_Request\MediaPrevious $media_previous
|
|
* @type \Rv\Data\API_v1_Trigger_Request\AudioNext $audio_next
|
|
* @type \Rv\Data\API_v1_Trigger_Request\AudioPrevious $audio_previous
|
|
* }
|
|
*/
|
|
public function __construct($data = NULL) {
|
|
\GPBMetadata\ProApiV1Trigger::initOnce();
|
|
parent::__construct($data);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Trigger_Request.Cue cue = 1;</code>
|
|
* @return \Rv\Data\API_v1_Trigger_Request\Cue|null
|
|
*/
|
|
public function getCue()
|
|
{
|
|
return $this->readOneof(1);
|
|
}
|
|
|
|
public function hasCue()
|
|
{
|
|
return $this->hasOneof(1);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Trigger_Request.Cue cue = 1;</code>
|
|
* @param \Rv\Data\API_v1_Trigger_Request\Cue $var
|
|
* @return $this
|
|
*/
|
|
public function setCue($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Trigger_Request\Cue::class);
|
|
$this->writeOneof(1, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Trigger_Request.Playlist playlist = 2;</code>
|
|
* @return \Rv\Data\API_v1_Trigger_Request\Playlist|null
|
|
*/
|
|
public function getPlaylist()
|
|
{
|
|
return $this->readOneof(2);
|
|
}
|
|
|
|
public function hasPlaylist()
|
|
{
|
|
return $this->hasOneof(2);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Trigger_Request.Playlist playlist = 2;</code>
|
|
* @param \Rv\Data\API_v1_Trigger_Request\Playlist $var
|
|
* @return $this
|
|
*/
|
|
public function setPlaylist($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Trigger_Request\Playlist::class);
|
|
$this->writeOneof(2, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Trigger_Request.Media media = 3;</code>
|
|
* @return \Rv\Data\API_v1_Trigger_Request\Media|null
|
|
*/
|
|
public function getMedia()
|
|
{
|
|
return $this->readOneof(3);
|
|
}
|
|
|
|
public function hasMedia()
|
|
{
|
|
return $this->hasOneof(3);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Trigger_Request.Media media = 3;</code>
|
|
* @param \Rv\Data\API_v1_Trigger_Request\Media $var
|
|
* @return $this
|
|
*/
|
|
public function setMedia($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Trigger_Request\Media::class);
|
|
$this->writeOneof(3, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Trigger_Request.Audio audio = 4;</code>
|
|
* @return \Rv\Data\API_v1_Trigger_Request\Audio|null
|
|
*/
|
|
public function getAudio()
|
|
{
|
|
return $this->readOneof(4);
|
|
}
|
|
|
|
public function hasAudio()
|
|
{
|
|
return $this->hasOneof(4);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Trigger_Request.Audio audio = 4;</code>
|
|
* @param \Rv\Data\API_v1_Trigger_Request\Audio $var
|
|
* @return $this
|
|
*/
|
|
public function setAudio($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Trigger_Request\Audio::class);
|
|
$this->writeOneof(4, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Trigger_Request.VideoInput video_input = 5;</code>
|
|
* @return \Rv\Data\API_v1_Trigger_Request\VideoInput|null
|
|
*/
|
|
public function getVideoInput()
|
|
{
|
|
return $this->readOneof(5);
|
|
}
|
|
|
|
public function hasVideoInput()
|
|
{
|
|
return $this->hasOneof(5);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Trigger_Request.VideoInput video_input = 5;</code>
|
|
* @param \Rv\Data\API_v1_Trigger_Request\VideoInput $var
|
|
* @return $this
|
|
*/
|
|
public function setVideoInput($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Trigger_Request\VideoInput::class);
|
|
$this->writeOneof(5, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Trigger_Request.Library library = 6;</code>
|
|
* @return \Rv\Data\API_v1_Trigger_Request\Library|null
|
|
*/
|
|
public function getLibrary()
|
|
{
|
|
return $this->readOneof(6);
|
|
}
|
|
|
|
public function hasLibrary()
|
|
{
|
|
return $this->hasOneof(6);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Trigger_Request.Library library = 6;</code>
|
|
* @param \Rv\Data\API_v1_Trigger_Request\Library $var
|
|
* @return $this
|
|
*/
|
|
public function setLibrary($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Trigger_Request\Library::class);
|
|
$this->writeOneof(6, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Trigger_Request.Next next = 7;</code>
|
|
* @return \Rv\Data\API_v1_Trigger_Request\Next|null
|
|
*/
|
|
public function getNext()
|
|
{
|
|
return $this->readOneof(7);
|
|
}
|
|
|
|
public function hasNext()
|
|
{
|
|
return $this->hasOneof(7);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Trigger_Request.Next next = 7;</code>
|
|
* @param \Rv\Data\API_v1_Trigger_Request\Next $var
|
|
* @return $this
|
|
*/
|
|
public function setNext($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Trigger_Request\Next::class);
|
|
$this->writeOneof(7, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Trigger_Request.Previous previous = 8;</code>
|
|
* @return \Rv\Data\API_v1_Trigger_Request\Previous|null
|
|
*/
|
|
public function getPrevious()
|
|
{
|
|
return $this->readOneof(8);
|
|
}
|
|
|
|
public function hasPrevious()
|
|
{
|
|
return $this->hasOneof(8);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Trigger_Request.Previous previous = 8;</code>
|
|
* @param \Rv\Data\API_v1_Trigger_Request\Previous $var
|
|
* @return $this
|
|
*/
|
|
public function setPrevious($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Trigger_Request\Previous::class);
|
|
$this->writeOneof(8, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Trigger_Request.MediaNext media_next = 9;</code>
|
|
* @return \Rv\Data\API_v1_Trigger_Request\MediaNext|null
|
|
*/
|
|
public function getMediaNext()
|
|
{
|
|
return $this->readOneof(9);
|
|
}
|
|
|
|
public function hasMediaNext()
|
|
{
|
|
return $this->hasOneof(9);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Trigger_Request.MediaNext media_next = 9;</code>
|
|
* @param \Rv\Data\API_v1_Trigger_Request\MediaNext $var
|
|
* @return $this
|
|
*/
|
|
public function setMediaNext($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Trigger_Request\MediaNext::class);
|
|
$this->writeOneof(9, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Trigger_Request.MediaPrevious media_previous = 10;</code>
|
|
* @return \Rv\Data\API_v1_Trigger_Request\MediaPrevious|null
|
|
*/
|
|
public function getMediaPrevious()
|
|
{
|
|
return $this->readOneof(10);
|
|
}
|
|
|
|
public function hasMediaPrevious()
|
|
{
|
|
return $this->hasOneof(10);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Trigger_Request.MediaPrevious media_previous = 10;</code>
|
|
* @param \Rv\Data\API_v1_Trigger_Request\MediaPrevious $var
|
|
* @return $this
|
|
*/
|
|
public function setMediaPrevious($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Trigger_Request\MediaPrevious::class);
|
|
$this->writeOneof(10, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Trigger_Request.AudioNext audio_next = 11;</code>
|
|
* @return \Rv\Data\API_v1_Trigger_Request\AudioNext|null
|
|
*/
|
|
public function getAudioNext()
|
|
{
|
|
return $this->readOneof(11);
|
|
}
|
|
|
|
public function hasAudioNext()
|
|
{
|
|
return $this->hasOneof(11);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Trigger_Request.AudioNext audio_next = 11;</code>
|
|
* @param \Rv\Data\API_v1_Trigger_Request\AudioNext $var
|
|
* @return $this
|
|
*/
|
|
public function setAudioNext($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Trigger_Request\AudioNext::class);
|
|
$this->writeOneof(11, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Trigger_Request.AudioPrevious audio_previous = 12;</code>
|
|
* @return \Rv\Data\API_v1_Trigger_Request\AudioPrevious|null
|
|
*/
|
|
public function getAudioPrevious()
|
|
{
|
|
return $this->readOneof(12);
|
|
}
|
|
|
|
public function hasAudioPrevious()
|
|
{
|
|
return $this->hasOneof(12);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Trigger_Request.AudioPrevious audio_previous = 12;</code>
|
|
* @param \Rv\Data\API_v1_Trigger_Request\AudioPrevious $var
|
|
* @return $this
|
|
*/
|
|
public function setAudioPrevious($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Trigger_Request\AudioPrevious::class);
|
|
$this->writeOneof(12, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getRequest()
|
|
{
|
|
return $this->whichOneof("Request");
|
|
}
|
|
|
|
}
|
|
|