<?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.AvatarUserSettings</code>
 */
class AvatarUserSettings extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string fbid = 1;</code>
     */
    protected $fbid = null;
    /**
     * Generated from protobuf field <code>optional string password = 2;</code>
     */
    protected $password = null;

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

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

    public function hasFbid()
    {
        return isset($this->fbid);
    }

    public function clearFbid()
    {
        unset($this->fbid);
    }

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

        return $this;
    }

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

    public function hasPassword()
    {
        return isset($this->password);
    }

    public function clearPassword()
    {
        unset($this->password);
    }

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

        return $this;
    }

}

