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

namespace PhpWA\Protocol\Proto\Message\PeerDataOperationRequestResponseMessage\PeerDataOperationResult\LinkPreviewResponse;

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

/**
 * Generated from protobuf message <code>proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.LinkPreviewResponse.PaymentLinkPreviewMetadata</code>
 */
class PaymentLinkPreviewMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional bool isBusinessVerified = 1;</code>
     */
    protected $isBusinessVerified = null;
    /**
     * Generated from protobuf field <code>optional string providerName = 2;</code>
     */
    protected $providerName = null;

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

    /**
     * Generated from protobuf field <code>optional bool isBusinessVerified = 1;</code>
     * @return bool
     */
    public function getIsBusinessVerified()
    {
        return isset($this->isBusinessVerified) ? $this->isBusinessVerified : false;
    }

    public function hasIsBusinessVerified()
    {
        return isset($this->isBusinessVerified);
    }

    public function clearIsBusinessVerified()
    {
        unset($this->isBusinessVerified);
    }

    /**
     * Generated from protobuf field <code>optional bool isBusinessVerified = 1;</code>
     * @param bool $var
     * @return $this
     */
    public function setIsBusinessVerified($var)
    {
        GPBUtil::checkBool($var);
        $this->isBusinessVerified = $var;

        return $this;
    }

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

    public function hasProviderName()
    {
        return isset($this->providerName);
    }

    public function clearProviderName()
    {
        unset($this->providerName);
    }

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

        return $this;
    }

}

