FieldNumber

value class FieldNumber(val value: Int) : Comparable<FieldNumber>

Represents a Protobuf field number, which is an integer in one of the intervals [1,19000) and 20000,536870911.

This class does not perform validation of field numbers.

When choosing field numbers, keep in mind that low numbers encode more efficiently than high numbers.

Constructors

Link copied to clipboard
constructor(value: Int)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val value: Int

Functions

Link copied to clipboard
open operator override fun compareTo(other: FieldNumber): Int
Link copied to clipboard
open override fun toString(): String