<?php
 
 
 

namespace PhpWA\Protocol\Proto\Message\TemplateMessage;

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




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


    protected $hydratedContentText = null;
    


    protected $hydratedFooterText = null;
    


    private $hydratedButtons;
    


    protected $templateId = null;
    


    protected $maskLinkedDevices = null;
    protected $title;

    

















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

    



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

    public function hasHydratedContentText()
    {
        return isset($this->hydratedContentText);
    }

    public function clearHydratedContentText()
    {
        unset($this->hydratedContentText);
    }

    




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

        return $this;
    }

    



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

    public function hasHydratedFooterText()
    {
        return isset($this->hydratedFooterText);
    }

    public function clearHydratedFooterText()
    {
        unset($this->hydratedFooterText);
    }

    




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

        return $this;
    }

    



    public function getHydratedButtons()
    {
        return $this->hydratedButtons;
    }

    




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

        return $this;
    }

    



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

    public function hasTemplateId()
    {
        return isset($this->templateId);
    }

    public function clearTemplateId()
    {
        unset($this->templateId);
    }

    




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

        return $this;
    }

    



    public function getMaskLinkedDevices()
    {
        return isset($this->maskLinkedDevices) ? $this->maskLinkedDevices : false;
    }

    public function hasMaskLinkedDevices()
    {
        return isset($this->maskLinkedDevices);
    }

    public function clearMaskLinkedDevices()
    {
        unset($this->maskLinkedDevices);
    }

    




    public function setMaskLinkedDevices($var)
    {
        GPBUtil::checkBool($var);
        $this->maskLinkedDevices = $var;

        return $this;
    }

    



    public function getDocumentMessage()
    {
        return $this->readOneof(1);
    }

    public function hasDocumentMessage()
    {
        return $this->hasOneof(1);
    }

    




    public function setDocumentMessage($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\DocumentMessage::class);
        $this->writeOneof(1, $var);

        return $this;
    }

    



    public function getHydratedTitleText()
    {
        return $this->readOneof(2);
    }

    public function hasHydratedTitleText()
    {
        return $this->hasOneof(2);
    }

    




    public function setHydratedTitleText($var)
    {
        GPBUtil::checkString($var, True);
        $this->writeOneof(2, $var);

        return $this;
    }

    



    public function getImageMessage()
    {
        return $this->readOneof(3);
    }

    public function hasImageMessage()
    {
        return $this->hasOneof(3);
    }

    




    public function setImageMessage($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\ImageMessage::class);
        $this->writeOneof(3, $var);

        return $this;
    }

    



    public function getVideoMessage()
    {
        return $this->readOneof(4);
    }

    public function hasVideoMessage()
    {
        return $this->hasOneof(4);
    }

    




    public function setVideoMessage($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\VideoMessage::class);
        $this->writeOneof(4, $var);

        return $this;
    }

    



    public function getLocationMessage()
    {
        return $this->readOneof(5);
    }

    public function hasLocationMessage()
    {
        return $this->hasOneof(5);
    }

    




    public function setLocationMessage($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\LocationMessage::class);
        $this->writeOneof(5, $var);

        return $this;
    }

    


    public function getTitle()
    {
        return $this->whichOneof("title");
    }

}

