rv.data.Timer.Format */ class Format extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field .rv.data.Timer.Format.Style hour = 1; */ protected $hour = 0; /** * Generated from protobuf field .rv.data.Timer.Format.Style minute = 2; */ protected $minute = 0; /** * Generated from protobuf field .rv.data.Timer.Format.Style second = 3; */ protected $second = 0; /** * Generated from protobuf field .rv.data.Timer.Format.Style millisecond = 4; */ protected $millisecond = 0; /** * Generated from protobuf field bool is_wall_clock_time = 5; */ protected $is_wall_clock_time = false; /** * Generated from protobuf field bool is_24_hour_time = 6; */ protected $is_24_hour_time = false; /** * Generated from protobuf field bool show_milliseconds_under_minute_only = 7; */ protected $show_milliseconds_under_minute_only = false; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $hour * @type int $minute * @type int $second * @type int $millisecond * @type bool $is_wall_clock_time * @type bool $is_24_hour_time * @type bool $show_milliseconds_under_minute_only * } */ public function __construct($data = NULL) { \GPBMetadata\Timers::initOnce(); parent::__construct($data); } /** * Generated from protobuf field .rv.data.Timer.Format.Style hour = 1; * @return int */ public function getHour() { return $this->hour; } /** * Generated from protobuf field .rv.data.Timer.Format.Style hour = 1; * @param int $var * @return $this */ public function setHour($var) { GPBUtil::checkEnum($var, \Rv\Data\Timer\Format\Style::class); $this->hour = $var; return $this; } /** * Generated from protobuf field .rv.data.Timer.Format.Style minute = 2; * @return int */ public function getMinute() { return $this->minute; } /** * Generated from protobuf field .rv.data.Timer.Format.Style minute = 2; * @param int $var * @return $this */ public function setMinute($var) { GPBUtil::checkEnum($var, \Rv\Data\Timer\Format\Style::class); $this->minute = $var; return $this; } /** * Generated from protobuf field .rv.data.Timer.Format.Style second = 3; * @return int */ public function getSecond() { return $this->second; } /** * Generated from protobuf field .rv.data.Timer.Format.Style second = 3; * @param int $var * @return $this */ public function setSecond($var) { GPBUtil::checkEnum($var, \Rv\Data\Timer\Format\Style::class); $this->second = $var; return $this; } /** * Generated from protobuf field .rv.data.Timer.Format.Style millisecond = 4; * @return int */ public function getMillisecond() { return $this->millisecond; } /** * Generated from protobuf field .rv.data.Timer.Format.Style millisecond = 4; * @param int $var * @return $this */ public function setMillisecond($var) { GPBUtil::checkEnum($var, \Rv\Data\Timer\Format\Style::class); $this->millisecond = $var; return $this; } /** * Generated from protobuf field bool is_wall_clock_time = 5; * @return bool */ public function getIsWallClockTime() { return $this->is_wall_clock_time; } /** * Generated from protobuf field bool is_wall_clock_time = 5; * @param bool $var * @return $this */ public function setIsWallClockTime($var) { GPBUtil::checkBool($var); $this->is_wall_clock_time = $var; return $this; } /** * Generated from protobuf field bool is_24_hour_time = 6; * @return bool */ public function getIs24HourTime() { return $this->is_24_hour_time; } /** * Generated from protobuf field bool is_24_hour_time = 6; * @param bool $var * @return $this */ public function setIs24HourTime($var) { GPBUtil::checkBool($var); $this->is_24_hour_time = $var; return $this; } /** * Generated from protobuf field bool show_milliseconds_under_minute_only = 7; * @return bool */ public function getShowMillisecondsUnderMinuteOnly() { return $this->show_milliseconds_under_minute_only; } /** * Generated from protobuf field bool show_milliseconds_under_minute_only = 7; * @param bool $var * @return $this */ public function setShowMillisecondsUnderMinuteOnly($var) { GPBUtil::checkBool($var); $this->show_milliseconds_under_minute_only = $var; return $this; } }