参考指南

为 C++、Java、Python、Go、C#、Objective-C、Ruby、PHP 和 Dart 提供的 protocol buffer 类的参考文档,以及部分 Protocol Buffers 本身的参考文档。

本节包含了用于 C++、Java、Python、Go、C#、Objective-C、Ruby、PHP 和 Dart 的 protocol buffer 类的参考文档,以及部分 Protocol Buffers 本身的参考文档。每种语言的文档(如有)包括:

  • protocol buffer 编译器根据您的 .proto 文件生成的代码参考指南。
  • 提供的源代码的生成 API 文档。

请注意,还有更多语言的 API 正在开发中——详情请参见 其他语言


C++ Reference

Reference documentation for working with protocol buffer classes in C++.

C# Reference

Reference documentation for working with protocol buffer classes in C#

Dart Reference

Reference documentation for working with protocol buffer classes in Dart

Go 参考

使用 Go 处理 Protocol Buffer 类的参考文档

Java Reference

Reference documentation for working with protocol buffer classes in Java.

Kotlin Reference

Reference documentation for working with protocol buffer classes in Kotlin.

Objective-C Reference

Reference documentation for working with protocol buffer classes in Objective-C.

PHP Reference

Reference documentation for working with protocol buffer classes in PHP.

Python Reference

Reference documentation for working with protocol buffer classes in Python.

Ruby Reference

Reference documentation for working with protocol buffer classes in Ruby.

Rust Reference

Reference documentation for working with protocol buffer classes in Rust.

Protocol Buffers Reference

Language-agnostic information about how to use protocol buffers.

其他语言

protoc(Protocol Buffers 编译器)可以通过插件扩展以支持新语言。