- Move src/, tests/, bin/, generated/, proto/, composer.json, composer.lock, phpunit.xml from php/ to repo root - Move ref/ to doc/reference_samples/ for better organization - Remove vendor/ from git tracking (now properly gitignored) - Update all test file paths (dirname adjustments and ref/ -> doc/reference_samples/) - Update all documentation paths (AGENTS.md, doc/*.md) - Remove php.bak/ directory - All 252 tests pass
222 lines
5.5 KiB
PHP
222 lines
5.5 KiB
PHP
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
# source: timers.proto
|
|
|
|
namespace Rv\Data\Timer;
|
|
|
|
use Google\Protobuf\Internal\GPBType;
|
|
use Google\Protobuf\Internal\RepeatedField;
|
|
use Google\Protobuf\Internal\GPBUtil;
|
|
|
|
/**
|
|
* Generated from protobuf message <code>rv.data.Timer.Format</code>
|
|
*/
|
|
class Format extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Timer.Format.Style hour = 1;</code>
|
|
*/
|
|
protected $hour = 0;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Timer.Format.Style minute = 2;</code>
|
|
*/
|
|
protected $minute = 0;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Timer.Format.Style second = 3;</code>
|
|
*/
|
|
protected $second = 0;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Timer.Format.Style millisecond = 4;</code>
|
|
*/
|
|
protected $millisecond = 0;
|
|
/**
|
|
* Generated from protobuf field <code>bool is_wall_clock_time = 5;</code>
|
|
*/
|
|
protected $is_wall_clock_time = false;
|
|
/**
|
|
* Generated from protobuf field <code>bool is_24_hour_time = 6;</code>
|
|
*/
|
|
protected $is_24_hour_time = false;
|
|
/**
|
|
* Generated from protobuf field <code>bool show_milliseconds_under_minute_only = 7;</code>
|
|
*/
|
|
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 <code>.rv.data.Timer.Format.Style hour = 1;</code>
|
|
* @return int
|
|
*/
|
|
public function getHour()
|
|
{
|
|
return $this->hour;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Timer.Format.Style hour = 1;</code>
|
|
* @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 <code>.rv.data.Timer.Format.Style minute = 2;</code>
|
|
* @return int
|
|
*/
|
|
public function getMinute()
|
|
{
|
|
return $this->minute;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Timer.Format.Style minute = 2;</code>
|
|
* @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 <code>.rv.data.Timer.Format.Style second = 3;</code>
|
|
* @return int
|
|
*/
|
|
public function getSecond()
|
|
{
|
|
return $this->second;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Timer.Format.Style second = 3;</code>
|
|
* @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 <code>.rv.data.Timer.Format.Style millisecond = 4;</code>
|
|
* @return int
|
|
*/
|
|
public function getMillisecond()
|
|
{
|
|
return $this->millisecond;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Timer.Format.Style millisecond = 4;</code>
|
|
* @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 <code>bool is_wall_clock_time = 5;</code>
|
|
* @return bool
|
|
*/
|
|
public function getIsWallClockTime()
|
|
{
|
|
return $this->is_wall_clock_time;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool is_wall_clock_time = 5;</code>
|
|
* @param bool $var
|
|
* @return $this
|
|
*/
|
|
public function setIsWallClockTime($var)
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
$this->is_wall_clock_time = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool is_24_hour_time = 6;</code>
|
|
* @return bool
|
|
*/
|
|
public function getIs24HourTime()
|
|
{
|
|
return $this->is_24_hour_time;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool is_24_hour_time = 6;</code>
|
|
* @param bool $var
|
|
* @return $this
|
|
*/
|
|
public function setIs24HourTime($var)
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
$this->is_24_hour_time = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool show_milliseconds_under_minute_only = 7;</code>
|
|
* @return bool
|
|
*/
|
|
public function getShowMillisecondsUnderMinuteOnly()
|
|
{
|
|
return $this->show_milliseconds_under_minute_only;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool show_milliseconds_under_minute_only = 7;</code>
|
|
* @param bool $var
|
|
* @return $this
|
|
*/
|
|
public function setShowMillisecondsUnderMinuteOnly($var)
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
$this->show_milliseconds_under_minute_only = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|