<?php
 
 
 

namespace PhpWA\Protocol\Proto;

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




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


    protected $messageType = null;
    


    protected $gridImageMetadata = null;
    


    protected $messageText = null;
    


    protected $imageMetadata = null;
    


    protected $codeMetadata = null;
    


    protected $tableMetadata = null;
    


    protected $dynamicMetadata = null;
    


    protected $latexMetadata = null;
    


    protected $mapMetadata = null;
    


    protected $contentItemsMetadata = 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\AIRichResponseSubMessageType::class);
        $this->messageType = $var;

        return $this;
    }

    



    public function getGridImageMetadata()
    {
        return $this->gridImageMetadata;
    }

    public function hasGridImageMetadata()
    {
        return isset($this->gridImageMetadata);
    }

    public function clearGridImageMetadata()
    {
        unset($this->gridImageMetadata);
    }

    




    public function setGridImageMetadata($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\AIRichResponseGridImageMetadata::class);
        $this->gridImageMetadata = $var;

        return $this;
    }

    



    public function getMessageText()
    {
        return isset($this->messageText) ? $this->messageText : '';
    }

    public function hasMessageText()
    {
        return isset($this->messageText);
    }

    public function clearMessageText()
    {
        unset($this->messageText);
    }

    




    public function setMessageText($var)
    {
        GPBUtil::checkString($var, True);
        $this->messageText = $var;

        return $this;
    }

    



    public function getImageMetadata()
    {
        return $this->imageMetadata;
    }

    public function hasImageMetadata()
    {
        return isset($this->imageMetadata);
    }

    public function clearImageMetadata()
    {
        unset($this->imageMetadata);
    }

    




    public function setImageMetadata($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\AIRichResponseInlineImageMetadata::class);
        $this->imageMetadata = $var;

        return $this;
    }

    



    public function getCodeMetadata()
    {
        return $this->codeMetadata;
    }

    public function hasCodeMetadata()
    {
        return isset($this->codeMetadata);
    }

    public function clearCodeMetadata()
    {
        unset($this->codeMetadata);
    }

    




    public function setCodeMetadata($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\AIRichResponseCodeMetadata::class);
        $this->codeMetadata = $var;

        return $this;
    }

    



    public function getTableMetadata()
    {
        return $this->tableMetadata;
    }

    public function hasTableMetadata()
    {
        return isset($this->tableMetadata);
    }

    public function clearTableMetadata()
    {
        unset($this->tableMetadata);
    }

    




    public function setTableMetadata($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\AIRichResponseTableMetadata::class);
        $this->tableMetadata = $var;

        return $this;
    }

    



    public function getDynamicMetadata()
    {
        return $this->dynamicMetadata;
    }

    public function hasDynamicMetadata()
    {
        return isset($this->dynamicMetadata);
    }

    public function clearDynamicMetadata()
    {
        unset($this->dynamicMetadata);
    }

    




    public function setDynamicMetadata($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\AIRichResponseDynamicMetadata::class);
        $this->dynamicMetadata = $var;

        return $this;
    }

    



    public function getLatexMetadata()
    {
        return $this->latexMetadata;
    }

    public function hasLatexMetadata()
    {
        return isset($this->latexMetadata);
    }

    public function clearLatexMetadata()
    {
        unset($this->latexMetadata);
    }

    




    public function setLatexMetadata($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\AIRichResponseLatexMetadata::class);
        $this->latexMetadata = $var;

        return $this;
    }

    



    public function getMapMetadata()
    {
        return $this->mapMetadata;
    }

    public function hasMapMetadata()
    {
        return isset($this->mapMetadata);
    }

    public function clearMapMetadata()
    {
        unset($this->mapMetadata);
    }

    




    public function setMapMetadata($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\AIRichResponseMapMetadata::class);
        $this->mapMetadata = $var;

        return $this;
    }

    



    public function getContentItemsMetadata()
    {
        return $this->contentItemsMetadata;
    }

    public function hasContentItemsMetadata()
    {
        return isset($this->contentItemsMetadata);
    }

    public function clearContentItemsMetadata()
    {
        unset($this->contentItemsMetadata);
    }

    




    public function setContentItemsMetadata($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\AIRichResponseContentItemsMetadata::class);
        $this->contentItemsMetadata = $var;

        return $this;
    }

}

