<?php
 
 
 

namespace PhpWA\Protocol\Proto\Message;

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




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


    protected $message = null;
    


    protected $targetMessageKey = null;

    









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

    



    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 getTargetMessageKey()
    {
        return $this->targetMessageKey;
    }

    public function hasTargetMessageKey()
    {
        return isset($this->targetMessageKey);
    }

    public function clearTargetMessageKey()
    {
        unset($this->targetMessageKey);
    }

    




    public function setTargetMessageKey($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\MessageKey::class);
        $this->targetMessageKey = $var;

        return $this;
    }

}

