<?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;

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

/**
 * Запрос проверки кода двухфакторной авторизации и активация сессии для B2B
 *
 * Generated from protobuf message <code>keyapis.identity_b2b.v1.PostAuthorizationCheckCodeRequest</code>
 */
class PostAuthorizationCheckCodeRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Идентификатор сессии двухфакторной аутентификации
     *
     * Generated from protobuf field <code>string session_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $session_id = '';
    /**
     * Идентификатор процесса двухфакторной аутентификации
     *
     * Generated from protobuf field <code>string action_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $action_id = '';
    /**
     * Идентификатор кода двухфакторной авторизации
     *
     * Generated from protobuf field <code>string code_id = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $code_id = '';
    /**
     * Код, введенный пользователем
     *
     * Generated from protobuf field <code>string code = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $code = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $session_id
     *           Идентификатор сессии двухфакторной аутентификации
     *     @type string $action_id
     *           Идентификатор процесса двухфакторной аутентификации
     *     @type string $code_id
     *           Идентификатор кода двухфакторной авторизации
     *     @type string $code
     *           Код, введенный пользователем
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\IdentityB2B\V1\KeyapisIdentityB2BAuthorizationV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Идентификатор сессии двухфакторной аутентификации
     *
     * Generated from protobuf field <code>string session_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getSessionId()
    {
        return $this->session_id;
    }

    /**
     * Идентификатор сессии двухфакторной аутентификации
     *
     * Generated from protobuf field <code>string session_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setSessionId($var)
    {
        GPBUtil::checkString($var, True);
        $this->session_id = $var;

        return $this;
    }

    /**
     * Идентификатор процесса двухфакторной аутентификации
     *
     * Generated from protobuf field <code>string action_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getActionId()
    {
        return $this->action_id;
    }

    /**
     * Идентификатор процесса двухфакторной аутентификации
     *
     * Generated from protobuf field <code>string action_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setActionId($var)
    {
        GPBUtil::checkString($var, True);
        $this->action_id = $var;

        return $this;
    }

    /**
     * Идентификатор кода двухфакторной авторизации
     *
     * Generated from protobuf field <code>string code_id = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getCodeId()
    {
        return $this->code_id;
    }

    /**
     * Идентификатор кода двухфакторной авторизации
     *
     * Generated from protobuf field <code>string code_id = 3 [(.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 = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getCode()
    {
        return $this->code;
    }

    /**
     * Код, введенный пользователем
     *
     * Generated from protobuf field <code>string code = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setCode($var)
    {
        GPBUtil::checkString($var, True);
        $this->code = $var;

        return $this;
    }

}

