<?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.PairingRequest</code>
 */
class PairingRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional bytes companionPublicKey = 1;</code>
     */
    protected $companionPublicKey = null;
    /**
     * Generated from protobuf field <code>optional bytes companionIdentityKey = 2;</code>
     */
    protected $companionIdentityKey = null;
    /**
     * Generated from protobuf field <code>optional bytes advSecret = 3;</code>
     */
    protected $advSecret = null;

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

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

    public function hasCompanionPublicKey()
    {
        return isset($this->companionPublicKey);
    }

    public function clearCompanionPublicKey()
    {
        unset($this->companionPublicKey);
    }

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

        return $this;
    }

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

    public function hasCompanionIdentityKey()
    {
        return isset($this->companionIdentityKey);
    }

    public function clearCompanionIdentityKey()
    {
        unset($this->companionIdentityKey);
    }

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

        return $this;
    }

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

    public function hasAdvSecret()
    {
        return isset($this->advSecret);
    }

    public function clearAdvSecret()
    {
        unset($this->advSecret);
    }

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

        return $this;
    }

}

