<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: keyapis/identity_b2b/v1/keyapis_identity_b2b_authorization_v1.proto

namespace Keyapis\IdentityB2b\V1\SsoError;

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

/**
 * Неверный пароль
 *
 * Generated from protobuf message <code>keyapis.identity_b2b.v1.SsoError.WrongCredentials</code>
 */
class WrongCredentials extends \Google\Protobuf\Internal\Message
{
    /**
     * Капча
     *
     * Generated from protobuf field <code>.keyapis.identity_b2b.v1.Captcha captcha = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $captcha = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Keyapis\IdentityB2b\V1\Captcha $captcha
     *           Капча
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\IdentityB2B\V1\KeyapisIdentityB2BAuthorizationV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Капча
     *
     * Generated from protobuf field <code>.keyapis.identity_b2b.v1.Captcha captcha = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Keyapis\IdentityB2b\V1\Captcha|null
     */
    public function getCaptcha()
    {
        return $this->captcha;
    }

    public function hasCaptcha()
    {
        return isset($this->captcha);
    }

    public function clearCaptcha()
    {
        unset($this->captcha);
    }

    /**
     * Капча
     *
     * Generated from protobuf field <code>.keyapis.identity_b2b.v1.Captcha captcha = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param \Keyapis\IdentityB2b\V1\Captcha $var
     * @return $this
     */
    public function setCaptcha($var)
    {
        GPBUtil::checkMessage($var, \Keyapis\IdentityB2b\V1\Captcha::class);
        $this->captcha = $var;

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(WrongCredentials::class, \Keyapis\IdentityB2b\V1\SsoError_WrongCredentials::class);

