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

namespace PhpWA\Protocol\Proto\ContextInfo;

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

/**
 * Generated from protobuf message <code>proto.ContextInfo.QuestionReplyQuotedMessage</code>
 */
class QuestionReplyQuotedMessage extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional int32 serverQuestionId = 1;</code>
     */
    protected $serverQuestionId = null;
    /**
     * Generated from protobuf field <code>optional .proto.Message quotedQuestion = 2;</code>
     */
    protected $quotedQuestion = null;
    /**
     * Generated from protobuf field <code>optional .proto.Message quotedResponse = 3;</code>
     */
    protected $quotedResponse = null;

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

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

    public function hasServerQuestionId()
    {
        return isset($this->serverQuestionId);
    }

    public function clearServerQuestionId()
    {
        unset($this->serverQuestionId);
    }

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

        return $this;
    }

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

    public function hasQuotedQuestion()
    {
        return isset($this->quotedQuestion);
    }

    public function clearQuotedQuestion()
    {
        unset($this->quotedQuestion);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message quotedResponse = 3;</code>
     * @return \PhpWA\Protocol\Proto\Message|null
     */
    public function getQuotedResponse()
    {
        return $this->quotedResponse;
    }

    public function hasQuotedResponse()
    {
        return isset($this->quotedResponse);
    }

    public function clearQuotedResponse()
    {
        unset($this->quotedResponse);
    }

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

        return $this;
    }

}

