378 lines
11 KiB
PHP
378 lines
11 KiB
PHP
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
# source: proApiV1Timer.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_Timer_Request</code>
|
|
*/
|
|
class API_v1_Timer_Request extends \Google\Protobuf\Internal\Message
|
|
{
|
|
protected $Request;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type \Rv\Data\API_v1_Timer_Request\Timers $timers
|
|
* @type \Rv\Data\API_v1_Timer_Request\CreateTimer $create_timer
|
|
* @type \Rv\Data\API_v1_Timer_Request\CurrentTimes $current_times
|
|
* @type \Rv\Data\API_v1_Timer_Request\AllTimersOperation $all_timers_operation
|
|
* @type \Rv\Data\API_v1_Timer_Request\GetTimer $get_timer
|
|
* @type \Rv\Data\API_v1_Timer_Request\PutTimer $put_timer
|
|
* @type \Rv\Data\API_v1_Timer_Request\DeleteTimer $delete_timer
|
|
* @type \Rv\Data\API_v1_Timer_Request\TimerOperation $timer_operation
|
|
* @type \Rv\Data\API_v1_Timer_Request\PutTimerOperation $put_timer_operation
|
|
* @type \Rv\Data\API_v1_Timer_Request\TimerIncrement $timer_increment
|
|
* @type \Rv\Data\API_v1_Timer_Request\SystemTime $system_time
|
|
* @type \Rv\Data\API_v1_Timer_Request\VideoCountdown $video_countdown
|
|
* }
|
|
*/
|
|
public function __construct($data = NULL) {
|
|
\GPBMetadata\ProApiV1Timer::initOnce();
|
|
parent::__construct($data);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Timer_Request.Timers timers = 1;</code>
|
|
* @return \Rv\Data\API_v1_Timer_Request\Timers|null
|
|
*/
|
|
public function getTimers()
|
|
{
|
|
return $this->readOneof(1);
|
|
}
|
|
|
|
public function hasTimers()
|
|
{
|
|
return $this->hasOneof(1);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Timer_Request.Timers timers = 1;</code>
|
|
* @param \Rv\Data\API_v1_Timer_Request\Timers $var
|
|
* @return $this
|
|
*/
|
|
public function setTimers($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Timer_Request\Timers::class);
|
|
$this->writeOneof(1, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Timer_Request.CreateTimer create_timer = 2;</code>
|
|
* @return \Rv\Data\API_v1_Timer_Request\CreateTimer|null
|
|
*/
|
|
public function getCreateTimer()
|
|
{
|
|
return $this->readOneof(2);
|
|
}
|
|
|
|
public function hasCreateTimer()
|
|
{
|
|
return $this->hasOneof(2);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Timer_Request.CreateTimer create_timer = 2;</code>
|
|
* @param \Rv\Data\API_v1_Timer_Request\CreateTimer $var
|
|
* @return $this
|
|
*/
|
|
public function setCreateTimer($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Timer_Request\CreateTimer::class);
|
|
$this->writeOneof(2, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Timer_Request.CurrentTimes current_times = 3;</code>
|
|
* @return \Rv\Data\API_v1_Timer_Request\CurrentTimes|null
|
|
*/
|
|
public function getCurrentTimes()
|
|
{
|
|
return $this->readOneof(3);
|
|
}
|
|
|
|
public function hasCurrentTimes()
|
|
{
|
|
return $this->hasOneof(3);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Timer_Request.CurrentTimes current_times = 3;</code>
|
|
* @param \Rv\Data\API_v1_Timer_Request\CurrentTimes $var
|
|
* @return $this
|
|
*/
|
|
public function setCurrentTimes($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Timer_Request\CurrentTimes::class);
|
|
$this->writeOneof(3, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Timer_Request.AllTimersOperation all_timers_operation = 4;</code>
|
|
* @return \Rv\Data\API_v1_Timer_Request\AllTimersOperation|null
|
|
*/
|
|
public function getAllTimersOperation()
|
|
{
|
|
return $this->readOneof(4);
|
|
}
|
|
|
|
public function hasAllTimersOperation()
|
|
{
|
|
return $this->hasOneof(4);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Timer_Request.AllTimersOperation all_timers_operation = 4;</code>
|
|
* @param \Rv\Data\API_v1_Timer_Request\AllTimersOperation $var
|
|
* @return $this
|
|
*/
|
|
public function setAllTimersOperation($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Timer_Request\AllTimersOperation::class);
|
|
$this->writeOneof(4, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Timer_Request.GetTimer get_timer = 5;</code>
|
|
* @return \Rv\Data\API_v1_Timer_Request\GetTimer|null
|
|
*/
|
|
public function getGetTimer()
|
|
{
|
|
return $this->readOneof(5);
|
|
}
|
|
|
|
public function hasGetTimer()
|
|
{
|
|
return $this->hasOneof(5);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Timer_Request.GetTimer get_timer = 5;</code>
|
|
* @param \Rv\Data\API_v1_Timer_Request\GetTimer $var
|
|
* @return $this
|
|
*/
|
|
public function setGetTimer($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Timer_Request\GetTimer::class);
|
|
$this->writeOneof(5, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Timer_Request.PutTimer put_timer = 6;</code>
|
|
* @return \Rv\Data\API_v1_Timer_Request\PutTimer|null
|
|
*/
|
|
public function getPutTimer()
|
|
{
|
|
return $this->readOneof(6);
|
|
}
|
|
|
|
public function hasPutTimer()
|
|
{
|
|
return $this->hasOneof(6);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Timer_Request.PutTimer put_timer = 6;</code>
|
|
* @param \Rv\Data\API_v1_Timer_Request\PutTimer $var
|
|
* @return $this
|
|
*/
|
|
public function setPutTimer($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Timer_Request\PutTimer::class);
|
|
$this->writeOneof(6, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Timer_Request.DeleteTimer delete_timer = 7;</code>
|
|
* @return \Rv\Data\API_v1_Timer_Request\DeleteTimer|null
|
|
*/
|
|
public function getDeleteTimer()
|
|
{
|
|
return $this->readOneof(7);
|
|
}
|
|
|
|
public function hasDeleteTimer()
|
|
{
|
|
return $this->hasOneof(7);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Timer_Request.DeleteTimer delete_timer = 7;</code>
|
|
* @param \Rv\Data\API_v1_Timer_Request\DeleteTimer $var
|
|
* @return $this
|
|
*/
|
|
public function setDeleteTimer($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Timer_Request\DeleteTimer::class);
|
|
$this->writeOneof(7, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Timer_Request.TimerOperation timer_operation = 8;</code>
|
|
* @return \Rv\Data\API_v1_Timer_Request\TimerOperation|null
|
|
*/
|
|
public function getTimerOperation()
|
|
{
|
|
return $this->readOneof(8);
|
|
}
|
|
|
|
public function hasTimerOperation()
|
|
{
|
|
return $this->hasOneof(8);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Timer_Request.TimerOperation timer_operation = 8;</code>
|
|
* @param \Rv\Data\API_v1_Timer_Request\TimerOperation $var
|
|
* @return $this
|
|
*/
|
|
public function setTimerOperation($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Timer_Request\TimerOperation::class);
|
|
$this->writeOneof(8, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Timer_Request.PutTimerOperation put_timer_operation = 9;</code>
|
|
* @return \Rv\Data\API_v1_Timer_Request\PutTimerOperation|null
|
|
*/
|
|
public function getPutTimerOperation()
|
|
{
|
|
return $this->readOneof(9);
|
|
}
|
|
|
|
public function hasPutTimerOperation()
|
|
{
|
|
return $this->hasOneof(9);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Timer_Request.PutTimerOperation put_timer_operation = 9;</code>
|
|
* @param \Rv\Data\API_v1_Timer_Request\PutTimerOperation $var
|
|
* @return $this
|
|
*/
|
|
public function setPutTimerOperation($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Timer_Request\PutTimerOperation::class);
|
|
$this->writeOneof(9, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Timer_Request.TimerIncrement timer_increment = 10;</code>
|
|
* @return \Rv\Data\API_v1_Timer_Request\TimerIncrement|null
|
|
*/
|
|
public function getTimerIncrement()
|
|
{
|
|
return $this->readOneof(10);
|
|
}
|
|
|
|
public function hasTimerIncrement()
|
|
{
|
|
return $this->hasOneof(10);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Timer_Request.TimerIncrement timer_increment = 10;</code>
|
|
* @param \Rv\Data\API_v1_Timer_Request\TimerIncrement $var
|
|
* @return $this
|
|
*/
|
|
public function setTimerIncrement($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Timer_Request\TimerIncrement::class);
|
|
$this->writeOneof(10, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Timer_Request.SystemTime system_time = 11;</code>
|
|
* @return \Rv\Data\API_v1_Timer_Request\SystemTime|null
|
|
*/
|
|
public function getSystemTime()
|
|
{
|
|
return $this->readOneof(11);
|
|
}
|
|
|
|
public function hasSystemTime()
|
|
{
|
|
return $this->hasOneof(11);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Timer_Request.SystemTime system_time = 11;</code>
|
|
* @param \Rv\Data\API_v1_Timer_Request\SystemTime $var
|
|
* @return $this
|
|
*/
|
|
public function setSystemTime($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Timer_Request\SystemTime::class);
|
|
$this->writeOneof(11, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Timer_Request.VideoCountdown video_countdown = 12;</code>
|
|
* @return \Rv\Data\API_v1_Timer_Request\VideoCountdown|null
|
|
*/
|
|
public function getVideoCountdown()
|
|
{
|
|
return $this->readOneof(12);
|
|
}
|
|
|
|
public function hasVideoCountdown()
|
|
{
|
|
return $this->hasOneof(12);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.API_v1_Timer_Request.VideoCountdown video_countdown = 12;</code>
|
|
* @param \Rv\Data\API_v1_Timer_Request\VideoCountdown $var
|
|
* @return $this
|
|
*/
|
|
public function setVideoCountdown($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Timer_Request\VideoCountdown::class);
|
|
$this->writeOneof(12, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getRequest()
|
|
{
|
|
return $this->whichOneof("Request");
|
|
}
|
|
|
|
}
|
|
|