<?php
 
 
 

namespace PhpWA\Protocol\Proto\SyncActionValue;

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




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


    protected $type = null;
    


    protected $chatJid = null;
    


    protected $createdAt = null;
    


    protected $deleted = null;
    


    protected $unstructuredContent = null;

    












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

    



    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\NoteEditAction\NoteType::class);
        $this->type = $var;

        return $this;
    }

    



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

    public function hasChatJid()
    {
        return isset($this->chatJid);
    }

    public function clearChatJid()
    {
        unset($this->chatJid);
    }

    




    public function setChatJid($var)
    {
        GPBUtil::checkString($var, True);
        $this->chatJid = $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 getDeleted()
    {
        return isset($this->deleted) ? $this->deleted : false;
    }

    public function hasDeleted()
    {
        return isset($this->deleted);
    }

    public function clearDeleted()
    {
        unset($this->deleted);
    }

    




    public function setDeleted($var)
    {
        GPBUtil::checkBool($var);
        $this->deleted = $var;

        return $this;
    }

    



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

    public function hasUnstructuredContent()
    {
        return isset($this->unstructuredContent);
    }

    public function clearUnstructuredContent()
    {
        unset($this->unstructuredContent);
    }

    




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

        return $this;
    }

}

