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

namespace Keyapis\Identity\V1;

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

/**
 * Запрос на авторизацию по ОТП-коду
 *
 * Generated from protobuf message <code>keyapis.identity.v1.PostOauth2LoginByCodeRequest</code>
 */
class PostOauth2LoginByCodeRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Идентификатор ОТП-кода
     *
     * Generated from protobuf field <code>string code_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $code_id = '';
    /**
     * Значение ОТП-кода
     *
     * Generated from protobuf field <code>string code = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $code = '';
    /**
     * Идентификатор текущей попытки логина пользователя
     *
     * Generated from protobuf field <code>string login_challenge = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $login_challenge = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $code_id
     *           Идентификатор ОТП-кода
     *     @type string $code
     *           Значение ОТП-кода
     *     @type string $login_challenge
     *           Идентификатор текущей попытки логина пользователя
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Identity\V1\KeyapisIdentityOauth2V1::initOnce();
        parent::__construct($data);
    }

    /**
     * Идентификатор ОТП-кода
     *
     * Generated from protobuf field <code>string code_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getCodeId()
    {
        return $this->code_id;
    }

    /**
     * Идентификатор ОТП-кода
     *
     * Generated from protobuf field <code>string code_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setCodeId($var)
    {
        GPBUtil::checkString($var, True);
        $this->code_id = $var;

        return $this;
    }

    /**
     * Значение ОТП-кода
     *
     * Generated from protobuf field <code>string code = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getCode()
    {
        return $this->code;
    }

    /**
     * Значение ОТП-кода
     *
     * Generated from protobuf field <code>string code = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setCode($var)
    {
        GPBUtil::checkString($var, True);
        $this->code = $var;

        return $this;
    }

    /**
     * Идентификатор текущей попытки логина пользователя
     *
     * Generated from protobuf field <code>string login_challenge = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getLoginChallenge()
    {
        return $this->login_challenge;
    }

    /**
     * Идентификатор текущей попытки логина пользователя
     *
     * Generated from protobuf field <code>string login_challenge = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setLoginChallenge($var)
    {
        GPBUtil::checkString($var, True);
        $this->login_challenge = $var;

        return $this;
    }

}

