<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: keyapis/identity/v1/keyapis_identity_user_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.PostUserSsoMigrationRequest</code>
 */
class PostUserSsoMigrationRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Идентификатор мигрируемого пользователя.
     * # Диапазон: 1..2147483647
     *
     * Generated from protobuf field <code>int32 user_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $user_id = 0;
    /**
     * Целевой номер телефона.
     * # Диапазон: 5..14
     *
     * Generated from protobuf field <code>string phone_number = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $phone_number = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $user_id
     *           Идентификатор мигрируемого пользователя.
     *           # Диапазон: 1..2147483647
     *     @type string $phone_number
     *           Целевой номер телефона.
     *           # Диапазон: 5..14
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Identity\V1\KeyapisIdentityUserV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Идентификатор мигрируемого пользователя.
     * # Диапазон: 1..2147483647
     *
     * Generated from protobuf field <code>int32 user_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int
     */
    public function getUserId()
    {
        return $this->user_id;
    }

    /**
     * Идентификатор мигрируемого пользователя.
     * # Диапазон: 1..2147483647
     *
     * Generated from protobuf field <code>int32 user_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int $var
     * @return $this
     */
    public function setUserId($var)
    {
        GPBUtil::checkInt32($var);
        $this->user_id = $var;

        return $this;
    }

    /**
     * Целевой номер телефона.
     * # Диапазон: 5..14
     *
     * Generated from protobuf field <code>string phone_number = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getPhoneNumber()
    {
        return $this->phone_number;
    }

    /**
     * Целевой номер телефона.
     * # Диапазон: 5..14
     *
     * Generated from protobuf field <code>string phone_number = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setPhoneNumber($var)
    {
        GPBUtil::checkString($var, True);
        $this->phone_number = $var;

        return $this;
    }

}

