// 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("-initializepostNotificationRequest") public inline fun postNotificationRequest(block: ru.keyapis.bell.v1.PostNotificationRequestKt.Dsl.() -> kotlin.Unit): ru.keyapis.bell.v1.KeyapisBellV1Proto.PostNotificationRequest = ru.keyapis.bell.v1.PostNotificationRequestKt.Dsl._create(ru.keyapis.bell.v1.KeyapisBellV1Proto.PostNotificationRequest.newBuilder()).apply { block() }._build() /** * ``` * Запрос сохранения уведомления * ``` * * Protobuf type `keyapis.bell.v1.PostNotificationRequest` */ public object PostNotificationRequestKt { @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.PostNotificationRequest.Builder ) { public companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: ru.keyapis.bell.v1.KeyapisBellV1Proto.PostNotificationRequest.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): ru.keyapis.bell.v1.KeyapisBellV1Proto.PostNotificationRequest = _builder.build() /** * ``` * Уведомление * ``` * * `.keyapis.bell.v1.Notification data = 1 [(.google.api.field_behavior) = REQUIRED];` */ public var data: ru.keyapis.bell.v1.KeyapisBellV1Proto.Notification @JvmName("getData") get() = _builder.getData() @JvmName("setData") set(value) { _builder.setData(value) } /** * ``` * Уведомление * ``` * * `.keyapis.bell.v1.Notification data = 1 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearData() { _builder.clearData() } /** * ``` * Уведомление * ``` * * `.keyapis.bell.v1.Notification data = 1 [(.google.api.field_behavior) = REQUIRED];` * @return Whether the data field is set. */ public fun hasData(): kotlin.Boolean { return _builder.hasData() } } } @kotlin.jvm.JvmSynthetic public inline fun ru.keyapis.bell.v1.KeyapisBellV1Proto.PostNotificationRequest.copy(block: ru.keyapis.bell.v1.PostNotificationRequestKt.Dsl.() -> kotlin.Unit): ru.keyapis.bell.v1.KeyapisBellV1Proto.PostNotificationRequest = ru.keyapis.bell.v1.PostNotificationRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() public val ru.keyapis.bell.v1.KeyapisBellV1Proto.PostNotificationRequestOrBuilder.dataOrNull: ru.keyapis.bell.v1.KeyapisBellV1Proto.Notification? get() = if (hasData()) getData() else null