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

namespace PhpWA\Protocol\Proto\TemplateButton;

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

/**
 * Generated from protobuf message <code>proto.TemplateButton.URLButton</code>
 */
class URLButton extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.Message.HighlyStructuredMessage displayText = 1;</code>
     */
    protected $displayText = null;
    /**
     * Generated from protobuf field <code>optional .proto.Message.HighlyStructuredMessage url = 2;</code>
     */
    protected $url = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \PhpWA\Protocol\Proto\Message\HighlyStructuredMessage $displayText
     *     @type \PhpWA\Protocol\Proto\Message\HighlyStructuredMessage $url
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.HighlyStructuredMessage displayText = 1;</code>
     * @return \PhpWA\Protocol\Proto\Message\HighlyStructuredMessage|null
     */
    public function getDisplayText()
    {
        return $this->displayText;
    }

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

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

    /**
     * Generated from protobuf field <code>optional .proto.Message.HighlyStructuredMessage displayText = 1;</code>
     * @param \PhpWA\Protocol\Proto\Message\HighlyStructuredMessage $var
     * @return $this
     */
    public function setDisplayText($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\HighlyStructuredMessage::class);
        $this->displayText = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.HighlyStructuredMessage url = 2;</code>
     * @return \PhpWA\Protocol\Proto\Message\HighlyStructuredMessage|null
     */
    public function getUrl()
    {
        return $this->url;
    }

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

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

    /**
     * Generated from protobuf field <code>optional .proto.Message.HighlyStructuredMessage url = 2;</code>
     * @param \PhpWA\Protocol\Proto\Message\HighlyStructuredMessage $var
     * @return $this
     */
    public function setUrl($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\HighlyStructuredMessage::class);
        $this->url = $var;

        return $this;
    }

}

