<?php
 
 
 

namespace PhpWA\Protocol\Proto\Message\TemplateMessage;

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




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


    protected $content = null;
    


    protected $footer = null;
    


    private $buttons;
    protected $title;

    















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

    



    public function getContent()
    {
        return $this->content;
    }

    public function hasContent()
    {
        return isset($this->content);
    }

    public function clearContent()
    {
        unset($this->content);
    }

    




    public function setContent($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\HighlyStructuredMessage::class);
        $this->content = $var;

        return $this;
    }

    



    public function getFooter()
    {
        return $this->footer;
    }

    public function hasFooter()
    {
        return isset($this->footer);
    }

    public function clearFooter()
    {
        unset($this->footer);
    }

    




    public function setFooter($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\HighlyStructuredMessage::class);
        $this->footer = $var;

        return $this;
    }

    



    public function getButtons()
    {
        return $this->buttons;
    }

    




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

        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 getHighlyStructuredMessage()
    {
        return $this->readOneof(2);
    }

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

    




    public function setHighlyStructuredMessage($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\HighlyStructuredMessage::class);
        $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");
    }

}

