Files
openide/platform/remoteDev-util/modelGenerated/DistributedTestBridgeModel.Generated.kt
Leonid Shalupov 3466aaeb50 rdgen: rework and simplify models generator gradle structure
GitOrigin-RevId: b8cb054c7d58f33c3f7e7213a23a90ab5e79e008
2024-04-26 03:14:35 +00:00

105 lines
3.5 KiB
Kotlin

@file:Suppress("EXPERIMENTAL_API_USAGE","EXPERIMENTAL_UNSIGNED_LITERALS","PackageDirectoryMismatch","UnusedImport","unused","LocalVariableName","CanBeVal","PropertyName","EnumEntryName","ClassName","ObjectPropertyName","UnnecessaryVariable","SpellCheckingInspection")
package com.intellij.remoteDev.tests.modelGenerated
import com.jetbrains.rd.framework.*
import com.jetbrains.rd.framework.base.*
import com.jetbrains.rd.framework.impl.*
import com.jetbrains.rd.util.lifetime.*
import com.jetbrains.rd.util.reactive.*
import com.jetbrains.rd.util.string.*
import com.jetbrains.rd.util.*
import kotlin.time.Duration
import kotlin.reflect.KClass
import kotlin.jvm.JvmStatic
/**
* #### Generated from [DistributedTestBridgeModel.kt]
*/
class DistributedTestBridgeModel private constructor(
private val _syncCall: RdCall<Unit, Unit>,
private val _sendMessage: RdSignal<String>
) : RdExtBase() {
//companion
companion object : ISerializersOwner {
override fun registerSerializersCore(serializers: ISerializers) {
}
@JvmStatic
@JvmName("internalCreateModel")
@Deprecated("Use create instead", ReplaceWith("create(lifetime, protocol)"))
internal fun createModel(lifetime: Lifetime, protocol: IProtocol): DistributedTestBridgeModel {
@Suppress("DEPRECATION")
return create(lifetime, protocol)
}
@JvmStatic
@Deprecated("Use protocol.distributedTestBridgeModel or revise the extension scope instead", ReplaceWith("protocol.distributedTestBridgeModel"))
fun create(lifetime: Lifetime, protocol: IProtocol): DistributedTestBridgeModel {
TestRoot.register(protocol.serializers)
return DistributedTestBridgeModel()
}
const val serializationHash = 3736242864823673959L
}
override val serializersOwner: ISerializersOwner get() = DistributedTestBridgeModel
override val serializationHash: Long get() = DistributedTestBridgeModel.serializationHash
//fields
val syncCall: RdCall<Unit, Unit> get() = _syncCall
/**
* Send message between peers
*/
val sendMessage: ISignal<String> get() = _sendMessage
//methods
//initializer
init {
_syncCall.async = true
}
init {
bindableChildren.add("syncCall" to _syncCall)
bindableChildren.add("sendMessage" to _sendMessage)
}
//secondary constructor
private constructor(
) : this(
RdCall<Unit, Unit>(FrameworkMarshallers.Void, FrameworkMarshallers.Void),
RdSignal<String>(FrameworkMarshallers.String)
)
//equals trait
//hash code trait
//pretty print
override fun print(printer: PrettyPrinter) {
printer.println("DistributedTestBridgeModel (")
printer.indent {
print("syncCall = "); _syncCall.print(printer); println()
print("sendMessage = "); _sendMessage.print(printer); println()
}
printer.print(")")
}
//deepClone
override fun deepClone(): DistributedTestBridgeModel {
return DistributedTestBridgeModel(
_syncCall.deepClonePolymorphic(),
_sendMessage.deepClonePolymorphic()
)
}
//contexts
//threading
override val extThreading: ExtThreadingKind get() = ExtThreadingKind.Default
}
val IProtocol.distributedTestBridgeModel get() = getOrCreateExtension(DistributedTestBridgeModel::class) { @Suppress("DEPRECATION") DistributedTestBridgeModel.create(lifetime, this) }