编程指南

了解如何在您的项目中使用 Protocol Buffers。

语言指南 (proto 2)

介绍如何在项目中使用 Protocol Buffers 语言的 proto2 版本。

语言指南 (proto 3)

介绍如何在您的项目中使用 Protocol Buffers 语言的 proto3 版本。

语言指南(editions)

介绍如何在项目中使用 Protocol Buffers 语言的 2023 版本。

Proto 限制

介绍 proto schema 支持元素数量的限制。

风格指南

为如何最佳组织您的 proto 定义提供指导。

枚举行为

解释 Protocol Buffers 中枚举的当前工作方式及其理想工作方式。

编码

解释 Protocol Buffers 如何将数据编码到文件或传输到网络。

ProtoJSON 格式

介绍如何使用 Protobuf 到 JSON 的转换工具。

技术技巧

介绍处理 Protocol Buffers 时常用的一些设计模式。

第三方插件

链接到许多旨在为 Protocol Buffers 增加有用功能的开源项目。

扩展声明

详细描述扩展声明是什么、为什么需要它们以及如何使用它们。

Application Note: Field Presence

Explains the various presence-tracking disciplines for protobuf fields. It also explains the behavior of explicit presence-tracking for singular proto3 fields with basic types.

Proto 序列化不是规范化的

解释序列化的工作原理以及为什么它不是规范化的。

反序列化 Debug Proto 表示

如何在 Protocol Buffers 中记录调试信息。