<?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.StatusNotificationMessage</code>
 */
class StatusNotificationMessage extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.MessageKey responseMessageKey = 1;</code>
     */
    protected $responseMessageKey = null;
    /**
     * Generated from protobuf field <code>optional .proto.MessageKey originalMessageKey = 2;</code>
     */
    protected $originalMessageKey = null;
    /**
     * Generated from protobuf field <code>optional .proto.Message.StatusNotificationMessage.StatusNotificationType type = 3;</code>
     */
    protected $type = null;

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

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

    public function hasResponseMessageKey()
    {
        return isset($this->responseMessageKey);
    }

    public function clearResponseMessageKey()
    {
        unset($this->responseMessageKey);
    }

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

        return $this;
    }

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

    public function hasOriginalMessageKey()
    {
        return isset($this->originalMessageKey);
    }

    public function clearOriginalMessageKey()
    {
        unset($this->originalMessageKey);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.StatusNotificationMessage.StatusNotificationType type = 3;</code>
     * @return int
     */
    public function getType()
    {
        return isset($this->type) ? $this->type : 0;
    }

    public function hasType()
    {
        return isset($this->type);
    }

    public function clearType()
    {
        unset($this->type);
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.StatusNotificationMessage.StatusNotificationType type = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setType($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\Message\StatusNotificationMessage\StatusNotificationType::class);
        $this->type = $var;

        return $this;
    }

}

