322 lines
9.2 KiB
PHP
322 lines
9.2 KiB
PHP
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
# source: proApiV1Transport.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_Transport_Request</code>
|
|
*/
|
|
class API_v1_Transport_Request extends \Google\Protobuf\Internal\Message
|
|
{
|
|
protected $Request;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type \Rv\Data\API_v1_Transport_Request\Play $play
|
|
* @type \Rv\Data\API_v1_Transport_Request\Pause $pause
|
|
* @type \Rv\Data\API_v1_Transport_Request\SkipBackward $skip_backward
|
|
* @type \Rv\Data\API_v1_Transport_Request\SkipForward $skip_forward
|
|
* @type \Rv\Data\API_v1_Transport_Request\GoToEnd $go_to_end
|
|
* @type \Rv\Data\API_v1_Transport_Request\GetTime $get_time
|
|
* @type \Rv\Data\API_v1_Transport_Request\PutTime $put_time
|
|
* @type \Rv\Data\API_v1_Transport_Request\GetAutoAdvance $get_auto_advance
|
|
* @type \Rv\Data\API_v1_Transport_Request\DeleteAutoAdvance $delete_auto_advance
|
|
* @type \Rv\Data\API_v1_Transport_Request\GetCurrentMedia $get_current_media
|
|
* }
|
|
*/
|
|
public function __construct($data = NULL) {
|
|
\GPBMetadata\ProApiV1Transport::initOnce();
|
|
parent::__construct($data);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Transport_Request.Play play = 1;</code>
|
|
* @return \Rv\Data\API_v1_Transport_Request\Play|null
|
|
*/
|
|
public function getPlay()
|
|
{
|
|
return $this->readOneof(1);
|
|
}
|
|
|
|
public function hasPlay()
|
|
{
|
|
return $this->hasOneof(1);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Transport_Request.Play play = 1;</code>
|
|
* @param \Rv\Data\API_v1_Transport_Request\Play $var
|
|
* @return $this
|
|
*/
|
|
public function setPlay($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Transport_Request\Play::class);
|
|
$this->writeOneof(1, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Transport_Request.Pause pause = 2;</code>
|
|
* @return \Rv\Data\API_v1_Transport_Request\Pause|null
|
|
*/
|
|
public function getPause()
|
|
{
|
|
return $this->readOneof(2);
|
|
}
|
|
|
|
public function hasPause()
|
|
{
|
|
return $this->hasOneof(2);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Transport_Request.Pause pause = 2;</code>
|
|
* @param \Rv\Data\API_v1_Transport_Request\Pause $var
|
|
* @return $this
|
|
*/
|
|
public function setPause($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Transport_Request\Pause::class);
|
|
$this->writeOneof(2, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Transport_Request.SkipBackward skip_backward = 3;</code>
|
|
* @return \Rv\Data\API_v1_Transport_Request\SkipBackward|null
|
|
*/
|
|
public function getSkipBackward()
|
|
{
|
|
return $this->readOneof(3);
|
|
}
|
|
|
|
public function hasSkipBackward()
|
|
{
|
|
return $this->hasOneof(3);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Transport_Request.SkipBackward skip_backward = 3;</code>
|
|
* @param \Rv\Data\API_v1_Transport_Request\SkipBackward $var
|
|
* @return $this
|
|
*/
|
|
public function setSkipBackward($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Transport_Request\SkipBackward::class);
|
|
$this->writeOneof(3, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Transport_Request.SkipForward skip_forward = 4;</code>
|
|
* @return \Rv\Data\API_v1_Transport_Request\SkipForward|null
|
|
*/
|
|
public function getSkipForward()
|
|
{
|
|
return $this->readOneof(4);
|
|
}
|
|
|
|
public function hasSkipForward()
|
|
{
|
|
return $this->hasOneof(4);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Transport_Request.SkipForward skip_forward = 4;</code>
|
|
* @param \Rv\Data\API_v1_Transport_Request\SkipForward $var
|
|
* @return $this
|
|
*/
|
|
public function setSkipForward($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Transport_Request\SkipForward::class);
|
|
$this->writeOneof(4, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Transport_Request.GoToEnd go_to_end = 5;</code>
|
|
* @return \Rv\Data\API_v1_Transport_Request\GoToEnd|null
|
|
*/
|
|
public function getGoToEnd()
|
|
{
|
|
return $this->readOneof(5);
|
|
}
|
|
|
|
public function hasGoToEnd()
|
|
{
|
|
return $this->hasOneof(5);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Transport_Request.GoToEnd go_to_end = 5;</code>
|
|
* @param \Rv\Data\API_v1_Transport_Request\GoToEnd $var
|
|
* @return $this
|
|
*/
|
|
public function setGoToEnd($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Transport_Request\GoToEnd::class);
|
|
$this->writeOneof(5, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Transport_Request.GetTime get_time = 6;</code>
|
|
* @return \Rv\Data\API_v1_Transport_Request\GetTime|null
|
|
*/
|
|
public function getGetTime()
|
|
{
|
|
return $this->readOneof(6);
|
|
}
|
|
|
|
public function hasGetTime()
|
|
{
|
|
return $this->hasOneof(6);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Transport_Request.GetTime get_time = 6;</code>
|
|
* @param \Rv\Data\API_v1_Transport_Request\GetTime $var
|
|
* @return $this
|
|
*/
|
|
public function setGetTime($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Transport_Request\GetTime::class);
|
|
$this->writeOneof(6, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Transport_Request.PutTime put_time = 7;</code>
|
|
* @return \Rv\Data\API_v1_Transport_Request\PutTime|null
|
|
*/
|
|
public function getPutTime()
|
|
{
|
|
return $this->readOneof(7);
|
|
}
|
|
|
|
public function hasPutTime()
|
|
{
|
|
return $this->hasOneof(7);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Transport_Request.PutTime put_time = 7;</code>
|
|
* @param \Rv\Data\API_v1_Transport_Request\PutTime $var
|
|
* @return $this
|
|
*/
|
|
public function setPutTime($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Transport_Request\PutTime::class);
|
|
$this->writeOneof(7, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Transport_Request.GetAutoAdvance get_auto_advance = 8;</code>
|
|
* @return \Rv\Data\API_v1_Transport_Request\GetAutoAdvance|null
|
|
*/
|
|
public function getGetAutoAdvance()
|
|
{
|
|
return $this->readOneof(8);
|
|
}
|
|
|
|
public function hasGetAutoAdvance()
|
|
{
|
|
return $this->hasOneof(8);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Transport_Request.GetAutoAdvance get_auto_advance = 8;</code>
|
|
* @param \Rv\Data\API_v1_Transport_Request\GetAutoAdvance $var
|
|
* @return $this
|
|
*/
|
|
public function setGetAutoAdvance($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Transport_Request\GetAutoAdvance::class);
|
|
$this->writeOneof(8, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Transport_Request.DeleteAutoAdvance delete_auto_advance = 9;</code>
|
|
* @return \Rv\Data\API_v1_Transport_Request\DeleteAutoAdvance|null
|
|
*/
|
|
public function getDeleteAutoAdvance()
|
|
{
|
|
return $this->readOneof(9);
|
|
}
|
|
|
|
public function hasDeleteAutoAdvance()
|
|
{
|
|
return $this->hasOneof(9);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Transport_Request.DeleteAutoAdvance delete_auto_advance = 9;</code>
|
|
* @param \Rv\Data\API_v1_Transport_Request\DeleteAutoAdvance $var
|
|
* @return $this
|
|
*/
|
|
public function setDeleteAutoAdvance($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Transport_Request\DeleteAutoAdvance::class);
|
|
$this->writeOneof(9, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Transport_Request.GetCurrentMedia get_current_media = 10;</code>
|
|
* @return \Rv\Data\API_v1_Transport_Request\GetCurrentMedia|null
|
|
*/
|
|
public function getGetCurrentMedia()
|
|
{
|
|
return $this->readOneof(10);
|
|
}
|
|
|
|
public function hasGetCurrentMedia()
|
|
{
|
|
return $this->hasOneof(10);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Transport_Request.GetCurrentMedia get_current_media = 10;</code>
|
|
* @param \Rv\Data\API_v1_Transport_Request\GetCurrentMedia $var
|
|
* @return $this
|
|
*/
|
|
public function setGetCurrentMedia($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Transport_Request\GetCurrentMedia::class);
|
|
$this->writeOneof(10, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getRequest()
|
|
{
|
|
return $this->whichOneof("Request");
|
|
}
|
|
|
|
}
|
|
|