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

namespace PhpWA\Protocol\Proto\Message;

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

/**
 * Generated from protobuf message <code>proto.Message.PaymentLinkMetadata</code>
 */
class PaymentLinkMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.Message.PaymentLinkMetadata.PaymentLinkButton button = 1;</code>
     */
    protected $button = null;
    /**
     * Generated from protobuf field <code>optional .proto.Message.PaymentLinkMetadata.PaymentLinkHeader header = 2;</code>
     */
    protected $header = null;
    /**
     * Generated from protobuf field <code>optional .proto.Message.PaymentLinkMetadata.PaymentLinkProvider provider = 3;</code>
     */
    protected $provider = null;

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

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

    public function hasButton()
    {
        return isset($this->button);
    }

    public function clearButton()
    {
        unset($this->button);
    }

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

        return $this;
    }

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

    public function hasHeader()
    {
        return isset($this->header);
    }

    public function clearHeader()
    {
        unset($this->header);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.PaymentLinkMetadata.PaymentLinkProvider provider = 3;</code>
     * @return \PhpWA\Protocol\Proto\Message\PaymentLinkMetadata\PaymentLinkProvider|null
     */
    public function getProvider()
    {
        return $this->provider;
    }

    public function hasProvider()
    {
        return isset($this->provider);
    }

    public function clearProvider()
    {
        unset($this->provider);
    }

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

        return $this;
    }

}

