rv.data.NetworkAPI.Action.API_Timer */ class API_Timer extends \Google\Protobuf\Internal\Message { protected $TimerAction; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Rv\Data\NetworkAPI\Action\API_Timer\StartTimer $start * @type \Rv\Data\NetworkAPI\Action\API_Timer\StopTimer $stop * @type \Rv\Data\NetworkAPI\Action\API_Timer\ResetTimer $reset * @type \Rv\Data\NetworkAPI\Action\API_Timer\ConfigureTimer $configure * } */ public function __construct($data = NULL) { \GPBMetadata\ProApi::initOnce(); parent::__construct($data); } /** * Generated from protobuf field .rv.data.NetworkAPI.Action.API_Timer.StartTimer start = 1; * @return \Rv\Data\NetworkAPI\Action\API_Timer\StartTimer|null */ public function getStart() { return $this->readOneof(1); } public function hasStart() { return $this->hasOneof(1); } /** * Generated from protobuf field .rv.data.NetworkAPI.Action.API_Timer.StartTimer start = 1; * @param \Rv\Data\NetworkAPI\Action\API_Timer\StartTimer $var * @return $this */ public function setStart($var) { GPBUtil::checkMessage($var, \Rv\Data\NetworkAPI\Action\API_Timer\StartTimer::class); $this->writeOneof(1, $var); return $this; } /** * Generated from protobuf field .rv.data.NetworkAPI.Action.API_Timer.StopTimer stop = 2; * @return \Rv\Data\NetworkAPI\Action\API_Timer\StopTimer|null */ public function getStop() { return $this->readOneof(2); } public function hasStop() { return $this->hasOneof(2); } /** * Generated from protobuf field .rv.data.NetworkAPI.Action.API_Timer.StopTimer stop = 2; * @param \Rv\Data\NetworkAPI\Action\API_Timer\StopTimer $var * @return $this */ public function setStop($var) { GPBUtil::checkMessage($var, \Rv\Data\NetworkAPI\Action\API_Timer\StopTimer::class); $this->writeOneof(2, $var); return $this; } /** * Generated from protobuf field .rv.data.NetworkAPI.Action.API_Timer.ResetTimer reset = 3; * @return \Rv\Data\NetworkAPI\Action\API_Timer\ResetTimer|null */ public function getReset() { return $this->readOneof(3); } public function hasReset() { return $this->hasOneof(3); } /** * Generated from protobuf field .rv.data.NetworkAPI.Action.API_Timer.ResetTimer reset = 3; * @param \Rv\Data\NetworkAPI\Action\API_Timer\ResetTimer $var * @return $this */ public function setReset($var) { GPBUtil::checkMessage($var, \Rv\Data\NetworkAPI\Action\API_Timer\ResetTimer::class); $this->writeOneof(3, $var); return $this; } /** * Generated from protobuf field .rv.data.NetworkAPI.Action.API_Timer.ConfigureTimer configure = 4; * @return \Rv\Data\NetworkAPI\Action\API_Timer\ConfigureTimer|null */ public function getConfigure() { return $this->readOneof(4); } public function hasConfigure() { return $this->hasOneof(4); } /** * Generated from protobuf field .rv.data.NetworkAPI.Action.API_Timer.ConfigureTimer configure = 4; * @param \Rv\Data\NetworkAPI\Action\API_Timer\ConfigureTimer $var * @return $this */ public function setConfigure($var) { GPBUtil::checkMessage($var, \Rv\Data\NetworkAPI\Action\API_Timer\ConfigureTimer::class); $this->writeOneof(4, $var); return $this; } /** * @return string */ public function getTimerAction() { return $this->whichOneof("TimerAction"); } }