API参考文档

优质
小牛编辑
145浏览
2023-12-01

注:内容来自官方 Reference Overview

这个章节包含在C++, Java, Python, Go, C#, 和 Objective C中使用protocol buffer类的参考文档,还有一些protocol buffer自身的参考文档。每个语言的文档包含:

  • 从.proto文件用protocol buffer编译器生成的代码的参考指南
  • 为提供的源代码而生成的API文档

注意还有更多的一些语言的API正在进行中 - 细节,请看 其他语言的wiki页面 。

各个语言的参考文档

注:精力有限,只翻译了关注的Java语言,其他版本请参考原文档。

  • C++ Reference

    • C++ Generated Code Guide
    • C++ Arena Allocation Guide
    • C++ API
  • Go Reference

    • Go Generated Code Guide
    • Go API (GoDoc)
  • Java Reference

    • Java Generated Code Guide: 英文原版,中文翻译版本请点这里
    • Java API (Javadoc)
  • Python Reference

    Python Generated Code Guide Python API (Epydoc)

  • C# Reference

    • C# Generated Code Guide
    • C# API
  • Objective C Reference

    • Objective C Generated Code Guide

Protocol Buffers 参考文档

  • Protocol Buffers Version 2 Language Specification
  • Protocol Buffers Version 3 Language Specification
  • Protocol Buffers Well-Known Types