<?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.ActionLink</code>
 */
class ActionLink extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string url = 1;</code>
     */
    protected $url = null;
    /**
     * Generated from protobuf field <code>optional string buttonTitle = 2;</code>
     */
    protected $buttonTitle = null;

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

    /**
     * Generated from protobuf field <code>optional string url = 1;</code>
     * @return string
     */
    public function getUrl()
    {
        return isset($this->url) ? $this->url : '';
    }

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

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

    /**
     * Generated from protobuf field <code>optional string url = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setUrl($var)
    {
        GPBUtil::checkString($var, True);
        $this->url = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string buttonTitle = 2;</code>
     * @return string
     */
    public function getButtonTitle()
    {
        return isset($this->buttonTitle) ? $this->buttonTitle : '';
    }

    public function hasButtonTitle()
    {
        return isset($this->buttonTitle);
    }

    public function clearButtonTitle()
    {
        unset($this->buttonTitle);
    }

    /**
     * Generated from protobuf field <code>optional string buttonTitle = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setButtonTitle($var)
    {
        GPBUtil::checkString($var, True);
        $this->buttonTitle = $var;

        return $this;
    }

}

