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

namespace App\Grpc\Qa;

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

/**
 * 回答详情结果
 *
 * Generated from protobuf message <code>qa.AnswerDetailReply</code>
 */
class AnswerDetailReply extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.qa.AnswerEntity answer = 1;</code>
     */
    protected $answer = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \App\Grpc\Qa\AnswerEntity $answer
     * }
     */
    public function __construct($data = NULL) {
        \App\Grpc\GPBMetadata\Qa::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.qa.AnswerEntity answer = 1;</code>
     * @return \App\Grpc\Qa\AnswerEntity|null
     */
    public function getAnswer()
    {
        return $this->answer;
    }

    public function hasAnswer()
    {
        return isset($this->answer);
    }

    public function clearAnswer()
    {
        unset($this->answer);
    }

    /**
     * Generated from protobuf field <code>.qa.AnswerEntity answer = 1;</code>
     * @param \App\Grpc\Qa\AnswerEntity $var
     * @return $this
     */
    public function setAnswer($var)
    {
        GPBUtil::checkMessage($var, \App\Grpc\Qa\AnswerEntity::class);
        $this->answer = $var;

        return $this;
    }

}

