// 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("-initializepostAuthorizationSendCodeResponse") public inline fun postAuthorizationSendCodeResponse(block: ru.keyapis.identity_b2b.v1.PostAuthorizationSendCodeResponseKt.Dsl.() -> kotlin.Unit): ru.keyapis.identity_b2b.v1.KeyapisIdentityB2bV1Proto.PostAuthorizationSendCodeResponse = ru.keyapis.identity_b2b.v1.PostAuthorizationSendCodeResponseKt.Dsl._create(ru.keyapis.identity_b2b.v1.KeyapisIdentityB2bV1Proto.PostAuthorizationSendCodeResponse.newBuilder()).apply { block() }._build() /** * ``` * Ответ на запрос на отправку ОТП-кода для B2B * ``` * * Protobuf type `keyapis.identity_b2b.v1.PostAuthorizationSendCodeResponse` */ public object PostAuthorizationSendCodeResponseKt { @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.PostAuthorizationSendCodeResponse.Builder ) { public companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: ru.keyapis.identity_b2b.v1.KeyapisIdentityB2bV1Proto.PostAuthorizationSendCodeResponse.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): ru.keyapis.identity_b2b.v1.KeyapisIdentityB2bV1Proto.PostAuthorizationSendCodeResponse = _builder.build() /** * ``` * Ошибка * ``` * * `.keyapis.identity_b2b.v1.PostAuthorizationSendCodeResponse.Error error = 1;` */ public var error: ru.keyapis.identity_b2b.v1.KeyapisIdentityB2bV1Proto.PostAuthorizationSendCodeResponse.Error @JvmName("getError") get() = _builder.getError() @JvmName("setError") set(value) { _builder.setError(value) } /** * ``` * Ошибка * ``` * * `.keyapis.identity_b2b.v1.PostAuthorizationSendCodeResponse.Error error = 1;` */ public fun clearError() { _builder.clearError() } /** * ``` * Ошибка * ``` * * `.keyapis.identity_b2b.v1.PostAuthorizationSendCodeResponse.Error error = 1;` * @return Whether the error field is set. */ public fun hasError(): kotlin.Boolean { return _builder.hasError() } /** * ``` * Информация об ОТП-коде * ``` * * `.keyapis.identity_b2b.v1.OtpCode data = 2;` */ public var data: ru.keyapis.identity_b2b.v1.KeyapisIdentityB2bV1Proto.OtpCode @JvmName("getData") get() = _builder.getData() @JvmName("setData") set(value) { _builder.setData(value) } /** * ``` * Информация об ОТП-коде * ``` * * `.keyapis.identity_b2b.v1.OtpCode data = 2;` */ public fun clearData() { _builder.clearData() } /** * ``` * Информация об ОТП-коде * ``` * * `.keyapis.identity_b2b.v1.OtpCode data = 2;` * @return Whether the data field is set. */ public fun hasData(): kotlin.Boolean { return _builder.hasData() } public val typeCase: ru.keyapis.identity_b2b.v1.KeyapisIdentityB2bV1Proto.PostAuthorizationSendCodeResponse.TypeCase @JvmName("getTypeCase") get() = _builder.getTypeCase() public fun clearType() { _builder.clearType() } } @kotlin.jvm.JvmName("-initializeerror") public inline fun error(block: ru.keyapis.identity_b2b.v1.PostAuthorizationSendCodeResponseKt.ErrorKt.Dsl.() -> kotlin.Unit): ru.keyapis.identity_b2b.v1.KeyapisIdentityB2bV1Proto.PostAuthorizationSendCodeResponse.Error = ru.keyapis.identity_b2b.v1.PostAuthorizationSendCodeResponseKt.ErrorKt.Dsl._create(ru.keyapis.identity_b2b.v1.KeyapisIdentityB2bV1Proto.PostAuthorizationSendCodeResponse.Error.newBuilder()).apply { block() }._build() /** * ``` * Ошибка запроса на отправку ОТП-кода * ``` * * Protobuf type `keyapis.identity_b2b.v1.PostAuthorizationSendCodeResponse.Error` */ public object ErrorKt { @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.PostAuthorizationSendCodeResponse.Error.Builder ) { public companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: ru.keyapis.identity_b2b.v1.KeyapisIdentityB2bV1Proto.PostAuthorizationSendCodeResponse.Error.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): ru.keyapis.identity_b2b.v1.KeyapisIdentityB2bV1Proto.PostAuthorizationSendCodeResponse.Error = _builder.build() /** * ``` * Ошибка ответа с капчей * ``` * * `.keyapis.identity_b2b.v1.CaptchaAnswer.Error captcha_answer = 1;` */ public var captchaAnswer: ru.keyapis.identity_b2b.v1.KeyapisIdentityB2bV1Proto.CaptchaAnswer.Error @JvmName("getCaptchaAnswer") get() = _builder.getCaptchaAnswer() @JvmName("setCaptchaAnswer") set(value) { _builder.setCaptchaAnswer(value) } /** * ``` * Ошибка ответа с капчей * ``` * * `.keyapis.identity_b2b.v1.CaptchaAnswer.Error captcha_answer = 1;` */ public fun clearCaptchaAnswer() { _builder.clearCaptchaAnswer() } /** * ``` * Ошибка ответа с капчей * ``` * * `.keyapis.identity_b2b.v1.CaptchaAnswer.Error captcha_answer = 1;` * @return Whether the captchaAnswer field is set. */ public fun hasCaptchaAnswer(): kotlin.Boolean { return _builder.hasCaptchaAnswer() } /** * ``` * Ошибка из ССО * ``` * * `.keyapis.identity_b2b.v1.SsoError sso = 2;` */ public var sso: ru.keyapis.identity_b2b.v1.KeyapisIdentityB2bV1Proto.SsoError @JvmName("getSso") get() = _builder.getSso() @JvmName("setSso") set(value) { _builder.setSso(value) } /** * ``` * Ошибка из ССО * ``` * * `.keyapis.identity_b2b.v1.SsoError sso = 2;` */ public fun clearSso() { _builder.clearSso() } /** * ``` * Ошибка из ССО * ``` * * `.keyapis.identity_b2b.v1.SsoError sso = 2;` * @return Whether the sso field is set. */ public fun hasSso(): kotlin.Boolean { return _builder.hasSso() } public val reasonCase: ru.keyapis.identity_b2b.v1.KeyapisIdentityB2bV1Proto.PostAuthorizationSendCodeResponse.Error.ReasonCase @JvmName("getReasonCase") get() = _builder.getReasonCase() public fun clearReason() { _builder.clearReason() } } } } @kotlin.jvm.JvmSynthetic public inline fun ru.keyapis.identity_b2b.v1.KeyapisIdentityB2bV1Proto.PostAuthorizationSendCodeResponse.copy(block: ru.keyapis.identity_b2b.v1.PostAuthorizationSendCodeResponseKt.Dsl.() -> kotlin.Unit): ru.keyapis.identity_b2b.v1.KeyapisIdentityB2bV1Proto.PostAuthorizationSendCodeResponse = ru.keyapis.identity_b2b.v1.PostAuthorizationSendCodeResponseKt.Dsl._create(this.toBuilder()).apply { block() }._build() @kotlin.jvm.JvmSynthetic public inline fun ru.keyapis.identity_b2b.v1.KeyapisIdentityB2bV1Proto.PostAuthorizationSendCodeResponse.Error.copy(block: ru.keyapis.identity_b2b.v1.PostAuthorizationSendCodeResponseKt.ErrorKt.Dsl.() -> kotlin.Unit): ru.keyapis.identity_b2b.v1.KeyapisIdentityB2bV1Proto.PostAuthorizationSendCodeResponse.Error = ru.keyapis.identity_b2b.v1.PostAuthorizationSendCodeResponseKt.ErrorKt.Dsl._create(this.toBuilder()).apply { block() }._build() public val ru.keyapis.identity_b2b.v1.KeyapisIdentityB2bV1Proto.PostAuthorizationSendCodeResponse.ErrorOrBuilder.captchaAnswerOrNull: ru.keyapis.identity_b2b.v1.KeyapisIdentityB2bV1Proto.CaptchaAnswer.Error? get() = if (hasCaptchaAnswer()) getCaptchaAnswer() else null public val ru.keyapis.identity_b2b.v1.KeyapisIdentityB2bV1Proto.PostAuthorizationSendCodeResponse.ErrorOrBuilder.ssoOrNull: ru.keyapis.identity_b2b.v1.KeyapisIdentityB2bV1Proto.SsoError? get() = if (hasSso()) getSso() else null public val ru.keyapis.identity_b2b.v1.KeyapisIdentityB2bV1Proto.PostAuthorizationSendCodeResponseOrBuilder.errorOrNull: ru.keyapis.identity_b2b.v1.KeyapisIdentityB2bV1Proto.PostAuthorizationSendCodeResponse.Error? get() = if (hasError()) getError() else null public val ru.keyapis.identity_b2b.v1.KeyapisIdentityB2bV1Proto.PostAuthorizationSendCodeResponseOrBuilder.dataOrNull: ru.keyapis.identity_b2b.v1.KeyapisIdentityB2bV1Proto.OtpCode? get() = if (hasData()) getData() else null