<?php
 
 
 

namespace Google\Protobuf;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\RepeatedField;


















































class Duration extends \Google\Protobuf\Internal\Message
{
    






    protected $seconds = 0;
    









    protected $nanos = 0;

    


















    public function __construct($data = NULL) {
        \GPBMetadata\Google\Protobuf\Duration::initOnce();
        parent::__construct($data);
    }

    







    public function getSeconds()
    {
        return $this->seconds;
    }

    








    public function setSeconds($var)
    {
        GPBUtil::checkInt64($var);
        $this->seconds = $var;

        return $this;
    }

    










    public function getNanos()
    {
        return $this->nanos;
    }

    











    public function setNanos($var)
    {
        GPBUtil::checkInt32($var);
        $this->nanos = $var;

        return $this;
    }

}

