Introduction
A .proto file defines the data structures of
Protocol Buffers, Google’s serialisation system:
its messages, enums and services. The protocol compiler reads it and generates code for
reading and writing that data.
Structure
The file is text. It may open with a line naming the language version, such as
syntax = "proto3";, followed by imports, a package name, options and
definitions of messages, enums and services.
Not described
Known, not yet covered
- Reference: this page is a summary; the grammar of proto2, proto3 and editions is not yet described on this site.
- Viewer: the site has no viewer for .proto files.
Links
Software
- Protocol Buffers – the protoc compiler and its runtime libraries
Reference
- Protocol Buffers language specification (proto3) – the grammar