<?php
 
 
 

namespace PhpWA\Protocol\Proto;

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




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


    private $polygonVertices;
    


    protected $shouldSkipConfirmation = null;
    


    protected $embeddedContent = null;
    


    protected $statusLinkType = null;
    protected $action;

    















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

    



    public function getPolygonVertices()
    {
        return $this->polygonVertices;
    }

    




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

        return $this;
    }

    



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

    public function hasShouldSkipConfirmation()
    {
        return isset($this->shouldSkipConfirmation);
    }

    public function clearShouldSkipConfirmation()
    {
        unset($this->shouldSkipConfirmation);
    }

    




    public function setShouldSkipConfirmation($var)
    {
        GPBUtil::checkBool($var);
        $this->shouldSkipConfirmation = $var;

        return $this;
    }

    



    public function getEmbeddedContent()
    {
        return $this->embeddedContent;
    }

    public function hasEmbeddedContent()
    {
        return isset($this->embeddedContent);
    }

    public function clearEmbeddedContent()
    {
        unset($this->embeddedContent);
    }

    




    public function setEmbeddedContent($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\EmbeddedContent::class);
        $this->embeddedContent = $var;

        return $this;
    }

    



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

    public function hasStatusLinkType()
    {
        return isset($this->statusLinkType);
    }

    public function clearStatusLinkType()
    {
        unset($this->statusLinkType);
    }

    




    public function setStatusLinkType($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\InteractiveAnnotation\StatusLinkType::class);
        $this->statusLinkType = $var;

        return $this;
    }

    



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

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

    




    public function setLocation($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Location::class);
        $this->writeOneof(2, $var);

        return $this;
    }

    



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

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

    




    public function setNewsletter($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\ContextInfo\ForwardedNewsletterMessageInfo::class);
        $this->writeOneof(3, $var);

        return $this;
    }

    



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

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

    




    public function setEmbeddedAction($var)
    {
        GPBUtil::checkBool($var);
        $this->writeOneof(6, $var);

        return $this;
    }

    



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

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

    




    public function setTapAction($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\TapLinkAction::class);
        $this->writeOneof(7, $var);

        return $this;
    }

    


    public function getAction()
    {
        return $this->whichOneof("action");
    }

}

