<?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.Account</code>
 */
class Account extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string lid = 1;</code>
     */
    protected $lid = null;
    /**
     * Generated from protobuf field <code>optional string username = 2;</code>
     */
    protected $username = null;
    /**
     * Generated from protobuf field <code>optional string countryCode = 3;</code>
     */
    protected $countryCode = null;
    /**
     * Generated from protobuf field <code>optional bool isUsernameDeleted = 4;</code>
     */
    protected $isUsernameDeleted = null;

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

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

    public function hasLid()
    {
        return isset($this->lid);
    }

    public function clearLid()
    {
        unset($this->lid);
    }

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

        return $this;
    }

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

    public function hasUsername()
    {
        return isset($this->username);
    }

    public function clearUsername()
    {
        unset($this->username);
    }

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

        return $this;
    }

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

    public function hasCountryCode()
    {
        return isset($this->countryCode);
    }

    public function clearCountryCode()
    {
        unset($this->countryCode);
    }

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

        return $this;
    }

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

    public function hasIsUsernameDeleted()
    {
        return isset($this->isUsernameDeleted);
    }

    public function clearIsUsernameDeleted()
    {
        unset($this->isUsernameDeleted);
    }

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

        return $this;
    }

}

