<?php
 
 
 

namespace PhpWA\Protocol\Proto\Message;

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




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


    protected $title = null;
    


    protected $description = null;
    


    protected $buttonText = null;
    


    protected $listType = null;
    


    private $sections;
    


    protected $productListInfo = null;
    


    protected $footerText = null;
    


    protected $contextInfo = null;

    















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

    



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

    public function hasTitle()
    {
        return isset($this->title);
    }

    public function clearTitle()
    {
        unset($this->title);
    }

    




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

        return $this;
    }

    



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

    public function hasDescription()
    {
        return isset($this->description);
    }

    public function clearDescription()
    {
        unset($this->description);
    }

    




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

        return $this;
    }

    



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

    public function hasButtonText()
    {
        return isset($this->buttonText);
    }

    public function clearButtonText()
    {
        unset($this->buttonText);
    }

    




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

        return $this;
    }

    



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

    public function hasListType()
    {
        return isset($this->listType);
    }

    public function clearListType()
    {
        unset($this->listType);
    }

    




    public function setListType($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\Message\ListMessage\ListType::class);
        $this->listType = $var;

        return $this;
    }

    



    public function getSections()
    {
        return $this->sections;
    }

    




    public function setSections($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \PhpWA\Protocol\Proto\Message\ListMessage\Section::class);
        $this->sections = $arr;

        return $this;
    }

    



    public function getProductListInfo()
    {
        return $this->productListInfo;
    }

    public function hasProductListInfo()
    {
        return isset($this->productListInfo);
    }

    public function clearProductListInfo()
    {
        unset($this->productListInfo);
    }

    




    public function setProductListInfo($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\ListMessage\ProductListInfo::class);
        $this->productListInfo = $var;

        return $this;
    }

    



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

    public function hasFooterText()
    {
        return isset($this->footerText);
    }

    public function clearFooterText()
    {
        unset($this->footerText);
    }

    




    public function setFooterText($var)
    {
        GPBUtil::checkString($var, True);
        $this->footerText = $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;
    }

}

