// Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/identity_b2b/v1/keyapis_identity_b2b_authorization_v1.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") package ru.keyapis.identity_b2b.v1; @kotlin.jvm.JvmName("-initializepostAuthorizationSendCodeRequest") public inline fun postAuthorizationSendCodeRequest(block: ru.keyapis.identity_b2b.v1.PostAuthorizationSendCodeRequestKt.Dsl.() -> kotlin.Unit): ru.keyapis.identity_b2b.v1.KeyapisIdentityB2bV1Proto.PostAuthorizationSendCodeRequest = ru.keyapis.identity_b2b.v1.PostAuthorizationSendCodeRequestKt.Dsl._create(ru.keyapis.identity_b2b.v1.KeyapisIdentityB2bV1Proto.PostAuthorizationSendCodeRequest.newBuilder()).apply { block() }._build() /** * ``` * Запрос на отправку ОТП-кода для B2B * ``` * * Protobuf type `keyapis.identity_b2b.v1.PostAuthorizationSendCodeRequest` */ public object PostAuthorizationSendCodeRequestKt { @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) @com.google.protobuf.kotlin.ProtoDslMarker public class Dsl private constructor( private val _builder: ru.keyapis.identity_b2b.v1.KeyapisIdentityB2bV1Proto.PostAuthorizationSendCodeRequest.Builder ) { public companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: ru.keyapis.identity_b2b.v1.KeyapisIdentityB2bV1Proto.PostAuthorizationSendCodeRequest.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): ru.keyapis.identity_b2b.v1.KeyapisIdentityB2bV1Proto.PostAuthorizationSendCodeRequest = _builder.build() /** * ``` * Ответ на капчу * ``` * * `.keyapis.identity_b2b.v1.CaptchaAnswer captcha_answer = 1;` */ public var captchaAnswer: ru.keyapis.identity_b2b.v1.KeyapisIdentityB2bV1Proto.CaptchaAnswer @JvmName("getCaptchaAnswer") get() = _builder.getCaptchaAnswer() @JvmName("setCaptchaAnswer") set(value) { _builder.setCaptchaAnswer(value) } /** * ``` * Ответ на капчу * ``` * * `.keyapis.identity_b2b.v1.CaptchaAnswer captcha_answer = 1;` */ public fun clearCaptchaAnswer() { _builder.clearCaptchaAnswer() } /** * ``` * Ответ на капчу * ``` * * `.keyapis.identity_b2b.v1.CaptchaAnswer captcha_answer = 1;` * @return Whether the captchaAnswer field is set. */ public fun hasCaptchaAnswer(): kotlin.Boolean { return _builder.hasCaptchaAnswer() } /** * ``` * Номер телефона * ``` * * `string phone_number = 2;` */ public var phoneNumber: kotlin.String @JvmName("getPhoneNumber") get() = _builder.getPhoneNumber() @JvmName("setPhoneNumber") set(value) { _builder.setPhoneNumber(value) } /** * ``` * Номер телефона * ``` * * `string phone_number = 2;` */ public fun clearPhoneNumber() { _builder.clearPhoneNumber() } /** * ``` * Номер телефона * ``` * * `string phone_number = 2;` * @return Whether the phoneNumber field is set. */ public fun hasPhoneNumber(): kotlin.Boolean { return _builder.hasPhoneNumber() } /** * ``` * Электронная почта * ``` * * `string email = 3;` */ public var email: kotlin.String @JvmName("getEmail") get() = _builder.getEmail() @JvmName("setEmail") set(value) { _builder.setEmail(value) } /** * ``` * Электронная почта * ``` * * `string email = 3;` */ public fun clearEmail() { _builder.clearEmail() } /** * ``` * Электронная почта * ``` * * `string email = 3;` * @return Whether the email field is set. */ public fun hasEmail(): kotlin.Boolean { return _builder.hasEmail() } public val otpTextCase: ru.keyapis.identity_b2b.v1.KeyapisIdentityB2bV1Proto.PostAuthorizationSendCodeRequest.OtpTextCase @JvmName("getOtpTextCase") get() = _builder.getOtpTextCase() public fun clearOtpText() { _builder.clearOtpText() } } } @kotlin.jvm.JvmSynthetic public inline fun ru.keyapis.identity_b2b.v1.KeyapisIdentityB2bV1Proto.PostAuthorizationSendCodeRequest.copy(block: ru.keyapis.identity_b2b.v1.PostAuthorizationSendCodeRequestKt.Dsl.() -> kotlin.Unit): ru.keyapis.identity_b2b.v1.KeyapisIdentityB2bV1Proto.PostAuthorizationSendCodeRequest = ru.keyapis.identity_b2b.v1.PostAuthorizationSendCodeRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() public val ru.keyapis.identity_b2b.v1.KeyapisIdentityB2bV1Proto.PostAuthorizationSendCodeRequestOrBuilder.captchaAnswerOrNull: ru.keyapis.identity_b2b.v1.KeyapisIdentityB2bV1Proto.CaptchaAnswer? get() = if (hasCaptchaAnswer()) getCaptchaAnswer() else null