Value

interface Value(source)

Value represents a dynamically typed value which can be either null, a number, a string, a boolean, a recursive struct value, or a list of values. A producer of value is expected to set one of these variants. Absence of any variant indicates an error.

The JSON representation for Value is JSON value.

Types

Link copied to clipboard
sealed interface Kind

The kind of value.

Properties

Link copied to clipboard
abstract val kind: Value.Kind?

The kind of value.

Functions

Link copied to clipboard
fun Value.copy(body: ERROR CLASS: Symbol not found for Value.Builder.() -> Unit = {}): Value

Copies the original message, including unknown fields.