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

namespace PhpWA\Protocol\Proto;

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

/**
 * Generated from protobuf message <code>proto.InteractiveAnnotation</code>
 */
class InteractiveAnnotation extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>repeated .proto.Point polygonVertices = 1;</code>
     */
    private $polygonVertices;
    /**
     * Generated from protobuf field <code>optional bool shouldSkipConfirmation = 4;</code>
     */
    protected $shouldSkipConfirmation = null;
    /**
     * Generated from protobuf field <code>optional .proto.EmbeddedContent embeddedContent = 5;</code>
     */
    protected $embeddedContent = null;
    /**
     * Generated from protobuf field <code>optional .proto.InteractiveAnnotation.StatusLinkType statusLinkType = 8;</code>
     */
    protected $statusLinkType = null;
    protected $action;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \PhpWA\Protocol\Proto\Point[] $polygonVertices
     *     @type bool $shouldSkipConfirmation
     *     @type \PhpWA\Protocol\Proto\EmbeddedContent $embeddedContent
     *     @type int $statusLinkType
     *     @type \PhpWA\Protocol\Proto\Location $location
     *     @type \PhpWA\Protocol\Proto\ContextInfo\ForwardedNewsletterMessageInfo $newsletter
     *     @type bool $embeddedAction
     *     @type \PhpWA\Protocol\Proto\TapLinkAction $tapAction
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>repeated .proto.Point polygonVertices = 1;</code>
     * @return RepeatedField<\PhpWA\Protocol\Proto\Point>
     */
    public function getPolygonVertices()
    {
        return $this->polygonVertices;
    }

    /**
     * Generated from protobuf field <code>repeated .proto.Point polygonVertices = 1;</code>
     * @param \PhpWA\Protocol\Proto\Point[] $var
     * @return $this
     */
    public function setPolygonVertices($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \PhpWA\Protocol\Proto\Point::class);
        $this->polygonVertices = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bool shouldSkipConfirmation = 4;</code>
     * @return bool
     */
    public function getShouldSkipConfirmation()
    {
        return isset($this->shouldSkipConfirmation) ? $this->shouldSkipConfirmation : false;
    }

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

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

    /**
     * Generated from protobuf field <code>optional bool shouldSkipConfirmation = 4;</code>
     * @param bool $var
     * @return $this
     */
    public function setShouldSkipConfirmation($var)
    {
        GPBUtil::checkBool($var);
        $this->shouldSkipConfirmation = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.EmbeddedContent embeddedContent = 5;</code>
     * @return \PhpWA\Protocol\Proto\EmbeddedContent|null
     */
    public function getEmbeddedContent()
    {
        return $this->embeddedContent;
    }

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

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.InteractiveAnnotation.StatusLinkType statusLinkType = 8;</code>
     * @return int
     */
    public function getStatusLinkType()
    {
        return isset($this->statusLinkType) ? $this->statusLinkType : 0;
    }

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

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

    /**
     * Generated from protobuf field <code>optional .proto.InteractiveAnnotation.StatusLinkType statusLinkType = 8;</code>
     * @param int $var
     * @return $this
     */
    public function setStatusLinkType($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\InteractiveAnnotation\StatusLinkType::class);
        $this->statusLinkType = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.proto.Location location = 2;</code>
     * @return \PhpWA\Protocol\Proto\Location|null
     */
    public function getLocation()
    {
        return $this->readOneof(2);
    }

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

    /**
     * Generated from protobuf field <code>.proto.Location location = 2;</code>
     * @param \PhpWA\Protocol\Proto\Location $var
     * @return $this
     */
    public function setLocation($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Location::class);
        $this->writeOneof(2, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.proto.ContextInfo.ForwardedNewsletterMessageInfo newsletter = 3;</code>
     * @return \PhpWA\Protocol\Proto\ContextInfo\ForwardedNewsletterMessageInfo|null
     */
    public function getNewsletter()
    {
        return $this->readOneof(3);
    }

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

    /**
     * Generated from protobuf field <code>.proto.ContextInfo.ForwardedNewsletterMessageInfo newsletter = 3;</code>
     * @param \PhpWA\Protocol\Proto\ContextInfo\ForwardedNewsletterMessageInfo $var
     * @return $this
     */
    public function setNewsletter($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\ContextInfo\ForwardedNewsletterMessageInfo::class);
        $this->writeOneof(3, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool embeddedAction = 6;</code>
     * @return bool
     */
    public function getEmbeddedAction()
    {
        return $this->readOneof(6);
    }

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

    /**
     * Generated from protobuf field <code>bool embeddedAction = 6;</code>
     * @param bool $var
     * @return $this
     */
    public function setEmbeddedAction($var)
    {
        GPBUtil::checkBool($var);
        $this->writeOneof(6, $var);

        return $this;
    }

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

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

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

        return $this;
    }

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

}

