Tags "protocol-buffers" Result

Google protocol buffers compare

I want to compare two Messages or (two sub parameters) of Google protocol buffers. I don't find an API to achieve it. Any ideas? Solution You can use the class google::protobuf::util::MessageDifferencer for this. I think it's only available since v3.0.0-beta-1: Introduced new utility functions/classes in the google/protobuf/util directory:

it1352 2 2019-05-11

Google Protocol Buffers - JavaScript

Is it a good choice to use Google Protocol Buffers in JavaScript or is it better to do it with JSON? Also if someone can give me a simple example about Protocol Buffers implementation in JavaScript. Becauseon Google's site I think it's very poor. Solution [edit] Google's open source implementation of protocol buffers is available on github The

it1352 0 2019-05-22

Thrift vs Protocol buffers

I've been using PB for quite a while now, but, Thrift has constantly been at the back of my mind. The primary advantages of thrift, as I see it are: Native collections (i.e, vector, set etc) vs PBs repeated providing functionality similar to, but not quite like (no iterators unless you dig into RepeatedField which the documentation states "shoul

it1352 1 2019-05-10

Google protocol buffers compare

I want to compare two Messages or (two sub parameters) of Google protocol buffers. I don't find an API to achieve it. Any ideas? Solution You can use the class google::protobuf::util::MessageDifferencer for this. I think it's only available since v3.0.0-beta-1: Introduced new utility functions/classes in the google/protobuf/util directory:

it1352 5 2019-05-11

Protocol buffer objects generated at runtime

a colleague of mine came with an idea of generating protocol buffers classes at runtime. Meaning: There is C server application and Java client application communicating over TCP/IP via protocol buffers messages. The C application may have different schema in different versions and this is not necessarily backward compatible There is Java app

it1352 1 2019-05-22

Google Protocol Buffers and HTTP

I'm refactoring legacy C system to SOA using gSoap. We have some performance issues (very big XMLs) so my lead asked me to take a look at protocol buffers. I did, and it looks very cool (We need C and Java support). However protocol buffers are solution just for serialization and now I need to send it to Java front-end. What should I use from C

it1352 1 2019-05-10

Protocol Buffers Java RPC Stack

According to this Wikipedia entry: "Protocol Buffers is very similar to Facebook’s Thrift protocol, except it does not include a concrete RPC stack to use for defined services. Since Protocol Buffers was open sourced, a number of RPC stacks have emerged to fill this gap." However, there are no examples of RPC stacks cited. Can anyone suggest a J

it1352 0 2019-05-22

Protocol buffers and UTF-8

The history of Encoding Schemes / multiple Operating Systems and Endian-nes have led to a mess in terms of encoding all forms of string data (--i.e., all alphabets); for this reason protocol buffers only deals with ASCII or UTF-8 in its string types, and I can't see any polymorphic overloads that accept the C wstring. The question then is how is

it1352 1 2019-05-11

CMake with Google Protocol Buffers

I'm trying to use cmake to build my little project using protocol buffers. There's a root directory with a number of subdirectories with a number of libraries and executables. My first thought was to have my .proto-files in a subdirectory, but when I read this answer I made a library out of it instead. But when I try to include a messages header i

it1352 0 2020-10-03

Google protocol buffers on iOS

Is the metasyntactic static library for iOS . . . http://code.google.com/p/metasyntactic/wiki/ProtocolBuffers . . . compatible with regular old C compiled protofiles? I do not want to use the bundled compiler that generates Obj-C. Is there any way to compile the library supplied by Google for iOS? Solution Ok. It appears that the metasyntac

it1352 1 2019-05-10