<?php
 
 
 

namespace PhpWA\Protocol\Proto;

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




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


    protected $requestMessageKey = null;
    


    protected $action = null;
    


    protected $name = null;
    


    protected $nextTriggerTimestamp = null;
    


    protected $frequency = null;

    












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

    



    public function getRequestMessageKey()
    {
        return $this->requestMessageKey;
    }

    public function hasRequestMessageKey()
    {
        return isset($this->requestMessageKey);
    }

    public function clearRequestMessageKey()
    {
        unset($this->requestMessageKey);
    }

    




    public function setRequestMessageKey($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\MessageKey::class);
        $this->requestMessageKey = $var;

        return $this;
    }

    



    public function getAction()
    {
        return isset($this->action) ? $this->action : 0;
    }

    public function hasAction()
    {
        return isset($this->action);
    }

    public function clearAction()
    {
        unset($this->action);
    }

    




    public function setAction($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\BotReminderMetadata\ReminderAction::class);
        $this->action = $var;

        return $this;
    }

    



    public function getName()
    {
        return isset($this->name) ? $this->name : '';
    }

    public function hasName()
    {
        return isset($this->name);
    }

    public function clearName()
    {
        unset($this->name);
    }

    




    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    



    public function getNextTriggerTimestamp()
    {
        return isset($this->nextTriggerTimestamp) ? $this->nextTriggerTimestamp : 0;
    }

    public function hasNextTriggerTimestamp()
    {
        return isset($this->nextTriggerTimestamp);
    }

    public function clearNextTriggerTimestamp()
    {
        unset($this->nextTriggerTimestamp);
    }

    




    public function setNextTriggerTimestamp($var)
    {
        GPBUtil::checkUint64($var);
        $this->nextTriggerTimestamp = $var;

        return $this;
    }

    



    public function getFrequency()
    {
        return isset($this->frequency) ? $this->frequency : 0;
    }

    public function hasFrequency()
    {
        return isset($this->frequency);
    }

    public function clearFrequency()
    {
        unset($this->frequency);
    }

    




    public function setFrequency($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\BotReminderMetadata\ReminderFrequency::class);
        $this->frequency = $var;

        return $this;
    }

}

