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

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

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

    public function hasEncryptedPayload()
    {
        return isset($this->encryptedPayload);
    }

    public function clearEncryptedPayload()
    {
        unset($this->encryptedPayload);
    }

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

        return $this;
    }

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

    public function hasIv()
    {
        return isset($this->iv);
    }

    public function clearIv()
    {
        unset($this->iv);
    }

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

        return $this;
    }

}

