<?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.DeviceCapabilities</code>
 */
class DeviceCapabilities extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.DeviceCapabilities.ChatLockSupportLevel chatLockSupportLevel = 1;</code>
     */
    protected $chatLockSupportLevel = null;
    /**
     * Generated from protobuf field <code>optional .proto.DeviceCapabilities.LIDMigration lidMigration = 2;</code>
     */
    protected $lidMigration = null;
    /**
     * Generated from protobuf field <code>optional .proto.DeviceCapabilities.BusinessBroadcast businessBroadcast = 3;</code>
     */
    protected $businessBroadcast = null;
    /**
     * Generated from protobuf field <code>optional .proto.DeviceCapabilities.UserHasAvatar userHasAvatar = 4;</code>
     */
    protected $userHasAvatar = null;
    /**
     * Generated from protobuf field <code>optional .proto.DeviceCapabilities.MemberNameTagPrimarySupport memberNameTagPrimarySupport = 5;</code>
     */
    protected $memberNameTagPrimarySupport = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $chatLockSupportLevel
     *     @type \PhpWA\Protocol\Proto\DeviceCapabilities\LIDMigration $lidMigration
     *     @type \PhpWA\Protocol\Proto\DeviceCapabilities\BusinessBroadcast $businessBroadcast
     *     @type \PhpWA\Protocol\Proto\DeviceCapabilities\UserHasAvatar $userHasAvatar
     *     @type int $memberNameTagPrimarySupport
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional .proto.DeviceCapabilities.ChatLockSupportLevel chatLockSupportLevel = 1;</code>
     * @return int
     */
    public function getChatLockSupportLevel()
    {
        return isset($this->chatLockSupportLevel) ? $this->chatLockSupportLevel : 0;
    }

    public function hasChatLockSupportLevel()
    {
        return isset($this->chatLockSupportLevel);
    }

    public function clearChatLockSupportLevel()
    {
        unset($this->chatLockSupportLevel);
    }

    /**
     * Generated from protobuf field <code>optional .proto.DeviceCapabilities.ChatLockSupportLevel chatLockSupportLevel = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setChatLockSupportLevel($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\DeviceCapabilities\ChatLockSupportLevel::class);
        $this->chatLockSupportLevel = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.DeviceCapabilities.LIDMigration lidMigration = 2;</code>
     * @return \PhpWA\Protocol\Proto\DeviceCapabilities\LIDMigration|null
     */
    public function getLidMigration()
    {
        return $this->lidMigration;
    }

    public function hasLidMigration()
    {
        return isset($this->lidMigration);
    }

    public function clearLidMigration()
    {
        unset($this->lidMigration);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.DeviceCapabilities.BusinessBroadcast businessBroadcast = 3;</code>
     * @return \PhpWA\Protocol\Proto\DeviceCapabilities\BusinessBroadcast|null
     */
    public function getBusinessBroadcast()
    {
        return $this->businessBroadcast;
    }

    public function hasBusinessBroadcast()
    {
        return isset($this->businessBroadcast);
    }

    public function clearBusinessBroadcast()
    {
        unset($this->businessBroadcast);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.DeviceCapabilities.UserHasAvatar userHasAvatar = 4;</code>
     * @return \PhpWA\Protocol\Proto\DeviceCapabilities\UserHasAvatar|null
     */
    public function getUserHasAvatar()
    {
        return $this->userHasAvatar;
    }

    public function hasUserHasAvatar()
    {
        return isset($this->userHasAvatar);
    }

    public function clearUserHasAvatar()
    {
        unset($this->userHasAvatar);
    }

    /**
     * Generated from protobuf field <code>optional .proto.DeviceCapabilities.UserHasAvatar userHasAvatar = 4;</code>
     * @param \PhpWA\Protocol\Proto\DeviceCapabilities\UserHasAvatar $var
     * @return $this
     */
    public function setUserHasAvatar($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\DeviceCapabilities\UserHasAvatar::class);
        $this->userHasAvatar = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.DeviceCapabilities.MemberNameTagPrimarySupport memberNameTagPrimarySupport = 5;</code>
     * @return int
     */
    public function getMemberNameTagPrimarySupport()
    {
        return isset($this->memberNameTagPrimarySupport) ? $this->memberNameTagPrimarySupport : 0;
    }

    public function hasMemberNameTagPrimarySupport()
    {
        return isset($this->memberNameTagPrimarySupport);
    }

    public function clearMemberNameTagPrimarySupport()
    {
        unset($this->memberNameTagPrimarySupport);
    }

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

        return $this;
    }

}

