<?php
 
 
 

namespace PhpWA\Protocol\Proto;

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




class AIRichResponseMessage extends \Google\Protobuf\Internal\Message
{
    


    protected $messageType = null;
    


    private $submessages;
    


    protected $unifiedResponse = null;
    


    protected $contextInfo = null;

    











    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    



    public function getMessageType()
    {
        return isset($this->messageType) ? $this->messageType : 0;
    }

    public function hasMessageType()
    {
        return isset($this->messageType);
    }

    public function clearMessageType()
    {
        unset($this->messageType);
    }

    




    public function setMessageType($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\AIRichResponseMessageType::class);
        $this->messageType = $var;

        return $this;
    }

    



    public function getSubmessages()
    {
        return $this->submessages;
    }

    




    public function setSubmessages($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \PhpWA\Protocol\Proto\AIRichResponseSubMessage::class);
        $this->submessages = $arr;

        return $this;
    }

    



    public function getUnifiedResponse()
    {
        return $this->unifiedResponse;
    }

    public function hasUnifiedResponse()
    {
        return isset($this->unifiedResponse);
    }

    public function clearUnifiedResponse()
    {
        unset($this->unifiedResponse);
    }

    




    public function setUnifiedResponse($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\AIRichResponseUnifiedResponse::class);
        $this->unifiedResponse = $var;

        return $this;
    }

    



    public function getContextInfo()
    {
        return $this->contextInfo;
    }

    public function hasContextInfo()
    {
        return isset($this->contextInfo);
    }

    public function clearContextInfo()
    {
        unset($this->contextInfo);
    }

    




    public function setContextInfo($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\ContextInfo::class);
        $this->contextInfo = $var;

        return $this;
    }

}

