<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: core/site.proto

namespace Zaly\Proto\Core;

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

/**
 * Publicly available configurations
 *
 * Generated from protobuf message <code>core.PublicSiteConfig</code>
 */
class PublicSiteConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string name = 1;</code>
     */
    private $name = '';
    /**
     * Generated from protobuf field <code>string logo = 2;</code>
     */
    private $logo = '';
    /**
     * json array, [A, B, C]
     *
     * Generated from protobuf field <code>string masters = 3;</code>
     */
    private $masters = '';
    /**
     * Generated from protobuf field <code>string serverAddressForApi = 4;</code>
     */
    private $serverAddressForApi = '';
    /**
     * Generated from protobuf field <code>string serverAddressForIM = 5;</code>
     */
    private $serverAddressForIM = '';
    /**
     * Generated from protobuf field <code>bool enableCreateGroup = 6;</code>
     */
    private $enableCreateGroup = false;
    /**
     * Generated from protobuf field <code>bool enableAddFriend = 7;</code>
     */
    private $enableAddFriend = false;
    /**
     * Generated from protobuf field <code>bool enableTmpChat = 8;</code>
     */
    private $enableTmpChat = false;
    /**
     * Generated from protobuf field <code>bool enableInvitationCode = 9;</code>
     */
    private $enableInvitationCode = false;
    /**
     * Generated from protobuf field <code>bool enableRealName = 10;</code>
     */
    private $enableRealName = false;
    /**
     * Generated from protobuf field <code>int32 loginPluginId = 11;</code>
     */
    private $loginPluginId = 0;
    /**
     * Generated from protobuf field <code>int32 accountSafePluginId = 12;</code>
     */
    private $accountSafePluginId = 0;
    /**
     * Generated from protobuf field <code>bool enableWidgetWeb = 13;</code>
     */
    private $enableWidgetWeb = false;
    /**
     * Generated from protobuf field <code>string siteIdPubkBase64 = 14;</code>
     */
    private $siteIdPubkBase64 = '';
    /**
     * Generated from protobuf field <code>.core.Version version = 15;</code>
     */
    private $version = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *     @type string $logo
     *     @type string $masters
     *           json array, [A, B, C]
     *     @type string $serverAddressForApi
     *     @type string $serverAddressForIM
     *     @type bool $enableCreateGroup
     *     @type bool $enableAddFriend
     *     @type bool $enableTmpChat
     *     @type bool $enableInvitationCode
     *     @type bool $enableRealName
     *     @type int $loginPluginId
     *     @type int $accountSafePluginId
     *     @type bool $enableWidgetWeb
     *     @type string $siteIdPubkBase64
     *     @type \Zaly\Proto\Core\Version $version
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Core\Site::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>string name = 1;</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string logo = 2;</code>
     * @return string
     */
    public function getLogo()
    {
        return $this->logo;
    }

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

        return $this;
    }

    /**
     * json array, [A, B, C]
     *
     * Generated from protobuf field <code>string masters = 3;</code>
     * @return string
     */
    public function getMasters()
    {
        return $this->masters;
    }

    /**
     * json array, [A, B, C]
     *
     * Generated from protobuf field <code>string masters = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setMasters($var)
    {
        GPBUtil::checkString($var, True);
        $this->masters = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string serverAddressForApi = 4;</code>
     * @return string
     */
    public function getServerAddressForApi()
    {
        return $this->serverAddressForApi;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string serverAddressForIM = 5;</code>
     * @return string
     */
    public function getServerAddressForIM()
    {
        return $this->serverAddressForIM;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool enableCreateGroup = 6;</code>
     * @return bool
     */
    public function getEnableCreateGroup()
    {
        return $this->enableCreateGroup;
    }

    /**
     * Generated from protobuf field <code>bool enableCreateGroup = 6;</code>
     * @param bool $var
     * @return $this
     */
    public function setEnableCreateGroup($var)
    {
        GPBUtil::checkBool($var);
        $this->enableCreateGroup = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool enableAddFriend = 7;</code>
     * @return bool
     */
    public function getEnableAddFriend()
    {
        return $this->enableAddFriend;
    }

    /**
     * Generated from protobuf field <code>bool enableAddFriend = 7;</code>
     * @param bool $var
     * @return $this
     */
    public function setEnableAddFriend($var)
    {
        GPBUtil::checkBool($var);
        $this->enableAddFriend = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool enableTmpChat = 8;</code>
     * @return bool
     */
    public function getEnableTmpChat()
    {
        return $this->enableTmpChat;
    }

    /**
     * Generated from protobuf field <code>bool enableTmpChat = 8;</code>
     * @param bool $var
     * @return $this
     */
    public function setEnableTmpChat($var)
    {
        GPBUtil::checkBool($var);
        $this->enableTmpChat = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool enableInvitationCode = 9;</code>
     * @return bool
     */
    public function getEnableInvitationCode()
    {
        return $this->enableInvitationCode;
    }

    /**
     * Generated from protobuf field <code>bool enableInvitationCode = 9;</code>
     * @param bool $var
     * @return $this
     */
    public function setEnableInvitationCode($var)
    {
        GPBUtil::checkBool($var);
        $this->enableInvitationCode = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool enableRealName = 10;</code>
     * @return bool
     */
    public function getEnableRealName()
    {
        return $this->enableRealName;
    }

    /**
     * Generated from protobuf field <code>bool enableRealName = 10;</code>
     * @param bool $var
     * @return $this
     */
    public function setEnableRealName($var)
    {
        GPBUtil::checkBool($var);
        $this->enableRealName = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>int32 loginPluginId = 11;</code>
     * @return int
     */
    public function getLoginPluginId()
    {
        return $this->loginPluginId;
    }

    /**
     * Generated from protobuf field <code>int32 loginPluginId = 11;</code>
     * @param int $var
     * @return $this
     */
    public function setLoginPluginId($var)
    {
        GPBUtil::checkInt32($var);
        $this->loginPluginId = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>int32 accountSafePluginId = 12;</code>
     * @return int
     */
    public function getAccountSafePluginId()
    {
        return $this->accountSafePluginId;
    }

    /**
     * Generated from protobuf field <code>int32 accountSafePluginId = 12;</code>
     * @param int $var
     * @return $this
     */
    public function setAccountSafePluginId($var)
    {
        GPBUtil::checkInt32($var);
        $this->accountSafePluginId = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool enableWidgetWeb = 13;</code>
     * @return bool
     */
    public function getEnableWidgetWeb()
    {
        return $this->enableWidgetWeb;
    }

    /**
     * Generated from protobuf field <code>bool enableWidgetWeb = 13;</code>
     * @param bool $var
     * @return $this
     */
    public function setEnableWidgetWeb($var)
    {
        GPBUtil::checkBool($var);
        $this->enableWidgetWeb = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string siteIdPubkBase64 = 14;</code>
     * @return string
     */
    public function getSiteIdPubkBase64()
    {
        return $this->siteIdPubkBase64;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.core.Version version = 15;</code>
     * @return \Zaly\Proto\Core\Version
     */
    public function getVersion()
    {
        return $this->version;
    }

    /**
     * Generated from protobuf field <code>.core.Version version = 15;</code>
     * @param \Zaly\Proto\Core\Version $var
     * @return $this
     */
    public function setVersion($var)
    {
        GPBUtil::checkMessage($var, \Zaly\Proto\Core\Version::class);
        $this->version = $var;

        return $this;
    }

}

