rv.data.API_v1_Timer_Request.CreateTimer */ class CreateTimer extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field string name = 1; */ protected $name = ''; /** * Generated from protobuf field bool allows_overrun = 2; */ protected $allows_overrun = false; /** * Generated from protobuf field .rv.data.API_v1_Timer.API_v1_Timer_Countdown countdown = 3; */ protected $countdown = null; /** * Generated from protobuf field .rv.data.API_v1_Timer.API_v1_Timer_CountdownToTime count_down_to_time = 4; */ protected $count_down_to_time = null; /** * Generated from protobuf field .rv.data.API_v1_Timer.API_v1_Timer_Elapsed elapsed = 5; */ protected $elapsed = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $name * @type bool $allows_overrun * @type \Rv\Data\API_v1_Timer\API_v1_Timer_Countdown $countdown * @type \Rv\Data\API_v1_Timer\API_v1_Timer_CountdownToTime $count_down_to_time * @type \Rv\Data\API_v1_Timer\API_v1_Timer_Elapsed $elapsed * } */ public function __construct($data = NULL) { \GPBMetadata\ProApiV1Timer::initOnce(); parent::__construct($data); } /** * Generated from protobuf field string name = 1; * @return string */ public function getName() { return $this->name; } /** * Generated from protobuf field string name = 1; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * Generated from protobuf field bool allows_overrun = 2; * @return bool */ public function getAllowsOverrun() { return $this->allows_overrun; } /** * Generated from protobuf field bool allows_overrun = 2; * @param bool $var * @return $this */ public function setAllowsOverrun($var) { GPBUtil::checkBool($var); $this->allows_overrun = $var; return $this; } /** * Generated from protobuf field .rv.data.API_v1_Timer.API_v1_Timer_Countdown countdown = 3; * @return \Rv\Data\API_v1_Timer\API_v1_Timer_Countdown|null */ public function getCountdown() { return $this->countdown; } public function hasCountdown() { return isset($this->countdown); } public function clearCountdown() { unset($this->countdown); } /** * Generated from protobuf field .rv.data.API_v1_Timer.API_v1_Timer_Countdown countdown = 3; * @param \Rv\Data\API_v1_Timer\API_v1_Timer_Countdown $var * @return $this */ public function setCountdown($var) { GPBUtil::checkMessage($var, \Rv\Data\API_v1_Timer\API_v1_Timer_Countdown::class); $this->countdown = $var; return $this; } /** * Generated from protobuf field .rv.data.API_v1_Timer.API_v1_Timer_CountdownToTime count_down_to_time = 4; * @return \Rv\Data\API_v1_Timer\API_v1_Timer_CountdownToTime|null */ public function getCountDownToTime() { return $this->count_down_to_time; } public function hasCountDownToTime() { return isset($this->count_down_to_time); } public function clearCountDownToTime() { unset($this->count_down_to_time); } /** * Generated from protobuf field .rv.data.API_v1_Timer.API_v1_Timer_CountdownToTime count_down_to_time = 4; * @param \Rv\Data\API_v1_Timer\API_v1_Timer_CountdownToTime $var * @return $this */ public function setCountDownToTime($var) { GPBUtil::checkMessage($var, \Rv\Data\API_v1_Timer\API_v1_Timer_CountdownToTime::class); $this->count_down_to_time = $var; return $this; } /** * Generated from protobuf field .rv.data.API_v1_Timer.API_v1_Timer_Elapsed elapsed = 5; * @return \Rv\Data\API_v1_Timer\API_v1_Timer_Elapsed|null */ public function getElapsed() { return $this->elapsed; } public function hasElapsed() { return isset($this->elapsed); } public function clearElapsed() { unset($this->elapsed); } /** * Generated from protobuf field .rv.data.API_v1_Timer.API_v1_Timer_Elapsed elapsed = 5; * @param \Rv\Data\API_v1_Timer\API_v1_Timer_Elapsed $var * @return $this */ public function setElapsed($var) { GPBUtil::checkMessage($var, \Rv\Data\API_v1_Timer\API_v1_Timer_Elapsed::class); $this->elapsed = $var; return $this; } }