Package-level declarations

Protocol buffers serialization format implementation.

Types

Link copied to clipboard

Implements encoding and decoding classes to/from bytes using Protocol buffers specification. It is typically used by constructing an application-specific instance, with configured specific behavior and, if necessary, registered custom serializers (in SerializersModule provided by serializersModule constructor parameter). Default encoding is proto2, although proto3 can be used with a number of tweaks (see the section below for details).

Link copied to clipboard

Builder of the ProtoBuf instance provided by ProtoBuf factory function.

Link copied to clipboard

Represents a number format in protobuf encoding set by ProtoType annotation.

Link copied to clipboard

Specifies protobuf field number (a unique number for a field in the protobuf message) assigned to a Kotlin property.

Link copied to clipboard

Instructs that a particular collection should be written as a packed array.

Link copied to clipboard

Instructs to use a particular ProtoIntegerType for a property of integer number type. Affect Byte, Short, Int, Long and Char properties and does not affect others.

Functions

Link copied to clipboard
fun ProtoBuf(from: ProtoBuf = ProtoBuf, builderAction: ProtoBufBuilder.() -> Unit): ProtoBuf

Creates an instance of ProtoBuf configured from the optionally given ProtoBuf instance and adjusted with builderAction.