<?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.ADVSignedDeviceIdentity</code>
 */
class ADVSignedDeviceIdentity 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 accountSignatureKey = 2;</code>
     */
    protected $accountSignatureKey = null;
    /**
     * Generated from protobuf field <code>optional bytes accountSignature = 3;</code>
     */
    protected $accountSignature = null;
    /**
     * Generated from protobuf field <code>optional bytes deviceSignature = 4;</code>
     */
    protected $deviceSignature = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $details
     *     @type string $accountSignatureKey
     *     @type string $accountSignature
     *     @type string $deviceSignature
     * }
     */
    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 accountSignatureKey = 2;</code>
     * @return string
     */
    public function getAccountSignatureKey()
    {
        return isset($this->accountSignatureKey) ? $this->accountSignatureKey : '';
    }

    public function hasAccountSignatureKey()
    {
        return isset($this->accountSignatureKey);
    }

    public function clearAccountSignatureKey()
    {
        unset($this->accountSignatureKey);
    }

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

        return $this;
    }

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

    public function hasAccountSignature()
    {
        return isset($this->accountSignature);
    }

    public function clearAccountSignature()
    {
        unset($this->accountSignature);
    }

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

        return $this;
    }

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

    public function hasDeviceSignature()
    {
        return isset($this->deviceSignature);
    }

    public function clearDeviceSignature()
    {
        unset($this->deviceSignature);
    }

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

        return $this;
    }

}

