<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: WAProto.proto

namespace PhpWA\Protocol\Proto\Message;

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

/**
 * Generated from protobuf message <code>proto.Message.InteractiveMessage</code>
 */
class InteractiveMessage extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.Message.InteractiveMessage.Header header = 1;</code>
     */
    protected $header = null;
    /**
     * Generated from protobuf field <code>optional .proto.Message.InteractiveMessage.Body body = 2;</code>
     */
    protected $body = null;
    /**
     * Generated from protobuf field <code>optional .proto.Message.InteractiveMessage.Footer footer = 3;</code>
     */
    protected $footer = null;
    /**
     * Generated from protobuf field <code>optional .proto.ContextInfo contextInfo = 15;</code>
     */
    protected $contextInfo = null;
    /**
     * Generated from protobuf field <code>optional .proto.UrlTrackingMap urlTrackingMap = 16;</code>
     */
    protected $urlTrackingMap = null;
    protected $interactiveMessage;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \PhpWA\Protocol\Proto\Message\InteractiveMessage\Header $header
     *     @type \PhpWA\Protocol\Proto\Message\InteractiveMessage\Body $body
     *     @type \PhpWA\Protocol\Proto\Message\InteractiveMessage\Footer $footer
     *     @type \PhpWA\Protocol\Proto\ContextInfo $contextInfo
     *     @type \PhpWA\Protocol\Proto\UrlTrackingMap $urlTrackingMap
     *     @type \PhpWA\Protocol\Proto\Message\InteractiveMessage\ShopMessage $shopStorefrontMessage
     *     @type \PhpWA\Protocol\Proto\Message\InteractiveMessage\CollectionMessage $collectionMessage
     *     @type \PhpWA\Protocol\Proto\Message\InteractiveMessage\NativeFlowMessage $nativeFlowMessage
     *     @type \PhpWA\Protocol\Proto\Message\InteractiveMessage\CarouselMessage $carouselMessage
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.InteractiveMessage.Header header = 1;</code>
     * @return \PhpWA\Protocol\Proto\Message\InteractiveMessage\Header|null
     */
    public function getHeader()
    {
        return $this->header;
    }

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

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

    /**
     * Generated from protobuf field <code>optional .proto.Message.InteractiveMessage.Header header = 1;</code>
     * @param \PhpWA\Protocol\Proto\Message\InteractiveMessage\Header $var
     * @return $this
     */
    public function setHeader($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\InteractiveMessage\Header::class);
        $this->header = $var;

        return $this;
    }

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

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

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.InteractiveMessage.Footer footer = 3;</code>
     * @return \PhpWA\Protocol\Proto\Message\InteractiveMessage\Footer|null
     */
    public function getFooter()
    {
        return $this->footer;
    }

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

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

    /**
     * Generated from protobuf field <code>optional .proto.Message.InteractiveMessage.Footer footer = 3;</code>
     * @param \PhpWA\Protocol\Proto\Message\InteractiveMessage\Footer $var
     * @return $this
     */
    public function setFooter($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\InteractiveMessage\Footer::class);
        $this->footer = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.ContextInfo contextInfo = 15;</code>
     * @return \PhpWA\Protocol\Proto\ContextInfo|null
     */
    public function getContextInfo()
    {
        return $this->contextInfo;
    }

    public function hasContextInfo()
    {
        return isset($this->contextInfo);
    }

    public function clearContextInfo()
    {
        unset($this->contextInfo);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.UrlTrackingMap urlTrackingMap = 16;</code>
     * @return \PhpWA\Protocol\Proto\UrlTrackingMap|null
     */
    public function getUrlTrackingMap()
    {
        return $this->urlTrackingMap;
    }

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

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.proto.Message.InteractiveMessage.ShopMessage shopStorefrontMessage = 4;</code>
     * @return \PhpWA\Protocol\Proto\Message\InteractiveMessage\ShopMessage|null
     */
    public function getShopStorefrontMessage()
    {
        return $this->readOneof(4);
    }

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

    /**
     * Generated from protobuf field <code>.proto.Message.InteractiveMessage.ShopMessage shopStorefrontMessage = 4;</code>
     * @param \PhpWA\Protocol\Proto\Message\InteractiveMessage\ShopMessage $var
     * @return $this
     */
    public function setShopStorefrontMessage($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\InteractiveMessage\ShopMessage::class);
        $this->writeOneof(4, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.proto.Message.InteractiveMessage.CollectionMessage collectionMessage = 5;</code>
     * @return \PhpWA\Protocol\Proto\Message\InteractiveMessage\CollectionMessage|null
     */
    public function getCollectionMessage()
    {
        return $this->readOneof(5);
    }

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

    /**
     * Generated from protobuf field <code>.proto.Message.InteractiveMessage.CollectionMessage collectionMessage = 5;</code>
     * @param \PhpWA\Protocol\Proto\Message\InteractiveMessage\CollectionMessage $var
     * @return $this
     */
    public function setCollectionMessage($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\InteractiveMessage\CollectionMessage::class);
        $this->writeOneof(5, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.proto.Message.InteractiveMessage.NativeFlowMessage nativeFlowMessage = 6;</code>
     * @return \PhpWA\Protocol\Proto\Message\InteractiveMessage\NativeFlowMessage|null
     */
    public function getNativeFlowMessage()
    {
        return $this->readOneof(6);
    }

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

    /**
     * Generated from protobuf field <code>.proto.Message.InteractiveMessage.NativeFlowMessage nativeFlowMessage = 6;</code>
     * @param \PhpWA\Protocol\Proto\Message\InteractiveMessage\NativeFlowMessage $var
     * @return $this
     */
    public function setNativeFlowMessage($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\InteractiveMessage\NativeFlowMessage::class);
        $this->writeOneof(6, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.proto.Message.InteractiveMessage.CarouselMessage carouselMessage = 7;</code>
     * @return \PhpWA\Protocol\Proto\Message\InteractiveMessage\CarouselMessage|null
     */
    public function getCarouselMessage()
    {
        return $this->readOneof(7);
    }

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

    /**
     * Generated from protobuf field <code>.proto.Message.InteractiveMessage.CarouselMessage carouselMessage = 7;</code>
     * @param \PhpWA\Protocol\Proto\Message\InteractiveMessage\CarouselMessage $var
     * @return $this
     */
    public function setCarouselMessage($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\InteractiveMessage\CarouselMessage::class);
        $this->writeOneof(7, $var);

        return $this;
    }

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

}

