Top "Protocol-buffers" questions

Protocol Buffers is a language-neutral and platform-neutral way of encoding structured data in an efficient yet extensible format.

How to get top-level protobuf enum value name by number in python?

For example, I have proto-file File.proto: enum Test { ONE = 1; TWO = 2; } I generate file File_pb2.py with protoc from …

python protocol-buffers
How do you add a repeated field using Google's Protocol Buffer in C++?

I have the below protocol buffer. Note that StockStatic is a repeated field. message ServiceResponse { enum Type { REQUEST_FAILED = 1; STOCK_…

c++ protocol-buffers
How to get protobuf enum as string?

Is it possible to obtain the string equivalent of protobuf enums in C++? e.g.: The following is the message …

c++ enums protocol-buffers
Google Protobuf ByteString vs. Byte[]

I am working with google protobuf in Java. I see that it is possible to serialize a protobuf message to …

java string bytearray protocol-buffers
How to serialize to char* using Google Protocol Buffers?

I want to serialize my protocol buffer to a char*. Is this possible? I know one can serialize to file …

c++ protocol-buffers
Import and usage of different package files in protobuf?

I have imported an other proto which having different package name than mine. For usage of messages from other package, …

import package protocol-buffers proto
TensorFlow saving into/loading a graph from a file

From what I've gathered so far, there are several different ways of dumping a TensorFlow graph into a file and …

python tensorflow protocol-buffers
Google Protocol Buffers - Storing messages into file

I'm using google protocol buffer to serialize equity market data (ie. timestamp, bid,ask fields). I can store one message …

protocol-buffers
How to bring a gRPC defined API to the web browser

We want to build a Javascript/HTML gui for our gRPC-microservices. Since gRPC is not supported on the browser side, …

javascript node.js protocol-buffers microservices grpc
What are the key differences between Apache Thrift, Google Protocol Buffers, MessagePack, ASN.1 and Apache Avro?

All of these provide binary serialization, RPC frameworks and IDL. I'm interested in key differences between them and characteristics (performance, …

protocol-buffers thrift asn.1 avro