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

namespace PhpWA\Protocol\Proto\Message\PaymentLinkMetadata;

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

/**
 * Generated from protobuf message <code>proto.Message.PaymentLinkMetadata.PaymentLinkButton</code>
 */
class PaymentLinkButton extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string displayText = 1;</code>
     */
    protected $displayText = null;

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

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

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

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

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

        return $this;
    }

}

