<?php
 
 
 

namespace PhpWA\Protocol\Proto;

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




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


    protected $details = null;
    


    protected $hmac = null;
    


    protected $accountType = null;

    










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

    



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

    public function hasDetails()
    {
        return isset($this->details);
    }

    public function clearDetails()
    {
        unset($this->details);
    }

    




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

        return $this;
    }

    



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

    public function hasHmac()
    {
        return isset($this->hmac);
    }

    public function clearHmac()
    {
        unset($this->hmac);
    }

    




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

        return $this;
    }

    



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

    public function hasAccountType()
    {
        return isset($this->accountType);
    }

    public function clearAccountType()
    {
        unset($this->accountType);
    }

    




    public function setAccountType($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\ADVEncryptionType::class);
        $this->accountType = $var;

        return $this;
    }

}

