<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: WAProto.proto

namespace PhpWA\Protocol\Proto\Message;

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

/**
 * Generated from protobuf message <code>proto.Message.EventMessage</code>
 */
class EventMessage extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.ContextInfo contextInfo = 1;</code>
     */
    protected $contextInfo = null;
    /**
     * Generated from protobuf field <code>optional bool isCanceled = 2;</code>
     */
    protected $isCanceled = null;
    /**
     * Generated from protobuf field <code>optional string name = 3;</code>
     */
    protected $name = null;
    /**
     * Generated from protobuf field <code>optional string description = 4;</code>
     */
    protected $description = null;
    /**
     * Generated from protobuf field <code>optional .proto.Message.LocationMessage location = 5;</code>
     */
    protected $location = null;
    /**
     * Generated from protobuf field <code>optional string joinLink = 6;</code>
     */
    protected $joinLink = null;
    /**
     * Generated from protobuf field <code>optional int64 startTime = 7;</code>
     */
    protected $startTime = null;
    /**
     * Generated from protobuf field <code>optional int64 endTime = 8;</code>
     */
    protected $endTime = null;
    /**
     * Generated from protobuf field <code>optional bool extraGuestsAllowed = 9;</code>
     */
    protected $extraGuestsAllowed = null;
    /**
     * Generated from protobuf field <code>optional bool isScheduleCall = 10;</code>
     */
    protected $isScheduleCall = null;
    /**
     * Generated from protobuf field <code>optional bool hasReminder = 11;</code>
     */
    protected $hasReminder = null;
    /**
     * Generated from protobuf field <code>optional int64 reminderOffsetSec = 12;</code>
     */
    protected $reminderOffsetSec = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \PhpWA\Protocol\Proto\ContextInfo $contextInfo
     *     @type bool $isCanceled
     *     @type string $name
     *     @type string $description
     *     @type \PhpWA\Protocol\Proto\Message\LocationMessage $location
     *     @type string $joinLink
     *     @type int|string $startTime
     *     @type int|string $endTime
     *     @type bool $extraGuestsAllowed
     *     @type bool $isScheduleCall
     *     @type bool $hasReminder
     *     @type int|string $reminderOffsetSec
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional .proto.ContextInfo contextInfo = 1;</code>
     * @return \PhpWA\Protocol\Proto\ContextInfo|null
     */
    public function getContextInfo()
    {
        return $this->contextInfo;
    }

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

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

    /**
     * Generated from protobuf field <code>optional .proto.ContextInfo contextInfo = 1;</code>
     * @param \PhpWA\Protocol\Proto\ContextInfo $var
     * @return $this
     */
    public function setContextInfo($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\ContextInfo::class);
        $this->contextInfo = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bool isCanceled = 2;</code>
     * @return bool
     */
    public function getIsCanceled()
    {
        return isset($this->isCanceled) ? $this->isCanceled : false;
    }

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

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

    /**
     * Generated from protobuf field <code>optional bool isCanceled = 2;</code>
     * @param bool $var
     * @return $this
     */
    public function setIsCanceled($var)
    {
        GPBUtil::checkBool($var);
        $this->isCanceled = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string name = 3;</code>
     * @return string
     */
    public function getName()
    {
        return isset($this->name) ? $this->name : '';
    }

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

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

    /**
     * Generated from protobuf field <code>optional string name = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string description = 4;</code>
     * @return string
     */
    public function getDescription()
    {
        return isset($this->description) ? $this->description : '';
    }

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

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

    /**
     * Generated from protobuf field <code>optional string description = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setDescription($var)
    {
        GPBUtil::checkString($var, True);
        $this->description = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.LocationMessage location = 5;</code>
     * @return \PhpWA\Protocol\Proto\Message\LocationMessage|null
     */
    public function getLocation()
    {
        return $this->location;
    }

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

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

    /**
     * Generated from protobuf field <code>optional .proto.Message.LocationMessage location = 5;</code>
     * @param \PhpWA\Protocol\Proto\Message\LocationMessage $var
     * @return $this
     */
    public function setLocation($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\LocationMessage::class);
        $this->location = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string joinLink = 6;</code>
     * @return string
     */
    public function getJoinLink()
    {
        return isset($this->joinLink) ? $this->joinLink : '';
    }

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

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

    /**
     * Generated from protobuf field <code>optional string joinLink = 6;</code>
     * @param string $var
     * @return $this
     */
    public function setJoinLink($var)
    {
        GPBUtil::checkString($var, True);
        $this->joinLink = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional int64 startTime = 7;</code>
     * @return int|string
     */
    public function getStartTime()
    {
        return isset($this->startTime) ? $this->startTime : 0;
    }

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

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

    /**
     * Generated from protobuf field <code>optional int64 startTime = 7;</code>
     * @param int|string $var
     * @return $this
     */
    public function setStartTime($var)
    {
        GPBUtil::checkInt64($var);
        $this->startTime = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional int64 endTime = 8;</code>
     * @return int|string
     */
    public function getEndTime()
    {
        return isset($this->endTime) ? $this->endTime : 0;
    }

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

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

    /**
     * Generated from protobuf field <code>optional int64 endTime = 8;</code>
     * @param int|string $var
     * @return $this
     */
    public function setEndTime($var)
    {
        GPBUtil::checkInt64($var);
        $this->endTime = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bool extraGuestsAllowed = 9;</code>
     * @return bool
     */
    public function getExtraGuestsAllowed()
    {
        return isset($this->extraGuestsAllowed) ? $this->extraGuestsAllowed : false;
    }

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

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

    /**
     * Generated from protobuf field <code>optional bool extraGuestsAllowed = 9;</code>
     * @param bool $var
     * @return $this
     */
    public function setExtraGuestsAllowed($var)
    {
        GPBUtil::checkBool($var);
        $this->extraGuestsAllowed = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bool isScheduleCall = 10;</code>
     * @return bool
     */
    public function getIsScheduleCall()
    {
        return isset($this->isScheduleCall) ? $this->isScheduleCall : false;
    }

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

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

    /**
     * Generated from protobuf field <code>optional bool isScheduleCall = 10;</code>
     * @param bool $var
     * @return $this
     */
    public function setIsScheduleCall($var)
    {
        GPBUtil::checkBool($var);
        $this->isScheduleCall = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bool hasReminder = 11;</code>
     * @return bool
     */
    public function getHasReminder()
    {
        return isset($this->hasReminder) ? $this->hasReminder : false;
    }

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

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

    /**
     * Generated from protobuf field <code>optional bool hasReminder = 11;</code>
     * @param bool $var
     * @return $this
     */
    public function setHasReminder($var)
    {
        GPBUtil::checkBool($var);
        $this->hasReminder = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional int64 reminderOffsetSec = 12;</code>
     * @return int|string
     */
    public function getReminderOffsetSec()
    {
        return isset($this->reminderOffsetSec) ? $this->reminderOffsetSec : 0;
    }

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

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

    /**
     * Generated from protobuf field <code>optional int64 reminderOffsetSec = 12;</code>
     * @param int|string $var
     * @return $this
     */
    public function setReminderOffsetSec($var)
    {
        GPBUtil::checkInt64($var);
        $this->reminderOffsetSec = $var;

        return $this;
    }

}

