<?php
 
 
 

namespace PhpWA\Protocol\Proto\Message;

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




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


    protected $contextInfo = null;
    


    protected $isCanceled = null;
    


    protected $name = null;
    


    protected $description = null;
    


    protected $location = null;
    


    protected $joinLink = null;
    


    protected $startTime = null;
    


    protected $endTime = null;
    


    protected $extraGuestsAllowed = null;
    


    protected $isScheduleCall = null;
    


    protected $hasReminder = null;
    


    protected $reminderOffsetSec = null;

    



















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

    



    public function getContextInfo()
    {
        return $this->contextInfo;
    }

    public function hasContextInfo()
    {
        return isset($this->contextInfo);
    }

    public function clearContextInfo()
    {
        unset($this->contextInfo);
    }

    




    public function setContextInfo($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\ContextInfo::class);
        $this->contextInfo = $var;

        return $this;
    }

    



    public function getIsCanceled()
    {
        return isset($this->isCanceled) ? $this->isCanceled : false;
    }

    public function hasIsCanceled()
    {
        return isset($this->isCanceled);
    }

    public function clearIsCanceled()
    {
        unset($this->isCanceled);
    }

    




    public function setIsCanceled($var)
    {
        GPBUtil::checkBool($var);
        $this->isCanceled = $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 getDescription()
    {
        return isset($this->description) ? $this->description : '';
    }

    public function hasDescription()
    {
        return isset($this->description);
    }

    public function clearDescription()
    {
        unset($this->description);
    }

    




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

        return $this;
    }

    



    public function getLocation()
    {
        return $this->location;
    }

    public function hasLocation()
    {
        return isset($this->location);
    }

    public function clearLocation()
    {
        unset($this->location);
    }

    




    public function setLocation($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\LocationMessage::class);
        $this->location = $var;

        return $this;
    }

    



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

    public function hasJoinLink()
    {
        return isset($this->joinLink);
    }

    public function clearJoinLink()
    {
        unset($this->joinLink);
    }

    




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

        return $this;
    }

    



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

    public function hasStartTime()
    {
        return isset($this->startTime);
    }

    public function clearStartTime()
    {
        unset($this->startTime);
    }

    




    public function setStartTime($var)
    {
        GPBUtil::checkInt64($var);
        $this->startTime = $var;

        return $this;
    }

    



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

    public function hasEndTime()
    {
        return isset($this->endTime);
    }

    public function clearEndTime()
    {
        unset($this->endTime);
    }

    




    public function setEndTime($var)
    {
        GPBUtil::checkInt64($var);
        $this->endTime = $var;

        return $this;
    }

    



    public function getExtraGuestsAllowed()
    {
        return isset($this->extraGuestsAllowed) ? $this->extraGuestsAllowed : false;
    }

    public function hasExtraGuestsAllowed()
    {
        return isset($this->extraGuestsAllowed);
    }

    public function clearExtraGuestsAllowed()
    {
        unset($this->extraGuestsAllowed);
    }

    




    public function setExtraGuestsAllowed($var)
    {
        GPBUtil::checkBool($var);
        $this->extraGuestsAllowed = $var;

        return $this;
    }

    



    public function getIsScheduleCall()
    {
        return isset($this->isScheduleCall) ? $this->isScheduleCall : false;
    }

    public function hasIsScheduleCall()
    {
        return isset($this->isScheduleCall);
    }

    public function clearIsScheduleCall()
    {
        unset($this->isScheduleCall);
    }

    




    public function setIsScheduleCall($var)
    {
        GPBUtil::checkBool($var);
        $this->isScheduleCall = $var;

        return $this;
    }

    



    public function getHasReminder()
    {
        return isset($this->hasReminder) ? $this->hasReminder : false;
    }

    public function hasHasReminder()
    {
        return isset($this->hasReminder);
    }

    public function clearHasReminder()
    {
        unset($this->hasReminder);
    }

    




    public function setHasReminder($var)
    {
        GPBUtil::checkBool($var);
        $this->hasReminder = $var;

        return $this;
    }

    



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

    public function hasReminderOffsetSec()
    {
        return isset($this->reminderOffsetSec);
    }

    public function clearReminderOffsetSec()
    {
        unset($this->reminderOffsetSec);
    }

    




    public function setReminderOffsetSec($var)
    {
        GPBUtil::checkInt64($var);
        $this->reminderOffsetSec = $var;

        return $this;
    }

}

