<?php
 
 
 

namespace PhpWA\Protocol\Proto\SyncActionValue;

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




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


    protected $name = null;
    


    protected $message = null;
    


    protected $type = null;
    


    protected $createdAt = null;
    


    protected $lastSentAt = null;
    


    protected $isDeleted = null;
    


    protected $mediaId = null;

    














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

    



    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 getMessage()
    {
        return isset($this->message) ? $this->message : '';
    }

    public function hasMessage()
    {
        return isset($this->message);
    }

    public function clearMessage()
    {
        unset($this->message);
    }

    




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

        return $this;
    }

    



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

    public function hasType()
    {
        return isset($this->type);
    }

    public function clearType()
    {
        unset($this->type);
    }

    




    public function setType($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\SyncActionValue\MarketingMessageAction\MarketingMessagePrototypeType::class);
        $this->type = $var;

        return $this;
    }

    



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

    public function hasCreatedAt()
    {
        return isset($this->createdAt);
    }

    public function clearCreatedAt()
    {
        unset($this->createdAt);
    }

    




    public function setCreatedAt($var)
    {
        GPBUtil::checkInt64($var);
        $this->createdAt = $var;

        return $this;
    }

    



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

    public function hasLastSentAt()
    {
        return isset($this->lastSentAt);
    }

    public function clearLastSentAt()
    {
        unset($this->lastSentAt);
    }

    




    public function setLastSentAt($var)
    {
        GPBUtil::checkInt64($var);
        $this->lastSentAt = $var;

        return $this;
    }

    



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

    public function hasIsDeleted()
    {
        return isset($this->isDeleted);
    }

    public function clearIsDeleted()
    {
        unset($this->isDeleted);
    }

    




    public function setIsDeleted($var)
    {
        GPBUtil::checkBool($var);
        $this->isDeleted = $var;

        return $this;
    }

    



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

    public function hasMediaId()
    {
        return isset($this->mediaId);
    }

    public function clearMediaId()
    {
        unset($this->mediaId);
    }

    




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

        return $this;
    }

}

