Skip to content

A .proto file defines the shape of your data and assigns each field a stable numeric identity. The names make the schema readable to humans. The numbers are what make the binary format compact and compatible over time.

Anatomy of a .proto file

This diagram breaks down the parts of a .proto file. Each label links to the page that covers it in detail.

Next

Messages

The primary containers for Protobuf data, and the contract they enforce across every language that touches them.