当前位置

网站首页> 程序设计 > 程序资讯 > 软件更新资讯 > 浏览文章

Google Protocol Buffers v3.0.0-alpha-1 发布

作者:小梦 来源: 网络 时间: 2024-06-07 阅读:

#广州# OSC源创会第31期(12月27日)开始报名,OSC自曝家丑!

Google Protocol Buffers v3.0.0-alpha-1 发布,新特性包括:

  1. Removal of field presence logic for primitive value fields, removal of required fields, and removal of default values. This makes proto3 significantly easier to implement with open struct representations, as in languages like Android Java, Objective C, or Go.

  2. Removal of unknown fields.

  3. Removal of extensions, which are instead replaced by a new standard type called Any.

  4. Fix semantics for unknown enum values.

  5. Addition of maps.

  6. Addition of a small set of standard types for representation of time, dynamic data, etc.

  7. A well-defined encoding in JSON as an alternative to binary proto encoding.

同时部分 proto3 支持 C++ 和 Java,目前上述的 6 和 7 暂时没有实现。详细介绍请看发行说明。

Protocol Buffers (ProtocolBuffer/ protobuf )是Google公司开发的一种数据描述语言,类似于XML能够将结构化数据序列化,可用于数据存储、通信协议等方面。现阶段支持C++、JAVA、Python等三种编程语言。

热点阅读

网友最爱