<?php
 
 
 

namespace PhpWA\Protocol\Proto\Message;

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




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


    protected $sessionId = null;
    


    protected $mediaType = null;
    


    protected $masterKey = null;
    


    protected $caption = null;

    











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

    



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

    public function hasSessionId()
    {
        return isset($this->sessionId);
    }

    public function clearSessionId()
    {
        unset($this->sessionId);
    }

    




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

        return $this;
    }

    



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

    public function hasMediaType()
    {
        return isset($this->mediaType);
    }

    public function clearMediaType()
    {
        unset($this->mediaType);
    }

    




    public function setMediaType($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\Message\BCallMessage\MediaType::class);
        $this->mediaType = $var;

        return $this;
    }

    



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

    public function hasMasterKey()
    {
        return isset($this->masterKey);
    }

    public function clearMasterKey()
    {
        unset($this->masterKey);
    }

    




    public function setMasterKey($var)
    {
        GPBUtil::checkString($var, False);
        $this->masterKey = $var;

        return $this;
    }

    



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

    public function hasCaption()
    {
        return isset($this->caption);
    }

    public function clearCaption()
    {
        unset($this->caption);
    }

    




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

        return $this;
    }

}

