For faster navigation, this Iframe is preloading the Wikiwand page for Protocol Buffers.

Protocol Buffers

Protocol Buffers
开发者Google
首次发布2008年7月7日 (2008-07-07)
当前版本
  • 27.2 (2024年6月25日;稳定版本)[1]
编辑维基数据链接
原始码库 编辑维基数据链接
操作系统任何
平台跨平台
类型序列化格式与函数库、接口描述语言编译器
许可协议BSD许可证
网站https://protobuf.dev

Protocol Buffers(简称:ProtoBuf)是一种开源跨平台的序列化数据结构的协议。其对于存储资料或在网络上进行通讯的程序是很有用的。这个方法包含一个接口描述语言,描述一些数据结构,并提供程序工具根据这些描述产生代码,这些代码将用来生成或解析代表这些数据结构的字节流。

概览

[编辑]

Google最初开发了Protocol Buffers用于内部使用。Protocol Buffers的设计目标是简单和性能。特别地,它被设计地与XML相比更小且更快。

Protocol Buffers在Google内被广泛用来存储和交换各种类型的结构化数据。在Google,它被当作一个RPC系统的基础,并被用于几乎所有的跨伺服器通信。

Protocol Buffers和Apache Thrift和Ion等协议很相似,同时也提供了一个RPC协议栈gRPC来给上层服务使用。

语言支持

[编辑]

proto2提供一个程序产生器,支持C++JavaPython[2]

第三方实现支持JavaScript[3]

proto3提供一个程序产生器,支持C++Java (包含JavaNano)、PythonGoRubyObjective-CC#.[4]从 3.0.0 Beta 2 版开始支持JavaScript。[5]

第三方实现支持PerlPHPDartScalaJulia.[6]

参考文献

[编辑]
  1. ^ Release 27.2. 2024年6月25日 [2024年7月26日]. 
  2. ^ Protocol Buffers Language Guide. Google Developers. [2016-04-21]. (原始内容存档于2016-05-13). 
  3. ^ Protocol Buffers for JavaScript.. github.com. [2016-05-14]. (原始内容存档于2017-02-22). 
  4. ^ Protocol Buffers Language Guide (proto3). Google Developers. [2016-04-21]. (原始内容存档于2016-04-22). 
  5. ^ Protocol Buffers v3.0.0-beta-2. Google Developers. [2016-05-14]. 
  6. ^ ThirdPartyAddOns - protobuf - Links to third-party add-ons. - Protocol Buffers - Google's data interchange format - Google Project Hosting. Code.google.com. [2012-11-07]. (原始内容存档于2012-10-29). 

外部链接

[编辑]
{{bottomLinkPreText}} {{bottomLinkText}}
Protocol Buffers
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?