<?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.BizAccountPayload</code>
 */
class BizAccountPayload extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.VerifiedNameCertificate vnameCert = 1;</code>
     */
    protected $vnameCert = null;
    /**
     * Generated from protobuf field <code>optional bytes bizAcctLinkInfo = 2;</code>
     */
    protected $bizAcctLinkInfo = null;

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

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

    public function hasVnameCert()
    {
        return isset($this->vnameCert);
    }

    public function clearVnameCert()
    {
        unset($this->vnameCert);
    }

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

        return $this;
    }

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

    public function hasBizAcctLinkInfo()
    {
        return isset($this->bizAcctLinkInfo);
    }

    public function clearBizAcctLinkInfo()
    {
        unset($this->bizAcctLinkInfo);
    }

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

        return $this;
    }

}

