// 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("-initializesyncStatus") public inline fun syncStatus(block: ru.keyapis.device.v1.SyncStatusKt.Dsl.() -> kotlin.Unit): ru.keyapis.device.v1.KeyapisDeviceV1Proto.SyncStatus = ru.keyapis.device.v1.SyncStatusKt.Dsl._create(ru.keyapis.device.v1.KeyapisDeviceV1Proto.SyncStatus.newBuilder()).apply { block() }._build() /** * ``` * Статус синхронизации. * # Описание модели * ``` * * Protobuf type `keyapis.device.v1.SyncStatus` */ public object SyncStatusKt { @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.SyncStatus.Builder ) { public companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: ru.keyapis.device.v1.KeyapisDeviceV1Proto.SyncStatus.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): ru.keyapis.device.v1.KeyapisDeviceV1Proto.SyncStatus = _builder.build() /** * ``` * Статус синхронизации * ``` * * `.keyapis.device.v1.SyncStatus.StatusType status_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];` */ public var statusType: ru.keyapis.device.v1.KeyapisDeviceV1Proto.SyncStatus.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.SyncStatus.StatusType status_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];` */ public fun clearStatusType() { _builder.clearStatusType() } /** * ``` * Сообщение об ошибке * ``` * * `string error_message = 2 [(.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 = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];` */ public fun clearErrorMessage() { _builder.clearErrorMessage() } /** * ``` * Количество попыток * ``` * * `int32 retry_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];` */ public var retryCount: kotlin.Int @JvmName("getRetryCount") get() = _builder.getRetryCount() @JvmName("setRetryCount") set(value) { _builder.setRetryCount(value) } /** * ``` * Количество попыток * ``` * * `int32 retry_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];` */ public fun clearRetryCount() { _builder.clearRetryCount() } /** * ``` * Дата последней успешной синхронизации. * # Тип: DateTime * ``` * * `.google.protobuf.Timestamp successful_at = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];` */ public var successfulAt: com.google.protobuf.Timestamp @JvmName("getSuccessfulAt") get() = _builder.getSuccessfulAt() @JvmName("setSuccessfulAt") set(value) { _builder.setSuccessfulAt(value) } /** * ``` * Дата последней успешной синхронизации. * # Тип: DateTime * ``` * * `.google.protobuf.Timestamp successful_at = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];` */ public fun clearSuccessfulAt() { _builder.clearSuccessfulAt() } /** * ``` * Дата последней успешной синхронизации. * # Тип: DateTime * ``` * * `.google.protobuf.Timestamp successful_at = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];` * @return Whether the successfulAt field is set. */ public fun hasSuccessfulAt(): kotlin.Boolean { return _builder.hasSuccessfulAt() } /** * ``` * Дата последней синхронизации. * # Тип: DateTime * ``` * * `.google.protobuf.Timestamp sync_at = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];` */ public var syncAt: com.google.protobuf.Timestamp @JvmName("getSyncAt") get() = _builder.getSyncAt() @JvmName("setSyncAt") set(value) { _builder.setSyncAt(value) } /** * ``` * Дата последней синхронизации. * # Тип: DateTime * ``` * * `.google.protobuf.Timestamp sync_at = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];` */ public fun clearSyncAt() { _builder.clearSyncAt() } /** * ``` * Дата последней синхронизации. * # Тип: DateTime * ``` * * `.google.protobuf.Timestamp sync_at = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];` * @return Whether the syncAt field is set. */ public fun hasSyncAt(): kotlin.Boolean { return _builder.hasSyncAt() } } } @kotlin.jvm.JvmSynthetic public inline fun ru.keyapis.device.v1.KeyapisDeviceV1Proto.SyncStatus.copy(block: ru.keyapis.device.v1.SyncStatusKt.Dsl.() -> kotlin.Unit): ru.keyapis.device.v1.KeyapisDeviceV1Proto.SyncStatus = ru.keyapis.device.v1.SyncStatusKt.Dsl._create(this.toBuilder()).apply { block() }._build() public val ru.keyapis.device.v1.KeyapisDeviceV1Proto.SyncStatusOrBuilder.successfulAtOrNull: com.google.protobuf.Timestamp? get() = if (hasSuccessfulAt()) getSuccessfulAt() else null public val ru.keyapis.device.v1.KeyapisDeviceV1Proto.SyncStatusOrBuilder.syncAtOrNull: com.google.protobuf.Timestamp? get() = if (hasSyncAt()) getSyncAt() else null