<?php
 
 
 

namespace PhpWA\Protocol\Proto\HydratedTemplateButton;

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




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


    protected $displayText = null;
    


    protected $url = null;
    


    protected $consentedUsersUrl = null;
    


    protected $webviewPresentation = null;

    











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

    



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

    public function hasDisplayText()
    {
        return isset($this->displayText);
    }

    public function clearDisplayText()
    {
        unset($this->displayText);
    }

    




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

        return $this;
    }

    



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

    public function hasUrl()
    {
        return isset($this->url);
    }

    public function clearUrl()
    {
        unset($this->url);
    }

    




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

        return $this;
    }

    



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

    public function hasConsentedUsersUrl()
    {
        return isset($this->consentedUsersUrl);
    }

    public function clearConsentedUsersUrl()
    {
        unset($this->consentedUsersUrl);
    }

    




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

        return $this;
    }

    



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

    public function hasWebviewPresentation()
    {
        return isset($this->webviewPresentation);
    }

    public function clearWebviewPresentation()
    {
        unset($this->webviewPresentation);
    }

    




    public function setWebviewPresentation($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\HydratedTemplateButton\HydratedURLButton\WebviewPresentationType::class);
        $this->webviewPresentation = $var;

        return $this;
    }

}

