<?php
 
 
 

namespace PhpWA\Protocol\Proto\Message\HighlyStructuredMessage\HSMLocalizableParameter;

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




class HSMDateTime extends \Google\Protobuf\Internal\Message
{
    protected $datetimeOneof;

    









    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    



    public function getComponent()
    {
        return $this->readOneof(1);
    }

    public function hasComponent()
    {
        return $this->hasOneof(1);
    }

    




    public function setComponent($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\HighlyStructuredMessage\HSMLocalizableParameter\HSMDateTime\HSMDateTimeComponent::class);
        $this->writeOneof(1, $var);

        return $this;
    }

    



    public function getUnixEpoch()
    {
        return $this->readOneof(2);
    }

    public function hasUnixEpoch()
    {
        return $this->hasOneof(2);
    }

    




    public function setUnixEpoch($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\HighlyStructuredMessage\HSMLocalizableParameter\HSMDateTime\HSMDateTimeUnixEpoch::class);
        $this->writeOneof(2, $var);

        return $this;
    }

    


    public function getDatetimeOneof()
    {
        return $this->whichOneof("datetimeOneof");
    }

}

