<?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.AIRichResponseSubMessage</code>
 */
class AIRichResponseSubMessage extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.AIRichResponseSubMessageType messageType = 1;</code>
     */
    protected $messageType = null;
    /**
     * Generated from protobuf field <code>optional .proto.AIRichResponseGridImageMetadata gridImageMetadata = 2;</code>
     */
    protected $gridImageMetadata = null;
    /**
     * Generated from protobuf field <code>optional string messageText = 3;</code>
     */
    protected $messageText = null;
    /**
     * Generated from protobuf field <code>optional .proto.AIRichResponseInlineImageMetadata imageMetadata = 4;</code>
     */
    protected $imageMetadata = null;
    /**
     * Generated from protobuf field <code>optional .proto.AIRichResponseCodeMetadata codeMetadata = 5;</code>
     */
    protected $codeMetadata = null;
    /**
     * Generated from protobuf field <code>optional .proto.AIRichResponseTableMetadata tableMetadata = 6;</code>
     */
    protected $tableMetadata = null;
    /**
     * Generated from protobuf field <code>optional .proto.AIRichResponseDynamicMetadata dynamicMetadata = 7;</code>
     */
    protected $dynamicMetadata = null;
    /**
     * Generated from protobuf field <code>optional .proto.AIRichResponseLatexMetadata latexMetadata = 8;</code>
     */
    protected $latexMetadata = null;
    /**
     * Generated from protobuf field <code>optional .proto.AIRichResponseMapMetadata mapMetadata = 9;</code>
     */
    protected $mapMetadata = null;
    /**
     * Generated from protobuf field <code>optional .proto.AIRichResponseContentItemsMetadata contentItemsMetadata = 10;</code>
     */
    protected $contentItemsMetadata = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $messageType
     *     @type \PhpWA\Protocol\Proto\AIRichResponseGridImageMetadata $gridImageMetadata
     *     @type string $messageText
     *     @type \PhpWA\Protocol\Proto\AIRichResponseInlineImageMetadata $imageMetadata
     *     @type \PhpWA\Protocol\Proto\AIRichResponseCodeMetadata $codeMetadata
     *     @type \PhpWA\Protocol\Proto\AIRichResponseTableMetadata $tableMetadata
     *     @type \PhpWA\Protocol\Proto\AIRichResponseDynamicMetadata $dynamicMetadata
     *     @type \PhpWA\Protocol\Proto\AIRichResponseLatexMetadata $latexMetadata
     *     @type \PhpWA\Protocol\Proto\AIRichResponseMapMetadata $mapMetadata
     *     @type \PhpWA\Protocol\Proto\AIRichResponseContentItemsMetadata $contentItemsMetadata
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional .proto.AIRichResponseSubMessageType messageType = 1;</code>
     * @return int
     */
    public function getMessageType()
    {
        return isset($this->messageType) ? $this->messageType : 0;
    }

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

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

    /**
     * Generated from protobuf field <code>optional .proto.AIRichResponseSubMessageType messageType = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setMessageType($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\AIRichResponseSubMessageType::class);
        $this->messageType = $var;

        return $this;
    }

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

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

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string messageText = 3;</code>
     * @return string
     */
    public function getMessageText()
    {
        return isset($this->messageText) ? $this->messageText : '';
    }

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

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

    /**
     * Generated from protobuf field <code>optional string messageText = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setMessageText($var)
    {
        GPBUtil::checkString($var, True);
        $this->messageText = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.AIRichResponseInlineImageMetadata imageMetadata = 4;</code>
     * @return \PhpWA\Protocol\Proto\AIRichResponseInlineImageMetadata|null
     */
    public function getImageMetadata()
    {
        return $this->imageMetadata;
    }

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

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.AIRichResponseCodeMetadata codeMetadata = 5;</code>
     * @return \PhpWA\Protocol\Proto\AIRichResponseCodeMetadata|null
     */
    public function getCodeMetadata()
    {
        return $this->codeMetadata;
    }

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

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.AIRichResponseTableMetadata tableMetadata = 6;</code>
     * @return \PhpWA\Protocol\Proto\AIRichResponseTableMetadata|null
     */
    public function getTableMetadata()
    {
        return $this->tableMetadata;
    }

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

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.AIRichResponseDynamicMetadata dynamicMetadata = 7;</code>
     * @return \PhpWA\Protocol\Proto\AIRichResponseDynamicMetadata|null
     */
    public function getDynamicMetadata()
    {
        return $this->dynamicMetadata;
    }

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

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.AIRichResponseLatexMetadata latexMetadata = 8;</code>
     * @return \PhpWA\Protocol\Proto\AIRichResponseLatexMetadata|null
     */
    public function getLatexMetadata()
    {
        return $this->latexMetadata;
    }

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

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.AIRichResponseMapMetadata mapMetadata = 9;</code>
     * @return \PhpWA\Protocol\Proto\AIRichResponseMapMetadata|null
     */
    public function getMapMetadata()
    {
        return $this->mapMetadata;
    }

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

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.AIRichResponseContentItemsMetadata contentItemsMetadata = 10;</code>
     * @return \PhpWA\Protocol\Proto\AIRichResponseContentItemsMetadata|null
     */
    public function getContentItemsMetadata()
    {
        return $this->contentItemsMetadata;
    }

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

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

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

        return $this;
    }

}

