<?php
 
 
 

namespace PhpWA\Protocol\Proto\Message;

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




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


    protected $destinationJid = null;
    


    protected $message = null;
    


    protected $phash = null;

    










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

    



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

    public function hasDestinationJid()
    {
        return isset($this->destinationJid);
    }

    public function clearDestinationJid()
    {
        unset($this->destinationJid);
    }

    




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

        return $this;
    }

    



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

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

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

    




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

        return $this;
    }

    



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

    public function hasPhash()
    {
        return isset($this->phash);
    }

    public function clearPhash()
    {
        unset($this->phash);
    }

    




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

        return $this;
    }

}

