// 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("-initializepostAuthorizationSendCodeRequest") public inline fun postAuthorizationSendCodeRequest(block: ru.keyapis.identity.v1.PostAuthorizationSendCodeRequestKt.Dsl.() -> kotlin.Unit): ru.keyapis.identity.v1.KeyapisIdentityV1Proto.PostAuthorizationSendCodeRequest = ru.keyapis.identity.v1.PostAuthorizationSendCodeRequestKt.Dsl._create(ru.keyapis.identity.v1.KeyapisIdentityV1Proto.PostAuthorizationSendCodeRequest.newBuilder()).apply { block() }._build() /** * ``` * Запрос на отправку ОТП-кода * ``` * * Protobuf type `keyapis.identity.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.v1.KeyapisIdentityV1Proto.PostAuthorizationSendCodeRequest.Builder ) { public companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: ru.keyapis.identity.v1.KeyapisIdentityV1Proto.PostAuthorizationSendCodeRequest.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): ru.keyapis.identity.v1.KeyapisIdentityV1Proto.PostAuthorizationSendCodeRequest = _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() } /** * ``` * Ответ на капчу * ``` * * `.keyapis.identity.v1.CaptchaAnswer captcha_answer = 2 [(.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 = 2 [(.google.api.field_behavior) = OPTIONAL];` */ public fun clearCaptchaAnswer() { _builder.clearCaptchaAnswer() } /** * ``` * Ответ на капчу * ``` * * `.keyapis.identity.v1.CaptchaAnswer captcha_answer = 2 [(.google.api.field_behavior) = OPTIONAL];` * @return Whether the captchaAnswer field is set. */ public fun hasCaptchaAnswer(): kotlin.Boolean { return _builder.hasCaptchaAnswer() } public val otpTextCase: ru.keyapis.identity.v1.KeyapisIdentityV1Proto.PostAuthorizationSendCodeRequest.OtpTextCase @JvmName("getOtpTextCase") get() = _builder.getOtpTextCase() public fun clearOtpText() { _builder.clearOtpText() } } } @kotlin.jvm.JvmSynthetic public inline fun ru.keyapis.identity.v1.KeyapisIdentityV1Proto.PostAuthorizationSendCodeRequest.copy(block: ru.keyapis.identity.v1.PostAuthorizationSendCodeRequestKt.Dsl.() -> kotlin.Unit): ru.keyapis.identity.v1.KeyapisIdentityV1Proto.PostAuthorizationSendCodeRequest = ru.keyapis.identity.v1.PostAuthorizationSendCodeRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() public val ru.keyapis.identity.v1.KeyapisIdentityV1Proto.PostAuthorizationSendCodeRequestOrBuilder.captchaAnswerOrNull: ru.keyapis.identity.v1.KeyapisIdentityV1Proto.CaptchaAnswer? get() = if (hasCaptchaAnswer()) getCaptchaAnswer() else null