Protocol Buffers (protobuf)

API Testing

// Definition

Google's binary serialisation format. You define message schemas in `.proto` files; the `protoc` compiler generates strongly-typed serialisation/deserialisation code for any supported language. Protobuf messages are smaller and faster to parse than equivalent JSON but are not human-readable without the `.proto` schema file. In QA, `.proto` files serve as the contract — tests can validate that serialised messages match the schema exactly, including field types and required fields.

// Related terms