OpenProto

Schema reference

TypeSizeNotes
bool1 byte0 or 1
uint8 … uint641–8 byteslittle-endian
int8 … int641–8 bytestwo's complement
float32, float644 / 8 bytesIEEE 754
stringvarint length + UTF-8no terminator
timestamp8 bytesmilliseconds since the Unix epoch, UTC
list<T>varint count + itemsitems encoded back to back

Options

optional adds a one-bit presence flag. deprecated keeps a field readable but warns when it is written. Field order in the file is the order on the wire.