rv.data.Clock.Format */ class Format extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field .rv.data.Clock.Format.DateFormatterStyle date_type = 2; */ protected $date_type = 0; /** * Generated from protobuf field .rv.data.Clock.Format.DateFormatterStyle time_format = 3; */ protected $time_format = 0; /** * Generated from protobuf field bool military_time_enabled = 4; */ protected $military_time_enabled = false; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $date_type * @type int $time_format * @type bool $military_time_enabled * } */ public function __construct($data = NULL) { \GPBMetadata\Timers::initOnce(); parent::__construct($data); } /** * Generated from protobuf field .rv.data.Clock.Format.DateFormatterStyle date_type = 2; * @return int */ public function getDateType() { return $this->date_type; } /** * Generated from protobuf field .rv.data.Clock.Format.DateFormatterStyle date_type = 2; * @param int $var * @return $this */ public function setDateType($var) { GPBUtil::checkEnum($var, \Rv\Data\Clock\Format\DateFormatterStyle::class); $this->date_type = $var; return $this; } /** * Generated from protobuf field .rv.data.Clock.Format.DateFormatterStyle time_format = 3; * @return int */ public function getTimeFormat() { return $this->time_format; } /** * Generated from protobuf field .rv.data.Clock.Format.DateFormatterStyle time_format = 3; * @param int $var * @return $this */ public function setTimeFormat($var) { GPBUtil::checkEnum($var, \Rv\Data\Clock\Format\DateFormatterStyle::class); $this->time_format = $var; return $this; } /** * Generated from protobuf field bool military_time_enabled = 4; * @return bool */ public function getMilitaryTimeEnabled() { return $this->military_time_enabled; } /** * Generated from protobuf field bool military_time_enabled = 4; * @param bool $var * @return $this */ public function setMilitaryTimeEnabled($var) { GPBUtil::checkBool($var); $this->military_time_enabled = $var; return $this; } }