Skip to content

A .proto file defines the shape of your data and assigns each field a stable numeric identity. Names keep the schema readable, and numbers keep 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 points to the topic that covers it in detail.

Next

Messages

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