<?php
 
 
 

namespace PhpWA\Protocol\Proto;

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




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


    protected $commentParentKey = null;
    


    protected $replyCount = null;

    









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

    



    public function getCommentParentKey()
    {
        return $this->commentParentKey;
    }

    public function hasCommentParentKey()
    {
        return isset($this->commentParentKey);
    }

    public function clearCommentParentKey()
    {
        unset($this->commentParentKey);
    }

    




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

        return $this;
    }

    



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

    public function hasReplyCount()
    {
        return isset($this->replyCount);
    }

    public function clearReplyCount()
    {
        unset($this->replyCount);
    }

    




    public function setReplyCount($var)
    {
        GPBUtil::checkUint32($var);
        $this->replyCount = $var;

        return $this;
    }

}

