rv.data.Timestamp */ class Timestamp extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field int64 seconds = 1; */ protected $seconds = 0; /** * Generated from protobuf field int32 nanos = 2; */ protected $nanos = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int|string $seconds * @type int $nanos * } */ public function __construct($data = NULL) { \GPBMetadata\Rvtimestamp::initOnce(); parent::__construct($data); } /** * Generated from protobuf field int64 seconds = 1; * @return int|string */ public function getSeconds() { return $this->seconds; } /** * Generated from protobuf field int64 seconds = 1; * @param int|string $var * @return $this */ public function setSeconds($var) { GPBUtil::checkInt64($var); $this->seconds = $var; return $this; } /** * Generated from protobuf field int32 nanos = 2; * @return int */ public function getNanos() { return $this->nanos; } /** * Generated from protobuf field int32 nanos = 2; * @param int $var * @return $this */ public function setNanos($var) { GPBUtil::checkInt32($var); $this->nanos = $var; return $this; } }