<?php
 
 
 

namespace PhpWA\Protocol\Proto\ClientPayload;

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




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


    protected $refToken = null;
    


    protected $version = null;
    


    protected $webdPayload = null;
    


    protected $webSubPlatform = null;

    











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

    



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

    public function hasRefToken()
    {
        return isset($this->refToken);
    }

    public function clearRefToken()
    {
        unset($this->refToken);
    }

    




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

        return $this;
    }

    



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

    public function hasVersion()
    {
        return isset($this->version);
    }

    public function clearVersion()
    {
        unset($this->version);
    }

    




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

        return $this;
    }

    



    public function getWebdPayload()
    {
        return $this->webdPayload;
    }

    public function hasWebdPayload()
    {
        return isset($this->webdPayload);
    }

    public function clearWebdPayload()
    {
        unset($this->webdPayload);
    }

    




    public function setWebdPayload($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\ClientPayload\WebInfo\WebdPayload::class);
        $this->webdPayload = $var;

        return $this;
    }

    



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

    public function hasWebSubPlatform()
    {
        return isset($this->webSubPlatform);
    }

    public function clearWebSubPlatform()
    {
        unset($this->webSubPlatform);
    }

    




    public function setWebSubPlatform($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\ClientPayload\WebInfo\WebSubPlatform::class);
        $this->webSubPlatform = $var;

        return $this;
    }

}

