// Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/identity/v1/keyapis_identity_authorization_v1.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") package ru.keyapis.identity.v1; @kotlin.jvm.JvmName("-initializepostAuthorizationLoginByPasswordRequest") public inline fun postAuthorizationLoginByPasswordRequest(block: ru.keyapis.identity.v1.PostAuthorizationLoginByPasswordRequestKt.Dsl.() -> kotlin.Unit): ru.keyapis.identity.v1.KeyapisIdentityV1Proto.PostAuthorizationLoginByPasswordRequest = ru.keyapis.identity.v1.PostAuthorizationLoginByPasswordRequestKt.Dsl._create(ru.keyapis.identity.v1.KeyapisIdentityV1Proto.PostAuthorizationLoginByPasswordRequest.newBuilder()).apply { block() }._build() /** * ``` * Запрос на авторизацию по паролю * ``` * * Protobuf type `keyapis.identity.v1.PostAuthorizationLoginByPasswordRequest` */ public object PostAuthorizationLoginByPasswordRequestKt { @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) @com.google.protobuf.kotlin.ProtoDslMarker public class Dsl private constructor( private val _builder: ru.keyapis.identity.v1.KeyapisIdentityV1Proto.PostAuthorizationLoginByPasswordRequest.Builder ) { public companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: ru.keyapis.identity.v1.KeyapisIdentityV1Proto.PostAuthorizationLoginByPasswordRequest.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): ru.keyapis.identity.v1.KeyapisIdentityV1Proto.PostAuthorizationLoginByPasswordRequest = _builder.build() /** * ``` * Номер телефона * ``` * * `string phone_number = 1;` */ public var phoneNumber: kotlin.String @JvmName("getPhoneNumber") get() = _builder.getPhoneNumber() @JvmName("setPhoneNumber") set(value) { _builder.setPhoneNumber(value) } /** * ``` * Номер телефона * ``` * * `string phone_number = 1;` */ public fun clearPhoneNumber() { _builder.clearPhoneNumber() } /** * ``` * Номер телефона * ``` * * `string phone_number = 1;` * @return Whether the phoneNumber field is set. */ public fun hasPhoneNumber(): kotlin.Boolean { return _builder.hasPhoneNumber() } /** * ``` * Электронная почта * ``` * * `string email = 2;` */ public var email: kotlin.String @JvmName("getEmail") get() = _builder.getEmail() @JvmName("setEmail") set(value) { _builder.setEmail(value) } /** * ``` * Электронная почта * ``` * * `string email = 2;` */ public fun clearEmail() { _builder.clearEmail() } /** * ``` * Электронная почта * ``` * * `string email = 2;` * @return Whether the email field is set. */ public fun hasEmail(): kotlin.Boolean { return _builder.hasEmail() } /** * ``` * Логин * ``` * * `string login = 3;` */ public var login: kotlin.String @JvmName("getLogin") get() = _builder.getLogin() @JvmName("setLogin") set(value) { _builder.setLogin(value) } /** * ``` * Логин * ``` * * `string login = 3;` */ public fun clearLogin() { _builder.clearLogin() } /** * ``` * Логин * ``` * * `string login = 3;` * @return Whether the login field is set. */ public fun hasLogin(): kotlin.Boolean { return _builder.hasLogin() } /** * ``` * Пароль * ``` * * `string password = 4 [(.google.api.field_behavior) = REQUIRED];` */ public var password: kotlin.String @JvmName("getPassword") get() = _builder.getPassword() @JvmName("setPassword") set(value) { _builder.setPassword(value) } /** * ``` * Пароль * ``` * * `string password = 4 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearPassword() { _builder.clearPassword() } /** * ``` * Ответ на капчу * ``` * * `.keyapis.identity.v1.CaptchaAnswer captcha_answer = 5 [(.google.api.field_behavior) = OPTIONAL];` */ public var captchaAnswer: ru.keyapis.identity.v1.KeyapisIdentityV1Proto.CaptchaAnswer @JvmName("getCaptchaAnswer") get() = _builder.getCaptchaAnswer() @JvmName("setCaptchaAnswer") set(value) { _builder.setCaptchaAnswer(value) } /** * ``` * Ответ на капчу * ``` * * `.keyapis.identity.v1.CaptchaAnswer captcha_answer = 5 [(.google.api.field_behavior) = OPTIONAL];` */ public fun clearCaptchaAnswer() { _builder.clearCaptchaAnswer() } /** * ``` * Ответ на капчу * ``` * * `.keyapis.identity.v1.CaptchaAnswer captcha_answer = 5 [(.google.api.field_behavior) = OPTIONAL];` * @return Whether the captchaAnswer field is set. */ public fun hasCaptchaAnswer(): kotlin.Boolean { return _builder.hasCaptchaAnswer() } public val typeCase: ru.keyapis.identity.v1.KeyapisIdentityV1Proto.PostAuthorizationLoginByPasswordRequest.TypeCase @JvmName("getTypeCase") get() = _builder.getTypeCase() public fun clearType() { _builder.clearType() } } } @kotlin.jvm.JvmSynthetic public inline fun ru.keyapis.identity.v1.KeyapisIdentityV1Proto.PostAuthorizationLoginByPasswordRequest.copy(block: ru.keyapis.identity.v1.PostAuthorizationLoginByPasswordRequestKt.Dsl.() -> kotlin.Unit): ru.keyapis.identity.v1.KeyapisIdentityV1Proto.PostAuthorizationLoginByPasswordRequest = ru.keyapis.identity.v1.PostAuthorizationLoginByPasswordRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() public val ru.keyapis.identity.v1.KeyapisIdentityV1Proto.PostAuthorizationLoginByPasswordRequestOrBuilder.captchaAnswerOrNull: ru.keyapis.identity.v1.KeyapisIdentityV1Proto.CaptchaAnswer? get() = if (hasCaptchaAnswer()) getCaptchaAnswer() else null