<?php
 
 
 

namespace PhpWA\Protocol\Proto\StatusAttribution;

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




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


    protected $actionUrl = null;
    


    protected $source = null;
    


    protected $duration = null;
    


    protected $actionFallbackUrl = null;

    











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

    



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

    public function hasActionUrl()
    {
        return isset($this->actionUrl);
    }

    public function clearActionUrl()
    {
        unset($this->actionUrl);
    }

    




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

        return $this;
    }

    



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

    public function hasSource()
    {
        return isset($this->source);
    }

    public function clearSource()
    {
        unset($this->source);
    }

    




    public function setSource($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\StatusAttribution\ExternalShare\Source::class);
        $this->source = $var;

        return $this;
    }

    



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

    public function hasDuration()
    {
        return isset($this->duration);
    }

    public function clearDuration()
    {
        unset($this->duration);
    }

    




    public function setDuration($var)
    {
        GPBUtil::checkInt32($var);
        $this->duration = $var;

        return $this;
    }

    



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

    public function hasActionFallbackUrl()
    {
        return isset($this->actionFallbackUrl);
    }

    public function clearActionFallbackUrl()
    {
        unset($this->actionFallbackUrl);
    }

    




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

        return $this;
    }

}

