<?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.BizAccountLinkInfo</code>
 */
class BizAccountLinkInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional uint64 whatsappBizAcctFbid = 1;</code>
     */
    protected $whatsappBizAcctFbid = null;
    /**
     * Generated from protobuf field <code>optional string whatsappAcctNumber = 2;</code>
     */
    protected $whatsappAcctNumber = null;
    /**
     * Generated from protobuf field <code>optional uint64 issueTime = 3;</code>
     */
    protected $issueTime = null;
    /**
     * Generated from protobuf field <code>optional .proto.BizAccountLinkInfo.HostStorageType hostStorage = 4;</code>
     */
    protected $hostStorage = null;
    /**
     * Generated from protobuf field <code>optional .proto.BizAccountLinkInfo.AccountType accountType = 5;</code>
     */
    protected $accountType = null;

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

    /**
     * Generated from protobuf field <code>optional uint64 whatsappBizAcctFbid = 1;</code>
     * @return int|string
     */
    public function getWhatsappBizAcctFbid()
    {
        return isset($this->whatsappBizAcctFbid) ? $this->whatsappBizAcctFbid : 0;
    }

    public function hasWhatsappBizAcctFbid()
    {
        return isset($this->whatsappBizAcctFbid);
    }

    public function clearWhatsappBizAcctFbid()
    {
        unset($this->whatsappBizAcctFbid);
    }

    /**
     * Generated from protobuf field <code>optional uint64 whatsappBizAcctFbid = 1;</code>
     * @param int|string $var
     * @return $this
     */
    public function setWhatsappBizAcctFbid($var)
    {
        GPBUtil::checkUint64($var);
        $this->whatsappBizAcctFbid = $var;

        return $this;
    }

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

    public function hasWhatsappAcctNumber()
    {
        return isset($this->whatsappAcctNumber);
    }

    public function clearWhatsappAcctNumber()
    {
        unset($this->whatsappAcctNumber);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint64 issueTime = 3;</code>
     * @return int|string
     */
    public function getIssueTime()
    {
        return isset($this->issueTime) ? $this->issueTime : 0;
    }

    public function hasIssueTime()
    {
        return isset($this->issueTime);
    }

    public function clearIssueTime()
    {
        unset($this->issueTime);
    }

    /**
     * Generated from protobuf field <code>optional uint64 issueTime = 3;</code>
     * @param int|string $var
     * @return $this
     */
    public function setIssueTime($var)
    {
        GPBUtil::checkUint64($var);
        $this->issueTime = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.BizAccountLinkInfo.HostStorageType hostStorage = 4;</code>
     * @return int
     */
    public function getHostStorage()
    {
        return isset($this->hostStorage) ? $this->hostStorage : 0;
    }

    public function hasHostStorage()
    {
        return isset($this->hostStorage);
    }

    public function clearHostStorage()
    {
        unset($this->hostStorage);
    }

    /**
     * Generated from protobuf field <code>optional .proto.BizAccountLinkInfo.HostStorageType hostStorage = 4;</code>
     * @param int $var
     * @return $this
     */
    public function setHostStorage($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\BizAccountLinkInfo\HostStorageType::class);
        $this->hostStorage = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.BizAccountLinkInfo.AccountType accountType = 5;</code>
     * @return int
     */
    public function getAccountType()
    {
        return isset($this->accountType) ? $this->accountType : 0;
    }

    public function hasAccountType()
    {
        return isset($this->accountType);
    }

    public function clearAccountType()
    {
        unset($this->accountType);
    }

    /**
     * Generated from protobuf field <code>optional .proto.BizAccountLinkInfo.AccountType accountType = 5;</code>
     * @param int $var
     * @return $this
     */
    public function setAccountType($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\BizAccountLinkInfo\AccountType::class);
        $this->accountType = $var;

        return $this;
    }

}

