// Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/bell/v1/keyapis_bell_notification_v1.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") package ru.keyapis.bell.v1; @kotlin.jvm.JvmName("-initializenotification") public inline fun notification(block: ru.keyapis.bell.v1.NotificationKt.Dsl.() -> kotlin.Unit): ru.keyapis.bell.v1.KeyapisBellV1Proto.Notification = ru.keyapis.bell.v1.NotificationKt.Dsl._create(ru.keyapis.bell.v1.KeyapisBellV1Proto.Notification.newBuilder()).apply { block() }._build() /** * ``` * Уведомление. * # Описание модели * ``` * * Protobuf type `keyapis.bell.v1.Notification` */ public object NotificationKt { @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) @com.google.protobuf.kotlin.ProtoDslMarker public class Dsl private constructor( private val _builder: ru.keyapis.bell.v1.KeyapisBellV1Proto.Notification.Builder ) { public companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: ru.keyapis.bell.v1.KeyapisBellV1Proto.Notification.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): ru.keyapis.bell.v1.KeyapisBellV1Proto.Notification = _builder.build() /** * ``` * Идентификатор. * Создаётся сервером. * # Тип: Guid * ``` * * `string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];` */ public var id: kotlin.String @JvmName("getId") get() = _builder.getId() @JvmName("setId") set(value) { _builder.setId(value) } /** * ``` * Идентификатор. * Создаётся сервером. * # Тип: Guid * ``` * * `string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];` */ public fun clearId() { _builder.clearId() } /** * ``` * ОРПОН. * # Диапазон 1..9223372036854775807 * ``` * * `int64 orpon = 2 [(.google.api.field_behavior) = REQUIRED];` */ public var orpon: kotlin.Long @JvmName("getOrpon") get() = _builder.getOrpon() @JvmName("setOrpon") set(value) { _builder.setOrpon(value) } /** * ``` * ОРПОН. * # Диапазон 1..9223372036854775807 * ``` * * `int64 orpon = 2 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearOrpon() { _builder.clearOrpon() } /** * ``` * Наименование приложения-отправителя. * # Диапазон: 3..256 * ``` * * `.google.protobuf.StringValue app_title = 3;` */ public var appTitle: com.google.protobuf.StringValue @JvmName("getAppTitle") get() = _builder.getAppTitle() @JvmName("setAppTitle") set(value) { _builder.setAppTitle(value) } /** * ``` * Наименование приложения-отправителя. * # Диапазон: 3..256 * ``` * * `.google.protobuf.StringValue app_title = 3;` */ public fun clearAppTitle() { _builder.clearAppTitle() } /** * ``` * Наименование приложения-отправителя. * # Диапазон: 3..256 * ``` * * `.google.protobuf.StringValue app_title = 3;` * @return Whether the appTitle field is set. */ public fun hasAppTitle(): kotlin.Boolean { return _builder.hasAppTitle() } /** * ``` * Номер квартиры. * # Диапазон: 1..4 * ``` * * `string room_number = 4 [(.google.api.field_behavior) = REQUIRED];` */ public var roomNumber: kotlin.String @JvmName("getRoomNumber") get() = _builder.getRoomNumber() @JvmName("setRoomNumber") set(value) { _builder.setRoomNumber(value) } /** * ``` * Номер квартиры. * # Диапазон: 1..4 * ``` * * `string room_number = 4 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearRoomNumber() { _builder.clearRoomNumber() } /** * ``` * Заголовок. * # Диапазон: 3..128 * ``` * * `string header = 5 [(.google.api.field_behavior) = REQUIRED];` */ public var header: kotlin.String @JvmName("getHeader") get() = _builder.getHeader() @JvmName("setHeader") set(value) { _builder.setHeader(value) } /** * ``` * Заголовок. * # Диапазон: 3..128 * ``` * * `string header = 5 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearHeader() { _builder.clearHeader() } /** * ``` * Тело. * # Диапазон: 3..256 * ``` * * `string text = 6 [(.google.api.field_behavior) = REQUIRED];` */ public var text: kotlin.String @JvmName("getText") get() = _builder.getText() @JvmName("setText") set(value) { _builder.setText(value) } /** * ``` * Тело. * # Диапазон: 3..256 * ``` * * `string text = 6 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearText() { _builder.clearText() } /** * ``` * Статус * ``` * * `.keyapis.bell.v1.Notification.StatusType status_type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];` */ public var statusType: ru.keyapis.bell.v1.KeyapisBellV1Proto.Notification.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.bell.v1.Notification.StatusType status_type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];` */ public fun clearStatusType() { _builder.clearStatusType() } /** * ``` * Дата создания. * # Тип: DateTime * ``` * * `.google.protobuf.Timestamp created_at = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];` */ public var createdAt: com.google.protobuf.Timestamp @JvmName("getCreatedAt") get() = _builder.getCreatedAt() @JvmName("setCreatedAt") set(value) { _builder.setCreatedAt(value) } /** * ``` * Дата создания. * # Тип: DateTime * ``` * * `.google.protobuf.Timestamp created_at = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];` */ public fun clearCreatedAt() { _builder.clearCreatedAt() } /** * ``` * Дата создания. * # Тип: DateTime * ``` * * `.google.protobuf.Timestamp created_at = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];` * @return Whether the createdAt field is set. */ public fun hasCreatedAt(): kotlin.Boolean { return _builder.hasCreatedAt() } /** * ``` * Дата последнего изменения статуса. * Заполняется и обновляется сервером. * # Тип: DateTime * ``` * * `.google.protobuf.Timestamp status_changed_at = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];` */ public var statusChangedAt: com.google.protobuf.Timestamp @JvmName("getStatusChangedAt") get() = _builder.getStatusChangedAt() @JvmName("setStatusChangedAt") set(value) { _builder.setStatusChangedAt(value) } /** * ``` * Дата последнего изменения статуса. * Заполняется и обновляется сервером. * # Тип: DateTime * ``` * * `.google.protobuf.Timestamp status_changed_at = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];` */ public fun clearStatusChangedAt() { _builder.clearStatusChangedAt() } /** * ``` * Дата последнего изменения статуса. * Заполняется и обновляется сервером. * # Тип: DateTime * ``` * * `.google.protobuf.Timestamp status_changed_at = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];` * @return Whether the statusChangedAt field is set. */ public fun hasStatusChangedAt(): kotlin.Boolean { return _builder.hasStatusChangedAt() } /** * An uninstantiable, behaviorless type to represent the field in * generics. */ @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) public class PayloadProxy private constructor() : com.google.protobuf.kotlin.DslProxy() /** * ``` * Полезная нагрузка * ``` * * `map payload = 10;` */ public val payload: com.google.protobuf.kotlin.DslMap @kotlin.jvm.JvmSynthetic @JvmName("getPayloadMap") get() = com.google.protobuf.kotlin.DslMap( _builder.getPayloadMap() ) /** * ``` * Полезная нагрузка * ``` * * `map payload = 10;` */ @JvmName("putPayload") public fun com.google.protobuf.kotlin.DslMap .put(key: kotlin.String, value: kotlin.String) { _builder.putPayload(key, value) } /** * ``` * Полезная нагрузка * ``` * * `map payload = 10;` */ @kotlin.jvm.JvmSynthetic @JvmName("setPayload") @Suppress("NOTHING_TO_INLINE") public inline operator fun com.google.protobuf.kotlin.DslMap .set(key: kotlin.String, value: kotlin.String) { put(key, value) } /** * ``` * Полезная нагрузка * ``` * * `map payload = 10;` */ @kotlin.jvm.JvmSynthetic @JvmName("removePayload") public fun com.google.protobuf.kotlin.DslMap .remove(key: kotlin.String) { _builder.removePayload(key) } /** * ``` * Полезная нагрузка * ``` * * `map payload = 10;` */ @kotlin.jvm.JvmSynthetic @JvmName("putAllPayload") public fun com.google.protobuf.kotlin.DslMap .putAll(map: kotlin.collections.Map) { _builder.putAllPayload(map) } /** * ``` * Полезная нагрузка * ``` * * `map payload = 10;` */ @kotlin.jvm.JvmSynthetic @JvmName("clearPayload") public fun com.google.protobuf.kotlin.DslMap .clear() { _builder.clearPayload() } } } @kotlin.jvm.JvmSynthetic public inline fun ru.keyapis.bell.v1.KeyapisBellV1Proto.Notification.copy(block: ru.keyapis.bell.v1.NotificationKt.Dsl.() -> kotlin.Unit): ru.keyapis.bell.v1.KeyapisBellV1Proto.Notification = ru.keyapis.bell.v1.NotificationKt.Dsl._create(this.toBuilder()).apply { block() }._build() public val ru.keyapis.bell.v1.KeyapisBellV1Proto.NotificationOrBuilder.appTitleOrNull: com.google.protobuf.StringValue? get() = if (hasAppTitle()) getAppTitle() else null public val ru.keyapis.bell.v1.KeyapisBellV1Proto.NotificationOrBuilder.createdAtOrNull: com.google.protobuf.Timestamp? get() = if (hasCreatedAt()) getCreatedAt() else null public val ru.keyapis.bell.v1.KeyapisBellV1Proto.NotificationOrBuilder.statusChangedAtOrNull: com.google.protobuf.Timestamp? get() = if (hasStatusChangedAt()) getStatusChangedAt() else null