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

namespace PhpWA\Protocol\Proto\Message;

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

/**
 * Generated from protobuf message <code>proto.Message.EncEventResponseMessage</code>
 */
class EncEventResponseMessage extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.MessageKey eventCreationMessageKey = 1;</code>
     */
    protected $eventCreationMessageKey = null;
    /**
     * Generated from protobuf field <code>optional bytes encPayload = 2;</code>
     */
    protected $encPayload = null;
    /**
     * Generated from protobuf field <code>optional bytes encIv = 3;</code>
     */
    protected $encIv = null;

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

    /**
     * Generated from protobuf field <code>optional .proto.MessageKey eventCreationMessageKey = 1;</code>
     * @return \PhpWA\Protocol\Proto\MessageKey|null
     */
    public function getEventCreationMessageKey()
    {
        return $this->eventCreationMessageKey;
    }

    public function hasEventCreationMessageKey()
    {
        return isset($this->eventCreationMessageKey);
    }

    public function clearEventCreationMessageKey()
    {
        unset($this->eventCreationMessageKey);
    }

    /**
     * Generated from protobuf field <code>optional .proto.MessageKey eventCreationMessageKey = 1;</code>
     * @param \PhpWA\Protocol\Proto\MessageKey $var
     * @return $this
     */
    public function setEventCreationMessageKey($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\MessageKey::class);
        $this->eventCreationMessageKey = $var;

        return $this;
    }

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

        return $this;
    }

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

        return $this;
    }

}

