All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.wavebeans.execution.distributed.proto.DoubleProtoValue.kt Maven / Gradle / Ivy

package io.wavebeans.execution.distributed.proto

import kotlinx.serialization.Serializable
import kotlinx.serialization.protobuf.ProtoNumber

fun Double?.toProtoValue() = DoubleProtoValue(this == null, this ?: Double.MIN_VALUE)

@Serializable
data class DoubleProtoValue(
        @ProtoNumber(1)
        override val isNull: Boolean,
        @ProtoNumber(2)
        override val value: Double
) : ProtoValue





© 2015 - 2024 Weber Informatics LLC | Privacy Policy