<?php
 
 
 

namespace PhpWA\Protocol\Proto;

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




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


    protected $type = null;
    


    protected $actionUrl = null;
    protected $attributionData;

    















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

    



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

    public function hasType()
    {
        return isset($this->type);
    }

    public function clearType()
    {
        unset($this->type);
    }

    




    public function setType($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\StatusAttribution\Type::class);
        $this->type = $var;

        return $this;
    }

    



    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 getStatusReshare()
    {
        return $this->readOneof(3);
    }

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

    




    public function setStatusReshare($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\StatusAttribution\StatusReshare::class);
        $this->writeOneof(3, $var);

        return $this;
    }

    



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

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

    




    public function setExternalShare($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\StatusAttribution\ExternalShare::class);
        $this->writeOneof(4, $var);

        return $this;
    }

    



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

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

    




    public function setMusic($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\StatusAttribution\Music::class);
        $this->writeOneof(5, $var);

        return $this;
    }

    



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

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

    




    public function setGroupStatus($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\StatusAttribution\GroupStatus::class);
        $this->writeOneof(6, $var);

        return $this;
    }

    



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

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

    




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

        return $this;
    }

    



    public function getAiCreatedAttribution()
    {
        return $this->readOneof(8);
    }

    public function hasAiCreatedAttribution()
    {
        return $this->hasOneof(8);
    }

    




    public function setAiCreatedAttribution($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\StatusAttribution\AiCreatedAttribution::class);
        $this->writeOneof(8, $var);

        return $this;
    }

    


    public function getAttributionData()
    {
        return $this->whichOneof("attributionData");
    }

}

