<?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.MsgRowOpaqueData</code>
 */
class MsgRowOpaqueData extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.MsgOpaqueData currentMsg = 1;</code>
     */
    protected $currentMsg = null;
    /**
     * Generated from protobuf field <code>optional .proto.MsgOpaqueData quotedMsg = 2;</code>
     */
    protected $quotedMsg = null;

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

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

    public function hasCurrentMsg()
    {
        return isset($this->currentMsg);
    }

    public function clearCurrentMsg()
    {
        unset($this->currentMsg);
    }

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

        return $this;
    }

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

    public function hasQuotedMsg()
    {
        return isset($this->quotedMsg);
    }

    public function clearQuotedMsg()
    {
        unset($this->quotedMsg);
    }

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

        return $this;
    }

}

