// Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/device/v1/keyapis_device_device_v1.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") package ru.keyapis.device.v1; @kotlin.jvm.JvmName("-initializecameraStatus") public inline fun cameraStatus(block: ru.keyapis.device.v1.CameraStatusKt.Dsl.() -> kotlin.Unit): ru.keyapis.device.v1.KeyapisDeviceV1Proto.CameraStatus = ru.keyapis.device.v1.CameraStatusKt.Dsl._create(ru.keyapis.device.v1.KeyapisDeviceV1Proto.CameraStatus.newBuilder()).apply { block() }._build() /** * ``` * Статус камеры. * # Описание модели * ``` * * Protobuf type `keyapis.device.v1.CameraStatus` */ public object CameraStatusKt { @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) @com.google.protobuf.kotlin.ProtoDslMarker public class Dsl private constructor( private val _builder: ru.keyapis.device.v1.KeyapisDeviceV1Proto.CameraStatus.Builder ) { public companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: ru.keyapis.device.v1.KeyapisDeviceV1Proto.CameraStatus.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): ru.keyapis.device.v1.KeyapisDeviceV1Proto.CameraStatus = _builder.build() /** * ``` * Идентификатор камеры uid. * # Тип: Guid * ``` * * `.google.protobuf.StringValue id = 1;` */ public var id: com.google.protobuf.StringValue @JvmName("getId") get() = _builder.getId() @JvmName("setId") set(value) { _builder.setId(value) } /** * ``` * Идентификатор камеры uid. * # Тип: Guid * ``` * * `.google.protobuf.StringValue id = 1;` */ public fun clearId() { _builder.clearId() } /** * ``` * Идентификатор камеры uid. * # Тип: Guid * ``` * * `.google.protobuf.StringValue id = 1;` * @return Whether the id field is set. */ public fun hasId(): kotlin.Boolean { return _builder.hasId() } /** * ``` * Статус камеры * ``` * * `.keyapis.device.v1.CameraStatus.StatusType status_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];` */ public var statusType: ru.keyapis.device.v1.KeyapisDeviceV1Proto.CameraStatus.StatusType @JvmName("getStatusType") get() = _builder.getStatusType() @JvmName("setStatusType") set(value) { _builder.setStatusType(value) } public var statusTypeValue: kotlin.Int @JvmName("getStatusTypeValue") get() = _builder.getStatusTypeValue() @JvmName("setStatusTypeValue") set(value) { _builder.setStatusTypeValue(value) } /** * ``` * Статус камеры * ``` * * `.keyapis.device.v1.CameraStatus.StatusType status_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];` */ public fun clearStatusType() { _builder.clearStatusType() } /** * ``` * Сообщение об ошибке * ``` * * `string error_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];` */ public var errorMessage: kotlin.String @JvmName("getErrorMessage") get() = _builder.getErrorMessage() @JvmName("setErrorMessage") set(value) { _builder.setErrorMessage(value) } /** * ``` * Сообщение об ошибке * ``` * * `string error_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];` */ public fun clearErrorMessage() { _builder.clearErrorMessage() } } } @kotlin.jvm.JvmSynthetic public inline fun ru.keyapis.device.v1.KeyapisDeviceV1Proto.CameraStatus.copy(block: ru.keyapis.device.v1.CameraStatusKt.Dsl.() -> kotlin.Unit): ru.keyapis.device.v1.KeyapisDeviceV1Proto.CameraStatus = ru.keyapis.device.v1.CameraStatusKt.Dsl._create(this.toBuilder()).apply { block() }._build() public val ru.keyapis.device.v1.KeyapisDeviceV1Proto.CameraStatusOrBuilder.idOrNull: com.google.protobuf.StringValue? get() = if (hasId()) getId() else null