You saw in Listing 3 and Listing 6 that protocol buffers is a binary format.
在清单3和清单6中看到protocol buffers是二进制格式。
The user can specify the format to use for the data: XML, JSON, or protocol buffers.
用户可以指定数据使用的格式:XML、JSON或protocol buffers。
For protocol buffers, it must send binary data. Listing 3 shows the servlet that handles these steps.
对于protocol buffers而言,它必须发送二进制数据。
Just as in Listing 3, you use a helper class, generated in this case by the protocol buffers compiler.
如清单3所示,您可以使用protocol buffers编译器生成的helper类。
If memory efficiency and performance are significant, a parser that USES protocol buffers might be a better choice.
如果内存效率和性能很重要,使用protocol buffers的解析器可能是个较好的选择。
For the protocol buffers case, you must generate code-reading and -writing objects in the protocol buffers format.
对于protocol buffers,您必须生成protocol buffers格式的代码读写对象。
To do this, you need to define the data structure using the protocol buffers specification format. Listing 5 shows an example.
为此,您需要使用protocol buffers规范格式定义数据结构。
Protocol buffers supports optional, required and repeated fields. An example of an address book message definition using protocol buffers would look like this.
Protocol buffers支持可选的,必需的和重复的字段。
The protocol buffers message format, which is similar to the Interface Description Language (IDL), is meant to be language-independent so that you can use it with various languages.
protocol buffers消息格式类似于接口描述语言 (IDL),它与语言无关,因此可以将其与各种语言一起使用。
Protocol buffers is a language-agnostic data-serialization format developed by Google, designed to be faster than XML for sending data over a network.
Protocol buffers是一个由Google开发的与语言无关的数据串行化格式,旨在比XML更快地通过网络传送数据。
First you'll develop a Web service that converts CSV data into XML, JSON, and protocol-buffers formats.
首先开发一个Web服务,将CSV数据转换成xml、JSON和protocol - buffers格式。
First you'll develop a Web service that converts CSV data into XML, JSON, and protocol-buffers formats.
首先开发一个Web服务,将CSV数据转换成xml、JSON和protocol - buffers格式。
应用推荐