<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: WAProto.proto

namespace PhpWA\Protocol\Proto;

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

/**
 * Generated from protobuf message <code>proto.ADVSignedDeviceIdentityHMAC</code>
 */
class ADVSignedDeviceIdentityHMAC extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional bytes details = 1;</code>
     */
    protected $details = null;
    /**
     * Generated from protobuf field <code>optional bytes hmac = 2;</code>
     */
    protected $hmac = null;
    /**
     * Generated from protobuf field <code>optional .proto.ADVEncryptionType accountType = 3;</code>
     */
    protected $accountType = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $details
     *     @type string $hmac
     *     @type int $accountType
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional bytes details = 1;</code>
     * @return string
     */
    public function getDetails()
    {
        return isset($this->details) ? $this->details : '';
    }

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

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

    /**
     * Generated from protobuf field <code>optional bytes details = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setDetails($var)
    {
        GPBUtil::checkString($var, False);
        $this->details = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bytes hmac = 2;</code>
     * @return string
     */
    public function getHmac()
    {
        return isset($this->hmac) ? $this->hmac : '';
    }

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

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

    /**
     * Generated from protobuf field <code>optional bytes hmac = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setHmac($var)
    {
        GPBUtil::checkString($var, False);
        $this->hmac = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.ADVEncryptionType accountType = 3;</code>
     * @return int
     */
    public function getAccountType()
    {
        return isset($this->accountType) ? $this->accountType : 0;
    }

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

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

    /**
     * Generated from protobuf field <code>optional .proto.ADVEncryptionType accountType = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setAccountType($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\ADVEncryptionType::class);
        $this->accountType = $var;

        return $this;
    }

}

