<?php
 
 
 

namespace PhpWA\Protocol\Proto\SyncActionValue;

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




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


    protected $archived = null;
    


    protected $messageRange = null;

    









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

    



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

    public function hasArchived()
    {
        return isset($this->archived);
    }

    public function clearArchived()
    {
        unset($this->archived);
    }

    




    public function setArchived($var)
    {
        GPBUtil::checkBool($var);
        $this->archived = $var;

        return $this;
    }

    



    public function getMessageRange()
    {
        return $this->messageRange;
    }

    public function hasMessageRange()
    {
        return isset($this->messageRange);
    }

    public function clearMessageRange()
    {
        unset($this->messageRange);
    }

    




    public function setMessageRange($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\SyncActionValue\SyncActionMessageRange::class);
        $this->messageRange = $var;

        return $this;
    }

}

