<?php
 
 
 

namespace PhpWA\Protocol\Proto\StatusAttribution\StatusReshare;

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




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


    protected $duration = null;
    


    protected $channelJid = null;
    


    protected $channelMessageId = null;
    


    protected $hasMultipleReshares = null;

    











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

    



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

    public function hasDuration()
    {
        return isset($this->duration);
    }

    public function clearDuration()
    {
        unset($this->duration);
    }

    




    public function setDuration($var)
    {
        GPBUtil::checkInt32($var);
        $this->duration = $var;

        return $this;
    }

    



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

    public function hasChannelJid()
    {
        return isset($this->channelJid);
    }

    public function clearChannelJid()
    {
        unset($this->channelJid);
    }

    




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

        return $this;
    }

    



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

    public function hasChannelMessageId()
    {
        return isset($this->channelMessageId);
    }

    public function clearChannelMessageId()
    {
        unset($this->channelMessageId);
    }

    




    public function setChannelMessageId($var)
    {
        GPBUtil::checkInt32($var);
        $this->channelMessageId = $var;

        return $this;
    }

    



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

    public function hasHasMultipleReshares()
    {
        return isset($this->hasMultipleReshares);
    }

    public function clearHasMultipleReshares()
    {
        unset($this->hasMultipleReshares);
    }

    




    public function setHasMultipleReshares($var)
    {
        GPBUtil::checkBool($var);
        $this->hasMultipleReshares = $var;

        return $this;
    }

}

