Scalar

sealed class Scalar<T>

The Scalar class represents a scalar value that can have different data types.

Parameters

The type parameter specifying the data type of the scalar value. It contains types corresponding to ProtoBuf types that ProtoBuf considers to be "Scalar Value Types", even though some of them arguably do not conform to other definitions of what a scalar is. Source: https://developers.google.com/protocol-buffers/docs/overview#scalar

Inheritors

Types

Link copied to clipboard
data class BoolValue(val value: Boolean) : Scalar<Boolean>
Link copied to clipboard
data class BytesValue(val value: ByteString) : Scalar<ByteString>
Link copied to clipboard
data class DoubleValue(val value: Double) : Scalar<Double>
Link copied to clipboard
data class SInt64Value(val value: Long) : Scalar<Long>
Link copied to clipboard
data class StringValue(val value: String) : Scalar<String>

Properties

Link copied to clipboard
abstract val value: T