<?php
 
 
 

namespace PhpWA\Protocol\Proto\Message;

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




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


    protected $header = null;
    


    protected $body = null;
    


    protected $footer = null;
    


    protected $contextInfo = null;
    


    protected $urlTrackingMap = null;
    protected $interactiveMessage;

    
















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

    



    public function getHeader()
    {
        return $this->header;
    }

    public function hasHeader()
    {
        return isset($this->header);
    }

    public function clearHeader()
    {
        unset($this->header);
    }

    




    public function setHeader($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\InteractiveMessage\Header::class);
        $this->header = $var;

        return $this;
    }

    



    public function getBody()
    {
        return $this->body;
    }

    public function hasBody()
    {
        return isset($this->body);
    }

    public function clearBody()
    {
        unset($this->body);
    }

    




    public function setBody($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\InteractiveMessage\Body::class);
        $this->body = $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\InteractiveMessage\Footer::class);
        $this->footer = $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;
    }

    



    public function getUrlTrackingMap()
    {
        return $this->urlTrackingMap;
    }

    public function hasUrlTrackingMap()
    {
        return isset($this->urlTrackingMap);
    }

    public function clearUrlTrackingMap()
    {
        unset($this->urlTrackingMap);
    }

    




    public function setUrlTrackingMap($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\UrlTrackingMap::class);
        $this->urlTrackingMap = $var;

        return $this;
    }

    



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

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

    




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

        return $this;
    }

    



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

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

    




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

        return $this;
    }

    



    public function getNativeFlowMessage()
    {
        return $this->readOneof(6);
    }

    public function hasNativeFlowMessage()
    {
        return $this->hasOneof(6);
    }

    




    public function setNativeFlowMessage($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\InteractiveMessage\NativeFlowMessage::class);
        $this->writeOneof(6, $var);

        return $this;
    }

    



    public function getCarouselMessage()
    {
        return $this->readOneof(7);
    }

    public function hasCarouselMessage()
    {
        return $this->hasOneof(7);
    }

    




    public function setCarouselMessage($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\InteractiveMessage\CarouselMessage::class);
        $this->writeOneof(7, $var);

        return $this;
    }

    


    public function getInteractiveMessage()
    {
        return $this->whichOneof("interactiveMessage");
    }

}

