<?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.MessageSecretMessage</code>
 */
class MessageSecretMessage extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional sfixed32 version = 1;</code>
     */
    protected $version = null;
    /**
     * Generated from protobuf field <code>optional bytes encIv = 2;</code>
     */
    protected $encIv = null;
    /**
     * Generated from protobuf field <code>optional bytes encPayload = 3;</code>
     */
    protected $encPayload = null;

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

    /**
     * Generated from protobuf field <code>optional sfixed32 version = 1;</code>
     * @return int
     */
    public function getVersion()
    {
        return isset($this->version) ? $this->version : 0;
    }

    public function hasVersion()
    {
        return isset($this->version);
    }

    public function clearVersion()
    {
        unset($this->version);
    }

    /**
     * Generated from protobuf field <code>optional sfixed32 version = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setVersion($var)
    {
        GPBUtil::checkInt32($var);
        $this->version = $var;

        return $this;
    }

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

    public function hasEncIv()
    {
        return isset($this->encIv);
    }

    public function clearEncIv()
    {
        unset($this->encIv);
    }

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

        return $this;
    }

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

    public function hasEncPayload()
    {
        return isset($this->encPayload);
    }

    public function clearEncPayload()
    {
        unset($this->encPayload);
    }

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

        return $this;
    }

}

